title: ext4: regenerate buddy after block freeing failed if under fc replay
description: In the Linux kernel, the following vulnerability has been resolved:
ext4: regenerate buddy after block freeing failed if under fc replay
This mostly reverts commit 6bd97bf273bd ("ext4: remove redundant
mb_regenerate_buddy()") and reintroduces mb_regenerate_buddy(). Based on
code in mb_free_blocks(), fast commit replay can end up marking as free
blocks that are already marked as such. This causes corruption of the
buddy bitmap so we need to regenerate it in that case.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 0983142c5f17, lessThan: 94ebf71bddbc, status: affected, versionType: git
version: 6bd97bf273bd, lessThan: c1317822e2de, status: affected, versionType: git
version: 6bd97bf273bd, lessThan: 78327acd4cdc, status: affected, versionType: git
version: 6bd97bf273bd, lessThan: ea42d6cffb0d, status: affected, versionType: git
version: 6bd97bf273bd, lessThan: 6b0d48647935, status: affected, versionType: git
version: 6bd97bf273bd, lessThan: c9b528c35795, 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: 5.11, status: affected
version: 0, lessThan: 5.11, status: unaffected, versionType: custom
version: 5.10.211, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.150, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.78, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.17, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.5, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
