title: ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
description: In the Linux kernel, the following vulnerability has been resolved:
ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
Determine if bb_fragments is 0 instead of determining bb_free to eliminate
the risk of dividing by zero when the block bitmap is corrupted.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 1da177e4c3f4, lessThan: 687061cfaa2a, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 8b40eb2e716b, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: f32d2a745b02, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 8cf9cc602cfb, status: affected, versionType: git
version: 1da177e4c3f4, lessThan: 993bf0f4c393, 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.15.150, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.80, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.19, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.7, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
