Vulnerability in Linux Kernel
CVE-2022-34918
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.055, 92.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux Kernel
- NetApp H300s Firmware
- NetApp H410c Firmware
- NetApp H410s Firmware
- NetApp H500s Firmware
- NetApp H700s Firmware
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
7 public repositories with exploit or proof-of-concept code for this CVE:
- randorisec/CVE-2022-34918-LPE-PoC (243 stars, last pushed 2022-09-06)
- veritas501/CVE-2022-34918 (217 stars, last pushed 2022-09-15): CVE-2022-34918 netfilter nf_tables 本地提权 POC
- merlinepedra25/CVE-2022-34918-LPE-PoC (3 stars, last pushed 2022-07-24)
- merlinepedra/CVE-2022-34918-LPE-PoC (2 stars, last pushed 2022-07-24)
- linulinu/CVE-2022-34918 (last pushed 2022-07-25)
- Sechack06/CVE-2022-34918
- trhacknon/CVE-2022-34918-LPE-PoC
Also mentioned in 80 other repositories (0x7n6/OSCP, 0xMarcio/cve, 0xStrygwyr/OSCP-Guide, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/ (Patch, Mailing List, Vendor Advisory)
- lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec…
- www.openwall.com/lists/oss-security/2022/07/02/3 (Exploit, Mailing List, Third Party Advisory)
- [oss-security] 20220705 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init (mailing-list, Exploit, Mailing List, Third Party Advisory)
- www.randorisec.fr/crack-linux-firewall/ (Exploit, Third Party Advisory)
- DSA-5191 (vendor-advisory, Third Party Advisory)
- [oss-security] 20220806 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init (mailing-list, Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20220826-0004/ (Third Party Advisory)
- packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089… (VDB Entry, Third Party Advisory)
- packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-… (Exploit, VDB Entry, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.