CVE-2026-99818: fs/ntfs3: do not mark frame pages uptodate on read error
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: do not mark frame pages uptodate on read error
nireadframe() ends with a loop that marks every page of a compressed frame uptodate regardless of whether the read succeeded:
out: for (i = 0; i < pagesperframe; i++) { pg = pages[i]; SetPageUptodate(pg); }
Non-critical frame pages come from filemapgetfolio(FGPCREAT) and are not zeroed. On an error path that reaches out: before framemem 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.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems where an unprivileged user can mount a crafted NTFS image are exposed. The issue can disclose stale kernel memory to that user through a later read from the page cache.
What does an attacker need to exploit it?
The attacker needs a crafted NTFS image and the ability to mount it. Exploitation relies on triggering a compressed-frame read error before frame memory is written, then reading data served from the page cache.
How can I tell whether the vulnerable condition has occurred?
The described condition occurs when a compressed NTFS frame read fails on an error path before frame_mem is written, but its pages are still marked uptodate. A subsequent read may return uninitialized page-allocator contents from the page cache.
What is the relevant mitigation if the fix cannot be applied immediately?
Prevent unprivileged users from mounting untrusted or crafted NTFS images. This removes the stated exploitation path.