Advisories · Linux & SSH
CVE-2023-0386
High
CVSS 7.8
Actively exploited
Linux OverlayFS setuid copy-up
Disclosed 2023 · Last reviewed 2 Dec 2026
A local user could copy a setuid file into a mount they controlled and run it as root.
What happened
OverlayFS copied a file from a nosuid mount without clearing the setuid bit the user had arranged.
Affected and patched versions
- Affected
- Linux kernels before the OverlayFS copy-up fix from early 2023.
- Patched
- The distro kernel that lists CVE-2023-0386.
How to check your server
Check
uname -r
How to fix and harden
- Install the distribution kernel update and reboot.
Fix
uname -r
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON