.. / CVE-2023-0386

Exploit for Linux kernel OverlayFS - Local Privilege Escalation (CVE-2023-0386)

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.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box TwoMillion Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2023-0386
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4f11ada10d0a
https://lists.debian.org/debian-lts-announce/2023/06/msg00008.html