Auth bypass in Canonical Ubuntu Linux
CVE-2023-2640
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.152, 96.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Canonical Ubuntu Linux — versions 23.04
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
14 public repositories with exploit or proof-of-concept code for this CVE:
- g1vi/CVE-2023-2640-CVE-2023-32629 (137 stars, last pushed 2023-10-09): GameOver(lay) Ubuntu Privilege Escalation
- luanoliveira350/GameOverlayFS (17 stars, last pushed 2023-09-17): GameoverlayFS (CVE-2023-2640 and CVE-2023-32629) exploit in Shell Script tested on Ubuntu 20.04 Kernel 5.4.0
- OllaPapito/gameoverlay (13 stars, last pushed 2023-08-15): CVE-2023-2640 CVE-2023-32629
- musorblyat/CVE-2023-2640-CVE-2023-32629 (2 stars, last pushed 2023-11-02)
- K5LK/CVE-2023-2640-32629 (1 star, last pushed 2024-05-22)
- Nkipohcs/CVE-2023-2640-CVE-2023-32629 (1 star, last pushed 2024-03-19)
- SanjayRagavendar/Ubuntu-GameOver-Lay (1 star, last pushed 2024-03-02): Escalating Privilege using CVE-2023-2640 CVE-2023-3262
- WhatsWrongAndWhy/CVE-2023-2640-CVE-2023-32629 (last pushed 2026-07-22)
- amar-imamovic/CVE-2023-2640-CVE-2023-32629-Interactive-PoC (last pushed 2026-06-10): A clean, interactive multi-step Local Privilege Escalation (LPE) exploit for Ubuntu OverlayFS (GameOver(lay)) that escapes the user namespace sandbox to drop a true host root shell.
- z3usx01/CVE-2023-2640-3262-PoC (last pushed 2026-04-04): POC exploits demonstrating OverlayFS-based local privilege escalation vulnerabilities in Ubuntu (CVE-2023-2640 & CVE-2023-3262)
4 more are listed on the interactive page.
Also mentioned in 51 other repositories (0xMarcio/cve, 0xsyr0/OSCP, 0xWhoami35/root-kernel, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ubuntu.com/security/notices/USN-6250-1 (vendor-advisory, Vendor Advisory)
- cve.mitre.org/cgi-bin/cvename.cgi (issue-tracking, Third Party Advisory)
- wiz.io/blog/ubuntu-overlayfs-vulnerability (Exploit, technical-description, Third Party Advisory, Mitigation)
- lists.ubuntu.com/archives/kernel-team/2023-July/140923.html (mailing-list, Patch, Mailing List)
This CVE has public exploit evidence. See the latest CVEs with public exploits.