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.
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:HDescription
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 ProgramExploit source choices
18 sourcesOSCP Cheat Sheet
GameOver(lay) Ubuntu Privilege Escalation
Ubuntu Privilege Escalation bash one-liner using CVE-2023-32629 & CVE-2023-2640
GameoverlayFS (CVE-2023-2640 and CVE-2023-32629) exploit in Shell Script tested on Ubuntu 20.04 Kernel 5.4.0
CVE-2023-2640 CVE-2023-32629
Check for CVE-2023-32629 "GameOver(lay)" vulnerability
cvedb/awesome-cve-repo source repository
One-Liner CVE-2023-32629/CVE-2023-2640 Ubuntu Privilege Escalation
cvedb/top source repository
musorblyat/cve-2023-2640-cve-2023-32629 source repository
Run_HackMyVM_Medium
k5lk/cve-2023-2640-32629 source repository
nkipohcs/cve-2023-2640-cve-2023-32629 source repository
Escalating Privilege using CVE-2023-2640 CVE-2023-3262
This is not my tools i just taken from google and github
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.
churamanib/p0wny-shell source repository