LOADING

Linux kernel: ntfs3 leaks uninitialized page memory on read error

In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: zero frame pages on read error ni_read_frame() marks every frame page uptodate at the 'out:' label regardless of the return value. The pages come from ntfs_lock_new_page() and are not zeroed, and several error paths reach 'out:' before anything is written to them (e.g. a failed decompress_lznt()/decompress_lzx_xpress() 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 Products

  • Linux, Linux, 4342306f0f0d5ff4315a204d315c1b51b914fca5, 5.15, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1

References

View on NVD →
·
← Back to CVEs