{"answers":{"affected":"It affects 8 products.","exploited":"Yes. Attackers have exploited CVE-2023-0386 in the wild since at least 17 Jun 2025.","fix":"Apply the vendor's patch. US federal agencies must fix it by 8 Jul 2025.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-0386 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: Yes. Attackers have exploited CVE-2023-0386 in the wild since at least 17 Jun 2025.\n\nAffected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-0386/ (Markdown: https://insights.sbomify.com/CVE-2023-0386/index.md)","id":"CVE-2023-0386","markdown":"https://insights.sbomify.com/CVE-2023-0386/index.md","name":"CVE-2023-0386","record":{"aliases":["ALSA-2023:1691","ALSA-2023:1703","AZL-25742","DEBIAN-CVE-2023-0386","GHSA-p72q-v88c-rprq","RHSA-2023:1681","RHSA-2023:1691","RHSA-2023:1703","RHSA-2023:1970","RHSA-2023:1980","RHSA-2023:1984","UBUNTU-CVE-2023-0386"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel","requires_auth":"low_privilege","summary":"A local user can escalate privileges by exploiting an OverlayFS uid mapping bug that allows unauthorized execution of setuid files with capabilities.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"linux_kernel","vendor":"linux"},{"product":"h300s_firmware","vendor":"netapp"},{"product":"h410c_firmware","vendor":"netapp"},{"product":"h410s_firmware","vendor":"netapp"},{"product":"h500s_firmware","vendor":"netapp"},{"product":"h700s_firmware","vendor":"netapp"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-282","name":"Improper Ownership Management"}],"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.","ecosystems":["AlmaLinux:9","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:enterprise_linux:9::nfv","Red Hat:enterprise_linux:9::realtime","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.0::baseos","Red Hat:rhel_eus:9.0::crb","Red Hat:rhel_eus:9.0::nfv","Red Hat:rhel_eus:9.0::realtime"],"exploits":{"exploitdb":0,"first_seen":"2023-03-22","github_poc":18,"max_poc_stars":416,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-05-05T03:02:13Z","kind":"github_poc","ref":"https://github.com/xkaneiki/CVE-2023-0386","stars":416,"title":"CVE-2023-0386在ubuntu22.04上的提权"},{"date":"2023-05-06T06:07:23Z","kind":"github_poc","ref":"https://github.com/chenaotian/CVE-2023-0386","stars":123,"title":"CVE-2023-0386 analysis and Exp"},{"date":"2023-05-16T10:26:10Z","kind":"github_poc","ref":"https://github.com/sxlmnwb/CVE-2023-0386","stars":56,"title":"Vulnerabilities Exploitation On Ubuntu 22.04"},{"date":"2023-12-23T11:01:55Z","kind":"github_poc","ref":"https://github.com/puckiestyle/CVE-2023-0386","stars":22,"title":null},{"date":"2023-06-28T07:49:52Z","kind":"github_poc","ref":"https://github.com/Fanxiaoyao66/CVE-2023-0386","stars":21,"title":"非常简单的CVE-2023-0386's exp and analysis.Use c and sh."},{"date":"2023-04-20T08:51:20Z","kind":"github_poc","ref":"https://github.com/veritas501/CVE-2023-0386","stars":10,"title":null},{"date":"2023-05-04T11:55:43Z","kind":"github_poc","ref":"https://github.com/Satheesh575555/linux-4.19.72_CVE-2023-0386","stars":4,"title":null},{"date":"2023-05-08T01:53:50Z","kind":"github_poc","ref":"https://github.com/P4x1s/CVE-2023-0386","stars":4,"title":"CVE-2023-0386 EXP"}],"tier":"exploited"},"has_fix":true,"headline":"Linux Kernel Improper Ownership Management","id":"CVE-2023-0386","indexable":true,"kev":{"dateAdded":"2025-06-17","dueDate":"2025-07-08","knownRansomwareCampaignUse":"Unknown","product":"Kernel","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Linux","vulnerabilityName":"Linux Kernel Improper Ownership Management Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","linux:linux_kernel","netapp:h300s_firmware","netapp:h410c_firmware","netapp:h410s_firmware","netapp:h500s_firmware","netapp:h700s_firmware"],"type":"privilege_escalation","year":"2023"},"n_packages":240,"n_references":6,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2023-0387"},"packages":[{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"bpftool","purl":"pkg:rpm/almalinux/bpftool","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/almalinux/kernel","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-abi-stablelists","purl":"pkg:rpm/almalinux/kernel-abi-stablelists","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-core","purl":"pkg:rpm/almalinux/kernel-core","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-cross-headers","purl":"pkg:rpm/almalinux/kernel-cross-headers","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/almalinux/kernel-debug","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-core","purl":"pkg:rpm/almalinux/kernel-debug-core","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/almalinux/kernel-debug-devel","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel-matched","purl":"pkg:rpm/almalinux/kernel-debug-devel-matched","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules","purl":"pkg:rpm/almalinux/kernel-debug-modules","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules-extra","purl":"pkg:rpm/almalinux/kernel-debug-modules-extra","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/almalinux/kernel-devel","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-devel-matched","purl":"pkg:rpm/almalinux/kernel-devel-matched","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/almalinux/kernel-doc","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-modules","purl":"pkg:rpm/almalinux/kernel-modules","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-modules-extra","purl":"pkg:rpm/almalinux/kernel-modules-extra","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt","purl":"pkg:rpm/almalinux/kernel-rt","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-core","purl":"pkg:rpm/almalinux/kernel-rt-core","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug","purl":"pkg:rpm/almalinux/kernel-rt-debug","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-core","purl":"pkg:rpm/almalinux/kernel-rt-debug-core","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-devel","purl":"pkg:rpm/almalinux/kernel-rt-debug-devel","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-kvm","purl":"pkg:rpm/almalinux/kernel-rt-debug-kvm","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-modules","purl":"pkg:rpm/almalinux/kernel-rt-debug-modules","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-debug-modules-extra","purl":"pkg:rpm/almalinux/kernel-rt-debug-modules-extra","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-devel","purl":"pkg:rpm/almalinux/kernel-rt-devel","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-kvm","purl":"pkg:rpm/almalinux/kernel-rt-kvm","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-modules","purl":"pkg:rpm/almalinux/kernel-rt-modules","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.rt21.186.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-rt-modules-extra","purl":"pkg:rpm/almalinux/kernel-rt-modules-extra","source":"ALSA-2023:1691"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-tools","purl":"pkg:rpm/almalinux/kernel-tools","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-tools-libs","purl":"pkg:rpm/almalinux/kernel-tools-libs","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-tools-libs-devel","purl":"pkg:rpm/almalinux/kernel-tools-libs-devel","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump","purl":"pkg:rpm/almalinux/kernel-zfcpdump","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-core","purl":"pkg:rpm/almalinux/kernel-zfcpdump-core","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-devel","purl":"pkg:rpm/almalinux/kernel-zfcpdump-devel","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-devel-matched","purl":"pkg:rpm/almalinux/kernel-zfcpdump-devel-matched","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-modules","purl":"pkg:rpm/almalinux/kernel-zfcpdump-modules","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-modules-extra","purl":"pkg:rpm/almalinux/kernel-zfcpdump-modules-extra","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"perf","purl":"pkg:rpm/almalinux/perf","source":"ALSA-2023:1703"},{"ecosystem":"AlmaLinux:9","fixed":["5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"python3-perf","purl":"pkg:rpm/almalinux/python3-perf","source":"ALSA-2023:1703"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:5.14.0-162.23.1.el9_1"],"introduced":["0"],"last_affected":[],"package":"bpftool-debuginfo","purl":"pkg:rpm/redhat/bpftool-debuginfo","source":"RHSA-2023:1703"}],"prev":{"headline":"Custom 404 Pro \u003c= 3.7.1 - Cross-Site Request Forgery","id":"CVE-2023-0385"},"products":["Kernel"],"published":"2023-03-22","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"A local user can escalate privileges by exploiting an OverlayFS uid mapping bug that allows unauthorized execution of setuid files with capabilities.","url":"https://insights.sbomify.com/CVE-2023-0386/"}