{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2640 exists.","fix":"Apply the vendor's patch.","what":"CVE-2023-2640 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 26 Jul 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-2640 and fix it if it is affected.\n\nWhat it is: CVE-2023-2640 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 26 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2640 exists.\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-2640/ (Markdown: https://insights.sbomify.com/CVE-2023-2640/index.md)","id":"CVE-2023-2640","markdown":"https://insights.sbomify.com/CVE-2023-2640/index.md","name":"CVE-2023-2640","record":{"aliases":["GHSA-38f7-vv5r-859m","UBUNTU-CVE-2023-2640","USN-8255-2","USN-8255-3"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ubuntu Linux kernel","requires_auth":"low_privilege","summary":"An unprivileged user can bypass security checks to set privileged extended attributes on overlayfs files, potentially leading to privilege escalation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"ubuntu_linux","vendor":"canonical"}],"cvss":{"score":7.8,"severity":"high","source":"cna","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-863","name":"Incorrect Authorization"}],"description":"On Ubuntu kernels carrying both c914c0e27eb0 and \"UBUNTU: SAUCE: overlayfs: Skip permission checking for trusted.overlayfs.* xattrs\", an unprivileged user may set privileged extended attributes on the mounted files, leading them to be set on the upper files without the appropriate security checks.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2023-07-26","github_poc":10,"max_poc_stars":137,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-10-09T22:02:42Z","kind":"github_poc","ref":"https://github.com/g1vi/CVE-2023-2640-CVE-2023-32629","stars":137,"title":"GameOver(lay) Ubuntu Privilege Escalation"},{"date":"2023-09-17T23:17:22Z","kind":"github_poc","ref":"https://github.com/luanoliveira350/GameOverlayFS","stars":17,"title":"GameoverlayFS (CVE-2023-2640 and CVE-2023-32629) exploit  in Shell Script tested on Ubuntu 20.04 Kernel 5.4.0"},{"date":"2023-08-15T19:07:02Z","kind":"github_poc","ref":"https://github.com/OllaPapito/gameoverlay","stars":13,"title":"CVE-2023-2640 CVE-2023-32629"},{"date":"2023-11-02T20:19:57Z","kind":"github_poc","ref":"https://github.com/musorblyat/CVE-2023-2640-CVE-2023-32629","stars":2,"title":null},{"date":"2024-02-29T16:04:58Z","kind":"github_poc","ref":"https://github.com/SanjayRagavendar/Ubuntu-GameOver-Lay","stars":1,"title":"Escalating Privilege using CVE-2023-2640 CVE-2023-3262 "},{"date":"2024-03-19T22:56:24Z","kind":"github_poc","ref":"https://github.com/Nkipohcs/CVE-2023-2640-CVE-2023-32629","stars":1,"title":null},{"date":"2024-05-21T23:39:02Z","kind":"github_poc","ref":"https://github.com/K5LK/CVE-2023-2640-32629","stars":1,"title":null},{"date":"2023-07-26","kind":"metasploit","ref":"exploit/linux/local/gameoverlay_privesc","stars":null,"title":"GameOver(lay) Privilege Escalation and Container Escape"}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in Ubuntu Kernel","id":"CVE-2023-2640","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux"],"type":"privilege_escalation","year":"2023"},"n_packages":0,"n_references":4,"next":{"headline":"SourceCodester Online Internship Management System POST Parameter login.php sql injection","id":"CVE-2023-2641"},"packages":[],"prev":{"headline":"Rockwell Automation FactoryTalk System Services Vulnerable to Sensitive Information Disclosure","id":"CVE-2023-2639"},"products":["Ubuntu Kernel"],"published":"2023-07-26","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":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-23","vendors":["Canonical"]},"summary":"An unprivileged user can bypass security checks to set privileged extended attributes on overlayfs files, potentially leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2023-2640/"}