CVE-2026-139017: affs: validate blocks before freeing them
affs: validate blocks before freeing them
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In affs_free_block(), use the existing AFFS block-validity helper to validate blocks before freeing them, enforcing s_reserved <= block < s_partition_size.
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
An attacker needs to provide a crafted AFFS filesystem image containing invalid block numbers in on-disk file block tables. The vulnerable path is reached when affected files are truncated or unlinked, causing the kernel to free those referenced blocks.
Which block values are dangerous?
Reserved block numbers below s_reserved and the one-past-end value equal to s_partition_size can pass the old validation. These values can underflow the bitmap calculation or produce an index equal to s_bmap_count, resulting in an out-of-bounds access to the in-memory bitmap descriptor array.
How can exposure be reduced before an update is available?
Avoid mounting or operating on untrusted AFFS filesystem images, particularly where files may be truncated or deleted. The issue depends on attacker-controlled on-disk file block tables.