CVE-2026-139258

HighCVSS 7.8/10Last modified Dec 1, 2026

Description

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

ntfs: widen the sub-block offsets in ntfs_decompress()

ntfs_decompress() tracks where the current sub-block starts and ends inside the destination page with two u16s:

u16 do_sb_start; u16 do_sb_end; ... do_sb_start = *dest_ofs; do_sb_end = do_sb_start + NTFS_SB_SIZE;

*dest_ofs is an int page offset masked with ~PAGE_MASK, and NTFS_SB_SIZE is 0x1000, so do_sb_end needs PAGE_SIZE + 0xfff of range. That exceeds u16 once PAGE_SIZE reaches 0x10000: the last sub-block of a page starts at 0xf000 and do_sb_end wraps from 0x10000 to 0.

The zero-fill that pads a short sub-block then computes a negative length:

if (dp_addr < dp_sb_end) { int nr_bytes = do_sb_end - *dest_ofs;

memset(dp_addr, 0, nr_bytes);

A sub-block made only of symbol tokens reaches this without consulting do_sb_end on the way, because that path just does

*dp_addr++ = *cb++; ++*dest_ofs;

and is bounded by dp_addr against dp_sb_end. With do_sb_start at 0xf000 and eight literal bytes emitted, nr_bytes is -61448 and the memset() runs for 18446744073709490168 bytes.

Getting there is cheap: fifteen sub-blocks of eleven bytes each advance *dest_ofs to 0xf000, since the same zero-fill pads each of them out to 0x1000 while do_sb_end is still exact, and the sixteenth one triggers the wrap. A compression block is 0x10000 bytes with 4 KiB clusters and the fixed compression unit of 4, so all sixteen fit with room to spare.

Phrase tokens are bounded against do_sb_end and so return -EOVERFLOW instead, and the

if (*dest_index == dest_max_index && do_sb_end > dest_max_ofs)

check at the top of the sub-block stops firing for the same reason.

Use int for both, matching *dest_ofs and dest_max_ofs. The narrow type came in with the original import and survived the removal and revert of the driver.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669, < 389ab01cff8a352c46cb137ef382d5eab4c0bbf9; >= 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669, < d45f99f816c9e40cf89b93b90396b1503eda1e47
LinuxLinux7.1

References

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139259In the Linux kernel, the following vulnerability has been resolved: ntfs: clear stale pagecache on initialized-size extension iomap_zero_rCVE-2026-139266.5Insufficient validation of untrusted input in Network in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised CVE-2026-139260In the Linux kernel, the following vulnerability has been resolved: ntfs: drain in-flight DIO before buffered write fallback An asynchronoCVE-2026-139261In the Linux kernel, the following vulnerability has been resolved: ntfs: do not give a contiguous cluster allocation a second run ntfs_atCVE-2026-139262In the Linux kernel, the following vulnerability has been resolved: ntfs: restart the zone search when the allocation hint fails When ntfsCVE-2026-139263In the Linux kernel, the following vulnerability has been resolved: ntfs: avoid misclassifying directory reparse points Windows directory CVE-2026-139264In the Linux kernel, the following vulnerability has been resolved: ntfs: wait for the bitmap scan before MFT bitmap extension If MFT bitmCVE-2026-1392657.8In the Linux kernel, the following vulnerability has been resolved: ntfs: fix runlist marker allocation and count The marker path can appeCVE-2026-139266In the Linux kernel, the following vulnerability has been resolved: ntfs: fix FITRIM bitmap indexing for large pages The LCN bitmap has onCVE-2026-139267In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler In MLX5CVE-2026-139268In the Linux kernel, the following vulnerability has been resolved: net/sched: act_api: reject duplicate actions in a batch tca_action_gd(CVE-2026-139269In the Linux kernel, the following vulnerability has been resolved: bpf: Fix arena race between page free and alloc leading to incoherency
CVE-2026-139258: High severity, CVSS 7.8 | Vulnix