diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-06-10 12:31:01 +0200 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-06-10 12:37:10 +0200 |
| commit | 5b08dccecf825cbf905f348bc6ccb497507e28e2 (patch) | |
| tree | 0087546b9f6df7bc2e379833b6bd7cd309e4f80f /drivers/tee/qcomtee | |
| parent | 5a35454179fe1041d9cd286f5d320ce0d448c12a (diff) | |
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.
Signed-off-by: Zhen Yan <sdjasjbuaa@gmail.com>
[almaz.alexandrovich@paragon-software.com: added an additional check for non privileged users]
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'drivers/tee/qcomtee')
0 files changed, 0 insertions, 0 deletions
