cve.bz

CVE-2023-0386 Linux Kernel Improper Ownership Management Vulnerability

7.8 highKEVExploitEPSS 7.9%Fix available

High (7.8) in Linux Kernel. In CISA KEV since 2025-06-17. EPSS 7.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
7.9% (unchanged from 7.9% a week ago; 7.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-06-17, due 2025-07-08
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-07-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-282 Improper Ownership Management
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-0386 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-0386?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-0386?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-0386 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux10.0
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
canonical:ubuntu_linux22.04
linux:linux_kernelfrom 5.11 before 5.15.91
linux:linux_kernelfrom 5.16 before 6.1.9
linux:linux_kernel6.2:rc1
linux:linux_kernel6.2:rc2
linux:linux_kernel6.2:rc3
linux:linux_kernel6.2:rc4
linux:linux_kernel6.2:rc5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.316-1DLA-3840-1
Debian10linux-5.105.10.179-1~deb10u1DLA-3446-1
Debian11linux5.10.179-1DSA-5402-1
Debian12, 13, 14linux6.1.11-1DEBIAN-CVE-2023-0386
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-0386
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2023-0386
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1034.38~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1036.43~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1036.43~20.04.1.1UBUNTU-CVE-2023-0386
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1032.40~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1
Ubuntu20.04:LTSlinux-gke-5.155.15.0-1031.36~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1
Ubuntu20.04:LTSlinux-gkeop-5.155.15.0-1018.23~20.04.1UBUNTU-CVE-2023-0386
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-70.77~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1 USN-6040-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1030.35~20.04.1UBUNTU-CVE-2023-0386 USN-6134-1
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1033.39~20.04.1UBUNTU-CVE-2023-0386 USN-6025-1
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 21 moreno fix listedUBUNTU-CVE-2023-0386
44 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-425_10_1, kpatch-patch-4_18_0-425_10_1-debuginfo, kpatch-patch-4_18_0-425_10_1-debugsource0:1-4.el8_7RHSA-2023:1659
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-425_13_1, kpatch-patch-4_18_0-425_13_1-debuginfo, kpatch-patch-4_18_0-425_13_1-debugsource0:1-2.el8_7RHSA-2023:1659
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-425_3_1, kpatch-patch-4_18_0-425_3_1-debuginfo, kpatch-patch-4_18_0-425_3_1-debugsource0:1-6.el8RHSA-2023:1659
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-425.19.2.el8_7RHSA-2023:1566
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-425.19.2.el8_7RHSA-2023:1566
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-425.19.2.rt7.230.el8_7RHSA-2023:1584
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-425.19.2.rt7.230.el8_7RHSA-2023:1584
Red Hatenterprise_linux:9::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-162.23.1.el9_1RHSA-2023:1703
Red Hatenterprise_linux:9::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-162.23.1.el9_1RHSA-2023:1703
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-162_12_1, kpatch-patch-5_14_0-162_12_1-debuginfo, kpatch-patch-5_14_0-162_12_1-debugsource0:1-3.el9_1RHSA-2023:1681
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-162_18_1, kpatch-patch-5_14_0-162_18_1-debuginfo, kpatch-patch-5_14_0-162_18_1-debugsource0:1-2.el9_1RHSA-2023:1681
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-162_22_2, kpatch-patch-5_14_0-162_22_2-debuginfo, kpatch-patch-5_14_0-162_22_2-debugsource0:1-1.el9_1RHSA-2023:1681
23 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_16-150400.2.2SUSE-SU-2023:2371-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_34-150400.2.2SUSE-SU-2023:2384-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_53-150400.2.2SUSE-SU-2023:2369-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_62-150400.2.2SUSE-SU-2023:2368-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_71-150400.1.5.2SUSE-SU-2023:2231-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_014-150400.16.1SUSE-SU-2023:2468-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_111-150400.2.3SUSE-SU-2023:2425-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_103-150400.2.3SUSE-SU-2023:2459-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_112-150400.2.3SUSE-SU-2023:2428-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_121-150400.9.3.1SUSE-SU-2023:2140-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_310-150400.2.3SUSE-SU-2023:2455-1
11 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.49.1SUSE-SU-2023:2141-1
openSUSELeap 15.4kernel-rt, kernel-rt_debug5.14.21-150400.15.28.2SUSE-SU-2023:2231-1
openSUSELeap 15.4kernel-syms-rt, kernel-source-rt5.14.21-150400.15.28.1SUSE-SU-2023:2231-1
openSUSELeap 15.4, Leap Micro 5.3kernel-default-base5.14.21-150400.24.63.1.150400.24.27.1SUSE-SU-2023:2140-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.5.1SUSE-SU-2023:2809-1
openSUSELeap Micro 5.3kernel-default5.14.21-150400.24.63.1SUSE-SU-2023:2140-1
openSUSELeap Micro 5.3kernel-rt5.14.21-150400.15.28.2SUSE-SU-2023:2231-1
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-425.19.2.rt7.230.el8_7ALSA-2023:1584
AlmaLinux8perf, kernel, bpftool and 21 more4.18.0-425.19.2.el8_7ALSA-2023:1566
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more5.14.0-162.23.1.rt21.186.el9_1ALSA-2023:1691
AlmaLinux9perf, kernel, bpftool and 24 more5.14.0-162.23.1.el9_1ALSA-2023:1703
Rocky Linux8kernel0:4.18.0-425.19.2.el8_7RLSA-2023:1566
Rocky Linux8kernel0:4.18.0-425.19.2.el8_7.cloudRXSA-2023:1566
Rocky Linux8kernel-rt0:4.18.0-425.19.2.rt7.230.el8_7RLSA-2023:1584
Azure Linux2kernel5.15.107.1-2AZL-25742

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability was first introduced into Red Hat Enterprise Linux starting in version 8.6. Earlier releases are not affected, including Red Hat Enterprise Linux 8.4.

Red Hat's mitigation

To mitigate this issue, prevent the module overlay from being loaded. Please see https://access.redhat.com/solutions/41278 for information on how to blacklist a kernel module to prevent it from loading automatically.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-425.19.2.rt7.230.el8_7Fixed 2023-04-04RHSA-2023:1584
Red Hat Enterprise Linux 8kernel-0:4.18.0-425.19.2.el8_7Fixed 2023-04-04RHSA-2023:1566
Red Hat Enterprise Linux 8kpatch-patchFixed 2023-04-05RHSA-2023:1659
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.51.1.el8_6Fixed 2023-04-04RHSA-2023:1554
Red Hat Enterprise Linux 8.6 Extended Update Supportkpatch-patchFixed 2023-04-05RHSA-2023:1660
Red Hat Enterprise Linux 9kernel-0:5.14.0-162.23.1.el9_1Fixed 2023-04-11RHSA-2023:1703
Red Hat Enterprise Linux 9kernel-rt-0:5.14.0-162.23.1.rt21.186.el9_1Fixed 2023-04-11RHSA-2023:1691
Red Hat Enterprise Linux 9kpatch-patchFixed 2023-04-10RHSA-2023:1681
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-0:5.14.0-70.53.1.el9_0Fixed 2023-04-25RHSA-2023:1970
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-rt-0:5.14.0-70.53.1.rt21.124.el9_0Fixed 2023-04-25RHSA-2023:1980
Red Hat Enterprise Linux 9.0 Extended Update Supportkpatch-patchFixed 2023-04-25RHSA-2023:1984
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8kernel-0:4.18.0-372.51.1.el8_6Fixed 2023-04-04RHSA-2023:1554
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.5.3-202304051438_8.6Fixed 2023-04-10RHSA-2023:1677
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-0386.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON