An issue was discovered in the Linux kernel through 5.18.9. A type confusion bug in nft_set_elem_init (leading to a buffer overflow) could be used by a local attacker to escalate privileges. The attacker can obtain root access, but must start with an unprivileged user namespace to obtain CAP_NET_ADMIN access. The issue exists in nft_setelem_parse_data in net/netfilter/nf_tables_api.c.
Vulnerability
CVE-2022-34918
Vulnerability details
- Score
- 7.8
- Severity
- high
CVSS 3.1 · NVD
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
An issue was discovered in the Linux kernel through 5.18.9. A type confusion bug in nft_set_elem_init (leading to a buffer overflow) could be used by a local attacker to escalate privileges, a different vulnerability than CVE-2022-32250. (The attacker can obtain root access, but must start with an unprivileged user namespace to obtain CAP_NET_ADMIN access.) This can be fixed in nft_setelem_parse_data in net/netfilter/nf_tables_api.c.
CVE ProgramExploit source choices
12 sourcesOSCP Cheat Sheet
Linux kernel CVE exploit analysis report and relative debug environment. You don't need to compile Linux kernel and configure your environment anymore.
Anything about kernel security. CTF kernel pwn, kernel exploit, kernel fuzz and kernel defense paper, kernel debugging technique, kernel CVE debug.
randorisec/cve-2022-34918-lpe-poc source repository
CVE-2022-34918 netfilter nf_tables 本地提权 POC
lanleft/cve-2023-1829 source repository
cvedb/awesome-cve-repo source repository
merlinepedra25/cve-2022-34918-lpe-poc source repository
cvedb/top source repository
merlinepedra/cve-2022-34918-lpe-poc source repository
a-roshbaik/linux-privilege-escalation-exploits source repository