CVE-2023-0386: Linux Kernel OverlayFS Copy-Up Local Privilege Escalation
- Vendors
- Debian ProjectNetAppLinuxCanonical
CVE-2023-0386 is a local privilege-escalation vulnerability in the Linux kernel OverlayFS subsystem. The ovl_copy_up_one() function fails to verify that a lower-layer file's UID and GID are mapped in the current user namespace before copying the file into the upper layer. An unprivileged user can exploit this behavior using a FUSE filesystem that presents a root-owned setuid/setgid executable. Copy-up can preserve privileged ownership and mode bits when transferring the file from a nosuid filesystem to another mount, allowing subsequent execution with root privileges.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A low-privileged local user can escalate to root, compromising the confidentiality, integrity, and availability of the affected system. Successful exploitation bypasses the privilege restrictions expected from user-namespace identity mappings and the source filesystem's nosuid mount option. The vulnerability has been exploited in the wild.
Mitigation
If you can’t patch tonight, do this now.
Until patching is possible, restrict unprivileged local access. Where operationally feasible, disable or restrict unprivileged user namespaces, unprivileged OverlayFS mounts, or unprivileged FUSE mounting to interrupt the documented exploitation prerequisites. Monitor unexpected creation and execution of root-owned setuid/setgid files. These measures are temporary defenses, not substitutes for the kernel fix.
Remediation
Patch, then assume compromise.
Install the distribution-provided kernel security update addressing CVE-2023-0386. The upstream fix, commit 4f11ada10d0a, adds kuid_has_mapping() and kgid_has_mapping() checks before OverlayFS copy-up proceeds. Fixed packages include Fedora kernel 6.1.9, RHEL 8.6 kernel 4.18.0-372.51.1.el8_6, and RHEL 8 kernel 4.18.0-425.19.2.el8_7 for their respective update streams. Reboot into the fixed kernel, or apply a vendor-supported live patch explicitly covering this vulnerability and verify that it is active. Distribution backports mean the upstream version number alone is insufficient to determine vulnerability status.
Exploits
12 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-0386 exploited in the wild?
- Yes. As of Oct 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 17, 2025.
- Is there a public exploit for CVE-2023-0386?
- Yes. Mallory tracks 12 public exploits or proofs of concept for CVE-2023-0386, the earliest disclosed Mar 22, 2023.
- Is there a patch for CVE-2023-0386?
- Install the distribution-provided kernel security update addressing CVE-2023-0386. The upstream fix, commit 4f11ada10d0a, adds kuid_has_mapping() and kgid_has_mapping() checks before OverlayFS copy-up proceeds.
- What products are affected by CVE-2023-0386?
- Linux Kernel, Debian Project Debian Linux, NetApp H300s Firmware, NetApp H410c Firmware, NetApp H410s Firmware, and 3 more.
- How severe is CVE-2023-0386?
- CVE-2023-0386 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 3.3% (89th percentile) as of Oct 19, 2026.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.