Exploit database

Vulnerability

CVE-2023-2640

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · canonical

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

18 sources
GameOver(lay) Privilege Escalation and Container Escape
MSF-linux--local--gameoverlay_privescMetasploitLinux,Unix / remotePreferred

This module exploits the use of unsafe functions in a number of Ubuntu kernels utilizing vulnerable versions of overlayfs. To mitigate CVE-2021-3493 the Linux kernel added a call to vfs_setxattr during ovl_do_setxattr. Due to independent changes to the kernel by the Ubuntu development team __vfs_setxattr_noperm is called during ovl_do_setxattr without calling the intermediate safety function vfs_setxattr. Ultimatly this module allows for root access to be achieved by writing setuid capabilities to a file which are not sanitized after being unioned with the upper mounted directory.

2023-07-26gameoverlay_privesc.rb
0xsyr0/oscp
GH-1e9613ea0d155c33d16520580dbed873GitHubUnofficial GitHub source

OSCP Cheat Sheet

2021-10-2262 files · 3,887 stars
g1vi/cve-2023-2640-cve-2023-32629
GH-f486335982f7618194e79d22ee6556f3GitHubUnofficial GitHub source

GameOver(lay) Ubuntu Privilege Escalation

2023-10-092 files · 137 stars
luanoliveira350/gameoverlayfs
GH-4b3e08191e48ed1660f76f2f2c5089dcGitHubUnofficial GitHub source

GameoverlayFS (CVE-2023-2640 and CVE-2023-32629) exploit in Shell Script tested on Ubuntu 20.04 Kernel 5.4.0

2023-09-172 files · 17 stars
ollapapito/gameoverlay
GH-f64729c1ccc0d284cc180e2b3fd2446bGitHubUnofficial GitHub source

CVE-2023-2640 CVE-2023-32629

2023-08-152 files · 13 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
k4but0/ubuntu-lpe
GH-95a741b50eca69d49dc8204854a44ed2GitHubUnofficial GitHub source

One-Liner CVE-2023-32629/CVE-2023-2640 Ubuntu Privilege Escalation

2023-11-111 file · 4 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
k5lk/cve-2023-2640-32629
GH-b5be4f0063af5439cf94ceb74296b076GitHubUnofficial GitHub source

k5lk/cve-2023-2640-32629 source repository

2024-05-212 files · 1 stars
nkipohcs/cve-2023-2640-cve-2023-32629
GH-86e965d6957450c7ef58ccbf1d10a21eGitHubUnofficial GitHub source

nkipohcs/cve-2023-2640-cve-2023-32629 source repository

2024-03-192 files · 1 stars
sanjayragavendar/ubuntu-gameover-lay
GH-a57ade33fffdbc2224d214a8f6280ed6GitHubUnofficial GitHub source

Escalating Privilege using CVE-2023-2640 CVE-2023-3262

2024-02-292 files · 1 stars
0xwhoami35/root-kernel
GH-0d87544043c48ee2ae3b2f585f525613GitHubUnofficial GitHub source

This is not my tools i just taken from google and github

2023-12-0824 files · 0 stars
amar-imamovic/cve-2023-2640-cve-2023-32629-interactive-poc
GH-ac30a073a7d68a53b0fc770401afead8GitHubUnofficial GitHub source

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.

2026-06-103 files · 0 stars
churamanib/p0wny-shell
GH-ef0e4c7837184fde128db843a2829d35GitHubUnofficial GitHub source

churamanib/p0wny-shell source repository

2024-03-297 files · 0 stars