CVE-2023-0386 Linux Kernel Improper Ownership Management

Exploited in the wild High 7.8 Published Updated

A local user can escalate privileges by exploiting an OverlayFS uid mapping bug that allows unauthorized execution of setuid files with capabilities.

Exploited in the wild
Since 17 Jun 2025
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-0386?

CVE-2023-0386 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 22 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in the Linux kernel, where unauthorized access to the execution of the setuid file with capabilities was found in the Linux kernel’s OverlayFS subsystem in how a user copies a capable file from a nosuid mount into another mount. This uid mapping bug allows a local user to escalate their privileges on the system.

Weakness: CWE-282

Which versions are affected by CVE-2023-0386?

It affects 8 products.

Linux distribution packages (40)
bpftool AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-abi-stablelists AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-core AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-cross-headers AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug-core AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug-devel AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug-devel-matched AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug-modules AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-debug-modules-extra AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-devel AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-devel-matched AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-doc AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-modules AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-modules-extra AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-rt AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-core AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug-core AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug-devel AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug-kvm AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug-modules AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-debug-modules-extra AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-devel AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-kvm AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-modules AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-rt-modules-extra AlmaLinux:9All versions5.14.0-162.23.1.rt21.186.el9_1
kernel-tools AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-tools-libs AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-tools-libs-devel AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump-core AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump-devel AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump-devel-matched AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump-modules AlmaLinux:9All versions5.14.0-162.23.1.el9_1
kernel-zfcpdump-modules-extra AlmaLinux:9All versions5.14.0-162.23.1.el9_1
perf AlmaLinux:9All versions5.14.0-162.23.1.el9_1
python3-perf AlmaLinux:9All versions5.14.0-162.23.1.el9_1
bpftool-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:5.14.0-162.23.1.el9_1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Linux kernel, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware and 2 more.

How do I fix CVE-2023-0386?

Apply the vendor's patch. US federal agencies must fix it by 8 Jul 2025.

Is CVE-2023-0386 being exploited?

Yes. Attackers have exploited CVE-2023-0386 in the wild since at least 17 Jun 2025.

Public exploit code: 1 Metasploit module and 18 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALSA-2023:1691, ALSA-2023:1703, AZL-25742, DEBIAN-CVE-2023-0386, GHSA-p72q-v88c-rprq, RHSA-2023:1681 and 6 more.

Is CVE-2023-0386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free