Files
Shayon Mukherjee 27f11cc665 tmpfs: Clear security.capability xattr on write
When a non-privileged user writes to a file on tmpfs, Linux clears both
the setuid/setgid mode bits and the security.capability xattr via
file_remove_privs. The mode bit clearing was already implemented through
ClearSUIDAndSGID, but the xattr removal was missing, so file
capabilities survived content replacement. An unprivileged user could
overwrite a capability-bearing binary and execute it with the retained
privileges.

Fixes #13063
2026-05-05 21:25:01 -04:00
..
…