The classic read-only NTFS driver, fs/ntfs, decompresses a file’s compression blocks a sub-block at a time, and the kernel CNA record describes how it tracks position: “ntfs_decompress() tracks where the current sub-block starts and ends inside the destination page with two u16s”. A page offset plus the 4 KiB sub-block size does not fit in sixteen bits once a page is 64 KiB: “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.” A sub-block that ends short then pads with a memset() whose length is computed from the wrapped end, “nr_bytes is -61448 and the memset() runs for 18446744073709490168 bytes.” The CNA and Red Hat score it 7.8. On a system with 64 KiB pages, do not mount untrusted NTFS images, and upgrade to a kernel at or above 7.3.6; a 4 KiB-page system such as a typical x86-64 host is not reachable.
CVE-2026-139258 at a glance.
| Component | Linux kernel, the classic read-only NTFS driver (fs/ntfs/compress.c): the do_sb_start and do_sb_end sub-block offsets in ntfs_decompress() |
| Affected versions | mainline 7.1 up to 7.4-rc1 (the Fixes: tag is the revert that re-added the classic driver; the narrow type “came in with the original import and survived the removal and revert of the driver”); 7.3.x below 7.3.6 |
| Fixed in | mainline 7.4-rc1 (commit d45f99f8, the one Debian cites) and stable 7.3.6. The fix makes both offsets int, “matching *dest_ofs and dest_max_ofs”; fs/ntfs/compress.c +2/−2 |
| Severity | Kernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; note PR:N/UI:R, mounting the image is the interaction); NVD shows the CNA metric; Red Hat Important, 7.8 on the same vector (draft, CWE-787, out-of-bounds write), bug 2587409 “Denial of service via integer overflow in NTFS decompression”; Ubuntu Medium, no score |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00185 (8th percentile) on 1 December 2026 |
| Who is exposed | A system built with 64 KiB pages, common on arm64 (the RHEL and SUSE 64k-page kernels) and ppc64le, that mounts a crafted NTFS image: a USB stick an operator plugs in, an image automount handles, or any path that reaches mount -t ntfs. Red Hat’s statement: exploitation “requires user interaction to process the storage volume and is constrained to system configurations utilizing memory page sizes greater than 4 KB”. A 4 KiB-page system, which is most x86-64, is not affected: do_sb_end never reaches 0x10000 |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
NTFS stores compressed files in 64 KiB compression blocks, each made of 4 KiB sub-blocks, and ntfs_decompress() writes the decompressed bytes into the destination page, tracking the current sub-block with a start and an end offset. *dest_ofs is an int offset into the page, masked to the page, and NTFS_SB_SIZE is 0x1000; the end is do_sb_start + NTFS_SB_SIZE. On a 4 KiB-page system the largest the end reaches is small and the two u16 variables hold it. On a 64 KiB-page system the last sub-block of a page starts at 0xf000, so the end should be 0x10000, which a u16 cannot hold: it wraps to 0.
The damage is in the zero-fill that pads a short sub-block. The record shows the code computing int nr_bytes = do_sb_end - *dest_ofs; and calling memset(dp_addr, 0, nr_bytes); with the start at 0xf000, eight literal bytes written and the end wrapped to 0, nr_bytes is −61448, which as an unsigned size is about 1.8×10^19. A sub-block built only of symbol tokens reaches the fill without the bounds check that would otherwise fire, because the check at the top of the sub-block, do_sb_end > dest_max_ofs, also stops firing once the end has wrapped. Fifteen eleven-byte sub-blocks advance the offset to 0xf000 cheaply, and the sixteenth triggers the wrap, so a single crafted compression block does it.
The fix, by Zhan Xusheng of Xiaomi and committed by Namjae Jeon with reviews from Baolin Liu and Hyunchul Lee, widens both offsets to int. The Fixes: tag points at the commit that reverted the removal of the classic NTFS driver and brought it back, which is why the affected range begins at 7.1 rather than at the driver’s original introduction; the record notes the narrow type “survived the removal and revert of the driver”. Red Hat rates it Important but marks every RHEL and OpenShift build not affected, because the classic read-only driver is not the one RHEL ships. git.kernel.org refuses automated readers, so the commit was read on GitHub.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The flaw needs 64 KiB pages and the classic read-only NTFS driver, so the filter is the page size and whether this driver, rather than the newer ntfs3, is the one mounting the image.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm and trixie both not affected (“Vulnerable code not present”); fixed in forky and sid (7.3.6-1); no DSA | bookworm/trixie not affected; unstable 7.3.6-1 |
| Ubuntu | Medium, no Ubuntu CVSS; linux needs evaluation in every supported release; note “Introduced by 1e9ea7e, fixed by d45f99f”; no USN | nothing released on 2 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2587409, CWE-787); RHEL 6 through 10 kernel and kernel-rt and every OpenShift image not affected; the statement notes RHEL “where NTFS filesystem mounting is disabled or unused are not exposed” | not affected on 2 December 2026 |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 7.3.6 or later (only the 7.1–7.3 series is affected) |
How to check
Two questions: is the running kernel built with 64 KiB pages, and is the classic read-only NTFS driver the one that would mount an image. A 4 KiB-page host is not affected at all; a host that uses ntfs3 or has no NTFS driver loaded is not in this path.
# 1. the page size (the flaw needs 64 KiB; most x86-64 is 4 KiB and not affected) and the kernel
getconf PAGE_SIZE
uname -r
# 2. which NTFS driver is present: this bug is in the classic read-only "ntfs", not the newer "ntfs3"
modinfo ntfs 2>/dev/null | sed -n '1,3p' # the affected driver
modinfo ntfs3 2>/dev/null | sed -n '1,3p' # the Paragon rewrite, a different CVE history
grep -E 'ntfs' /proc/filesystems
lsmod | grep -E '^ntfs'
# 3. the precondition: does anything mount NTFS images here, and can an unprivileged path reach it
grep -E 'ntfs' /etc/fstab 2>/dev/null
systemctl list-units 'udisks2*' 'systemd-mount*' 2>/dev/null | headA host whose getconf PAGE_SIZE is 4096 is not affected, whatever its kernel; the end offset never reaches 0x10000. A 64 KiB-page host, which includes the arm64 and ppc64le 64k kernels RHEL and SUSE ship, is in the path only if the classic ntfs driver is what mounts NTFS media; a host using ntfs3 has a different code base and this record does not apply to it. The interaction the vector marks is the mount: an operator inserting a USB stick, an automounter handling removable media, or a script that mounts an image. The log signature is an oops or a KASAN out-of-bounds write in ntfs_decompress() during a read of a compressed file just after such a mount.
How to fix it
Install the fixed kernel and reboot, on the 64 KiB-page systems that are affected. Debian marks its stable kernels not affected and had 7.3.6-1 in unstable; Red Hat marks every build not affected; the record lists no mitigation beyond not mounting untrusted images.
# Debian unstable / forky, and any 7.1-7.3 kernel on a 64 KiB-page system
apt update && apt install linux-image-arm64 && systemctl reboot # arm64 64k example
uname -r; getconf PAGE_SIZE# RHEL family and SUSE 64k-page kernels, when a build names this CVE
dnf update kernel && systemctl reboot
zypper patch && systemctl reboot# Until then, on a 64 KiB-page host: keep untrusted NTFS media from being mounted automatically
printf 'install ntfs /bin/false\n' > /etc/modprobe.d/no-ntfs-classic.conf # blocks the classic driver only
# and disable removable-media automount in the desktop/udisks policy rather than relying on operatorsBlocking the classic ntfs module stops this driver from loading while leaving ntfs3, the read-write driver most current systems prefer, untouched; on a server that never mounts NTFS it is a clean interim step. What not to do: do not block ntfs3 thinking it is the same bug, as this record is specifically the classic read-only driver; and do not assume a 4 KiB-page server needs the update for this CVE, as it is not affected, though it will take the fix with its next kernel anyway. On a 64 KiB-page host that really does read NTFS media, the fixed kernel is the answer.
Sources
- CVE-2026-139258 at CVE.org — the kernel CNA record: the “two u16s”, “do_sb_end wraps from 0x10000 to 0” and “nr_bytes is -61448” sentences, the token analysis, the git range,
fs/ntfs/compress.c(30 November 2026) - Fix commit d45f99f8 (mainline, 7.4-rc1) and 389ab01c; git.kernel.org refuses automated readers, so the commit was read on GitHub: Zhan Xusheng (Xiaomi), committed by Namjae Jeon, reviewed by Baolin Liu and Hyunchul Lee,
Fixes:the NTFS-classic revert,compress.c+2/−2 - NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 (PR:N/UI:R) as its only metric, no NVD score or CWE on 2 December
- Distribution trackers: Debian (bookworm and trixie not affected, fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation) · Red Hat (Important 7.8, every RHEL build not affected, bug 2587409) · SUSE (not reachable on 2 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00185 (percentile 0.084) on 1 December 2026
Related reading
- CVE-2026-99812: Linux kernel NTFS3 writes past a slab object when fallocate inserts a range into a resident file — the other NTFS driver, the writable one, with its own overflow
- CVE-2026-139219: Linux kernel counts socket-buffer references in sixteen bits, so about 65,537 clones make a shared packet buffer look private and it is freed while clones still point at it — the same sixteen-bit width mistake in the same day’s set
- CVE-2026-99896: Linux kernel CephFS client lets an oversized readdir reply count wrap on 32-bit and write past its buffer — a count that wraps and overruns a buffer, from an untrusted source
- CVE-2026-111497: Brotli decoder writes past its buffer on a crafted compressed stream — another decompressor overrun from attacker-chosen input
- CVE-2026-138914: Linux kernel Amlogic video decoder writes a 32-aligned frame into a buffer sized for the raw width — a decoder writing past a buffer whose size assumed something smaller
- The Kernel — why the page size changes which bugs a kernel has, and the difference between ntfs and ntfs3
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

