This module exploits a vulnerability in Ubuntu's implementation of overlayfs. The vulnerability is the result of failing to verify the ability of a user to set the attributes in a running executable. Specifically, when Overlayfs sends the set attributes data to the underlying file system via `vfs_setxattr`, it fails to first verify the data by calling `cap_convert_nscap`. This vulnerability was patched by moving the call to `cap_convert_nscap` into the `vfs_setxattr` function that sets the attribute, forcing verification every time the `vfs_setxattr` is called rather than trusting the data was already verified.
Vulnerability
CVE-2021-3493
Vulnerability details
- Score
- 8.8
- Severity
- high
CVSS 3.1 · canonical
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HDescription
The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities on files in an underlying file system. Due to the combination of unprivileged user namespaces along with a patch carried in the Ubuntu kernel to allow unprivileged overlay mounts, an attacker could use this to gain elevated privileges.
CVE ProgramExploit source choices
24 sourcesOSCP Cheat Sheet
Ubuntu OverlayFS Local Privesc
Linux Eelvation(持续更新)
A penetration toolkit for container environment
bepb/tryhackme source repository
CVE-2021-3493 Ubuntu OverlayFS Local Privesc (Interactive Bash Shell & Execute Command Entered)
Embark on my CTFs Journey, where I document my conquests and lessons learned while navigating the dynamic challenges of Capture The Flag contests. From cracking codes to outsmarting puzzles, join me in exploring the diverse landscape of cybersecurity challenges.
cvedb/awesome-cve-repo source repository
oneoy/cve-2021-3493 source repository
Exploits working {tested my me} for various scenarios
2021 kernel vulnerability in Ubuntu.
cvedb/top source repository
puckiestyle/cve-2021-3493 source repository
a-roshbaik/linux-privilege-escalation-exploits source repository
fei9747/cve-2021-3493 source repository
0xlane/cve-2021-3493 source repository
This is not my tools i just taken from google and github
A privilege escalation tools based on Top 10 TryHackMe.
abdennour-py/cve-2021-3493 source repository
Collection of Linux Kernel exploits for CTF.
azazhe1/ransomware_cve_2021_3493 source repository
root Privileges
Generated personal blog