# CVE-2026-139217: ntfs: reject index blocks with a too small entries offset

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:40.315Z
- Modified: 2026-12-01T06:17:39.190Z
- Assigned by: Linux

## Description

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

ntfs: reject index blocks with a too small entries offset

Index blocks read from the volume are checked for a plausible header, but
nothing keeps a block from placing its entries closer to the header than
ntfs_ib_alloc() does when it creates one.  The allocation adds the update
sequence array, one entry per 512-byte sector plus the terminator, to the
index header and aligns the result to 8 bytes, so the first entry of a
4096-byte block starts at offset 40, while a corrupt block may declare 16.

ntfs_ib_copy_tail() then copies the entries that follow the median entry
from the source block into a freshly allocated destination.  The tail is
sized as index_length minus entries_offset and the median entry, both from
the source, while the destination only has allocated_size minus the
canonical offset of room.  With the values above the tail is 4040 bytes
and the destination holds 4032, so the last 8 bytes are written past the
end of the new allocation, with contents taken from the mounted image.

Reject such a block when it is read: entries_offset must not be smaller
than the canonical offset for the block size.  Derive it from block_size
rather than from the block's own usa_count, which post_read_mst_fixup()
treats as "not protected" when it does not match the block size, and use
the same helper in ntfs_ib_alloc() so both stay in sync.

(As written by CVE List.)

## Affected

- Linux Linux: from 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 before bae87fc0e80c50f065f1feca232e38e3292be425; from 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 before 20e14268ef410cbabff54a79405813a8b9ce8e89; 7.1 (not affected: before 7.1; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/bae87fc0e80c50f065f1feca232e38e3292be425>
- <https://git.kernel.org/stable/c/20e14268ef410cbabff54a79405813a8b9ce8e89>

## Sources

- CVE List: [CVE-2026-139217](https://www.cve.org/CVERecord?id=CVE-2026-139217), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139217](https://nvd.nist.gov/vuln/detail/CVE-2026-139217), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139217 · Whole record: https://cve.day/CVE-2026-139217.json · Rebuilt by cve.day 2026-12-01T06:32:16.847Z
