CVE-2026-99818
fs/ntfs3: do not mark frame pages uptodate on read error
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: 4342306f0f0d5ff4315a204d315c1b51b914fca5 to < 393af40d5987507cd0b27d219160ecaf9b214291; affected: 4342306f0f0d5ff4315a204d315c1b51b914fca5 to < 7b05d9d752cc065d51a79b8503dfb45995488177; affected: 4342306f0f0d5ff4315a204d315c1b51b914fca5 to < 69c86ec04303d4b9b128d6149073ac959a667853; affected: 4342306f0f0d5ff4315a204d315c1b51b914fca5 to < 80218408836fa6fc91a9c26a9c014f81abf9e41f | See vendor advisory |
| LinuxLinux | affected: 5.15; unaffected: 0 to < 5.15; unaffected: 6.12.119 to ≤ 6.12.*; unaffected: 6.18.65 to ≤ 6.18.*; unaffected: 7.3.6 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99818
- https://git.kernel.org/stable/c/393af40d5987507cd0b27d219160ecaf9b214291
- https://git.kernel.org/stable/c/7b05d9d752cc065d51a79b8503dfb45995488177
- https://git.kernel.org/stable/c/69c86ec04303d4b9b128d6149073ac959a667853
- https://git.kernel.org/stable/c/80218408836fa6fc91a9c26a9c014f81abf9e41f