CVE-2026-99818 in Linuxinfo

Summary

by MITRE • 11/30/2026

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

fs/ntfs3: do not mark frame pages uptodate on read error

ni_read_frame() ends with a loop that marks every page of a compressed frame uptodate regardless of whether the read succeeded:

out: for (i = 0; i < pages_per_frame; i++) {
pg = pages[i];
SetPageUptodate(pg); }

Non-critical frame pages come from __filemap_get_folio(FGP_CREAT) and are not zeroed. On an error path that reaches out: before frame_mem is written, these pages keep uninitialized page-allocator contents but are still marked uptodate. A later read() is then served from the page cache and returns that stale kernel memory to user space.

For an unprivileged user mounting a crafted NTFS image this is a repeatable kernel memory disclosure.

Mark the pages uptodate only on success; on error leave them !uptodate so the read path re-reads them or reports the error.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/30/2026

The vulnerability identified in the Linux kernel's ntfs3 filesystem driver represents a critical information leak resulting from improper handling of page states during I/O operations involving compressed files. The core technical flaw resides within the ni_read_frame function, which is responsible for reading and decompressing data frames stored on NTFS volumes. When processing these frames, the kernel allocates memory pages to hold the uncompressed data. In scenarios where a read operation encounters an error before the frame_mem buffer has been successfully populated with valid data, the execution flow jumps to an exit label labeled out. This specific code path contains a loop that iterates through all pages associated with the current compressed frame and unconditionally calls SetPageUptodate on each page. By marking these pages as uptodate, the kernel signals to the virtual memory subsystem that the contents of those pages are valid and ready for consumption by user-space applications.

The severity of this flaw is amplified by how the Linux kernel manages memory allocation for file mappings. When non-critical frame pages are required during a read operation, they are obtained via __filemap_get_folio with the FGP_CREAT flag. This mechanism creates new folios if they do not already exist in the page cache. Crucially, newly allocated pages from the page allocator are not zeroed out for performance reasons; instead, they retain whatever data was previously stored in that physical memory location by other processes or kernel subsystems. Consequently, when an error occurs and the ni_read_frame function incorrectly marks these uninitialized pages as uptodate, it effectively exposes raw kernel heap contents to user space. A subsequent read system call targeting the same file will find these pages already present in the page cache with their uptodate flag set, causing the VFS layer to serve this stale, unencrypted kernel memory directly to the application without performing any further disk I/O or decompression checks.

From an operational impact perspective, this vulnerability allows for a repeatable and reliable kernel memory disclosure attack vector against systems using the ntfs3 driver. An attacker with local access can mount a specially crafted NTFS image that triggers read errors at precise moments to exploit this race condition between allocation and state marking. Because the leak occurs within the page cache mechanism, it bypasses many traditional security controls that might inspect data during active I/O operations. The disclosed information typically includes pointers, cryptographic keys, passwords, or other sensitive data residing in kernel memory at the time of exploitation. This aligns with CWE-200, which classifies exposure of sensitive information to unauthorized actors, and specifically maps to ATT&CK technique T1083, File and Directory Discovery, as it enables an attacker to gather intelligence about the system's internal state that can facilitate further privilege escalation or lateral movement within a compromised environment.

The resolution implemented by the ntfs3 developers addresses this issue by refining the logic surrounding page state management during error conditions. The fix ensures that SetPageUptodate is invoked only when the read operation completes successfully and the frame data has been correctly decompressed into memory. In cases where an error occurs, the pages are left in a !uptodate state. This forces the kernel to either re-attempt the read from disk or return an appropriate I/O error code to the user-space application, thereby preventing the leakage of uninitialized memory contents. To mitigate this risk on systems that have not yet applied the patch, administrators should ensure that ntfs3 is updated to a version containing this fix. Additionally, employing strict file integrity monitoring and limiting unprivileged users' ability to mount arbitrary filesystems can reduce the attack surface for such local exploitation attempts until the underlying kernel vulnerability is remediated through standard system update procedures.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!