ntfs3: reject direct userspace writes to reserved $LX* xattrs
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 293a84fa40b3a1b3471c0545722724bc10973f76, Kernel 2c3cd6da4a14380ef79e34bd9dff7caf46687477, Kernel 5b08dccecf825cbf905f348bc6ccb497507e28e2 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: ntfs3: reject direct userspace writes to reserved $LX* xattrs NTFS3 uses $LXUID, $LXGID, $LXMOD and $LXDEV as internal WSL permission metadata and reloads them into i_uid, i_gid and i_mode from ntfs_get_wsl_perm(). Because the empty-prefix xattr handler also lets file owners call setxattr() on these names directly, an unprivileged writer on a writable ntfs3 mount can plant root ownership and S_ISUID on their own file and gain euid 0 after inode reload. Reject direct userspace writes to the reserved $LX* names. Internal ntfs3 metadata updates are unchanged because ntfs_save_wsl_perm() writes them via ntfs_set_ea() directly. [almaz.alexandrovich@paragon-software.com: added an additional check for non privileged users]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.15, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <293a84fa40b3a1b3471c0545722724bc10973f76, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <2c3cd6da4a14380ef79e34bd9dff7caf46687477, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <5b08dccecf825cbf905f348bc6ccb497507e28e2, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <5e658b9245a52d838ef93729a7bc07de8e19deb7, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <e574af95234afc3c725988bbc1fdeb46b9f386a4, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <e8852ae29868e449fdb47eebc28f35fb80741a5f, >=be71b5cba2e6485e8959da7a9f9a44461a1bb074 <f8d420949b335a4b51d06ab276beee6b8dfdc909 | 293a84fa40b3a1b3471c0545722724bc10973f76, 2c3cd6da4a14380ef79e34bd9dff7caf46687477, 5b08dccecf825cbf905f348bc6ccb497507e28e2, 5e658b9245a52d838ef93729a7bc07de8e19deb7, e574af95234afc3c725988bbc1fdeb46b9f386a4, e8852ae29868e449fdb47eebc28f35fb80741a5f, f8d420949b335a4b51d06ab276beee6b8dfdc909 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket