CVE-2026-139017 affs: validate blocks before freeing them

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139017?

CVE-2026-139017 is a vulnerability in Linux, published on 30 Nov 2026.

Official description

In the Linux kernel, the following vulnerability has been resolved:

affs: validate blocks before freeing them

affs_free_block() accepts block numbers from on-disk file block tables when truncating or unlinking files. The function currently rejects only block numbers greater than s_partition_size before subtracting s_reserved and using the result to index the in-memory bitmap descriptor array.

That check still accepts reserved blocks and the one-past-end block at s_partition_size. A crafted image can therefore make the subtraction underflow or make the computed bitmap index equal to s_bmap_count, leading to an out-of-bounds access on s_bitmap before the bitmap block is read and updated.

Use the existing AFFS block validity helper so freeing uses the same range as block reads and writes: s_reserved <= block < s_partition_size.

Which versions are affected by CVE-2026-139017?

How do I fix CVE-2026-139017?

Upgrade to a fixed version.

Is CVE-2026-139017 being exploited?

There is no known exploitation of CVE-2026-139017 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-139017, DEBIAN-CVE-2026-139017, GHSA-pww8-rwj9-54m2, UBUNTU-CVE-2026-139017.

Is CVE-2026-139017 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free