Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139258

published high CVSS 3.1 · 7.8

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

Published
30 Nov 2026, 13:33:05 UTC
Updated
01 Dec 2026, 05:42:03 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 to < 389ab01cff8a352c46cb137ef382d5eab4c0bbf9 · 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 to < d45f99f816c9e40cf89b93b90396b1503eda1e47 · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The malformed LZNT1 stream comes from compressed $DATA clusters on a local NTFS image or removable disk. ntfs_decompress() is reached only via read(2) → ntfs_read_folio() → ntfs_read_compressed_block() on that mounted volume, and no network protocol carries the sub-block data. AC:L - The bug fires every time on a 64K-page kernel. Fifteen 11-byte sub-blocks move *dest_ofs to 0xf000, and the 16th wraps the u16 do_sb_end to 0. A tag of literal bytes then skips every do_sb_end check. 64K pages are the Kconfig default for PPC_BOOK3S_64 (arch/powerpc/Kconfig:819), so this is a standard setup, not a rare config. PR:N - The attacker only has to supply the image and needs no account on the target. ntfs_fs_type is FS_REQUIRES_DEV|FS_ALLOW_IDMAP with no FS_USERNS_MOUNT, so the attacker can't mount it themselves from a user namespace. The privileged mount is done by the victim and is scored under UI. UI:R - A user or automounter has to mount the crafted NTFS volume, and something has to read the compressed file so that ntfs_read_compressed_block() runs. ntfs_readahead() skips compressed inodes, so any plain read triggers it. S:U - The wild zero-fill runs in the host kernel's linear map, inside the same kernel security authority. No VM, IOMMU or sandbox boundary is crossed. C:H - memset(dp_addr, 0, nr_bytes) with nr_bytes = 0 - 0xf008 runs for about 2^64 bytes. It wipes every kernel object, credential and page-cache page above the destination page, an unbounded corruption of kernel memory that can be leveraged for disclosure, like the OMFS ~4 GiB memset. I:H - The negative int length becomes size_t, so memset() keeps zeroing physical memory past the page-cache page through the linear map until it faults. That is an out-of-bounds write over arbitrary kernel data structures and other files' cached pages. A:H - The zero-fill always ends in an oops when it hits an unmapped address. Before that it has corrupted surrounding kernel memory, and ntfs_cb_lock and the page locks are still held, so the system crashes or hangs.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 to < 389ab01cff8a352c46cb137ef382d5eab4c0bbf9 (affected · git)1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 to < d45f99f816c9e40cf89b93b90396b1503eda1e47 (affected · git)Default: unaffected Linux · cna
Linux Linux 7.1 (affected)0 to < 7.1 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
a3c48f05c8eb642ed06f788426a641c10e8c85aaf577aba20ed106f2bbe59486
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected