CVE-2026-139217

ntfs: reject index blocks with a too small entries offset

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows the NTFS filesystem driver in the Linux kernel to write eight bytes past the end of a newly allocated block when processing an index block whose entries offset is smaller than the canonical value. This out-of-bounds write can corrupt kernel memory and may lead to arbitrary code execution or a system crash if the attacker can supply a crafted NTFS volume to the filesystem driver. The flaw stems from a mismatch between the offset calculation used when allocating space for the block and the offset used when determining how many tail entries to copy. Threat modeling indicates that a local attacker who can influence the mounting of an NTFS‐formatted device or supply a malicious image could exploit this defect.

Affected Systems

All Linux kernel images that include native NTFS support are potentially affected until the patch that rejects such malformed index blocks is applied. The CVE description does not list a specific kernel version, so any kernel containing the NTFS code that has not yet incorporated the change should be considered vulnerable.

Risk and Exploitability

No public EPSS data is available and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation at the time of analysis. The severity is not quantified in the provided data, but an out‑of‑bounds write in a privileged kernel module is a high‑impact flaw. Attackers would need to supply a malicious NTFS volume, implying a local or privileged attack vector unless the system is exposed to untrusted storage devices. Given the nature of the defect, the risk to affected systems is significant and warrants immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch for this bug
  • If immediate kernel updates are not possible, configure the system to avoid mounting NTFS filesystems until the fix is applied, or remove the NTFS driver from boot if not needed
  • Reboot the system after applying the update to ensure the new kernel module is loaded

Generated by OpenCVE AI on November 30, 2026 at 20:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
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.
Title ntfs: reject index blocks with a too small entries offset
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM