Linux 7.4 brings a security-focused update to NTFS3, the in-kernel driver that can read and write NTFS volumes. Paragon Software contributor Konstantin Komarov submitted fixes aimed at making the driver handle damaged filesystems and volumes deliberately constructed to trigger bugs. The work follows reports from fuzz testing and Kernel Address Sanitizer, which exposed flaws in the driver’s C code. NTFS3 remains an alternative to the newer NTFS read/write driver merged into Linux 7.1.
The fixes address several ways malformed filesystem data could compromise kernel or user-space safety: a potential 64-kilobyte kernel-heap leak, damaged compressed files exposing uninitialized page-cache contents, a heap overflow, and mounting code writing beyond the buffer allocated for an MFT record. The update also adds an “ugm” mount option, enabled by default, for handling WSL-related ownership and permissions. Setting “ugm=0” prevents newly created files from receiving the WSL uid, gid, and mode extended attributes, which Windows does not use. Overall, the changes prioritize resilience when mounting untrusted or corrupted NTFS volumes rather than adding broad new filesystem capabilities.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.