title: nilfs2: fix data corruption in dsync block recovery for small block sizes
description: In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix data corruption in dsync block recovery for small block sizes
The helper function nilfs_recovery_copy_block() of
nilfs_recovery_dsync_blocks(), which recovers data from logs created by
data sync writes during a mount after an unclean shutdown, incorrectly
calculates the on-page offset when copying repair data to the file's page
cache.  In environments where the block size is smaller than the page
size, this flaw can cause data corruption and leak uninitialized memory
bytes during the recovery process.
Fix these issues by correcting this byte offset calculation on the page.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 1da177e4c3f4, lessThan: 5278c3eb6bf5, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: a6efe6dbaaf5, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 364a66be2abd, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 120f7fa2008e, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 9c9c68d64fd3, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 2e1480538ef6, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 2000016bab49, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 67b8bcbaed47, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 4.19.307, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.269, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.210, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.149, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.79, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.18, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.6, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
