CVE-2026-99817: fs/ntfs3: zero frame pages on read error
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: zero frame pages on read error
nireadframe() marks every frame page uptodate at the 'out:' label regardless of the return value. The pages come from ntfslocknewpage() and are not zeroed, and several error paths reach 'out:' before anything is written to them (e.g. a failed decompresslznt()/decompresslzxxpress() on a corrupted chunk, or an allocation failure).
A page marked uptodate is served directly from the page cache, so a later read() of the file returns the uninitialized page contents to userspace. On a crafted compressed image this leaks kernel memory, including pointers.
Zero each page on the error path before marking it uptodate. The success path is unchanged.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In fs/ntfs3, zero each frame page on the error path before marking it uptodate in ni_read_frame().
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems that read NTFS3 files from a crafted compressed NTFS image are exposed. A local user or process able to mount or otherwise cause the kernel to read such an image could receive uninitialized kernel page contents through file reads.
What does an attacker need to trigger the leak?
The attacker needs a corrupted compressed chunk that causes decompression to fail, or another error path such as an allocation failure, after frame pages have been allocated. The affected code can then mark unwritten, uninitialized pages as uptodate and return them from the page cache.
What can be done if patching is not immediately possible?
Avoid mounting or reading untrusted NTFS images with the NTFS3 driver, particularly images containing compressed data. Restrict untrusted users and workloads from supplying NTFS filesystems for the kernel to process.