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.
Fix
Public exploits 6
- Netfilter nft_set_elem_init Heap Overflow Privilege Escalation (exploit module) Metasploit · 2022-02-07
- linulinu/CVE-2022-34918 PoC on GitHub
- merlinepedra/CVE-2022-34918-LPE-PoC PoC on GitHub
- merlinepedra25/CVE-2022-34918-LPE-PoC PoC on GitHub
- randorisec/CVE-2022-34918-LPE-PoC PoC on GitHub
- veritas501/CVE-2022-34918 PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 2
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6 Mailing List, Patch, Vendor Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6 Mailing List, Patch, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.8 · linux, debian, canonicalNVD modified 2026-10-14 17:17
Affected (CPE criteria) 12
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*cpe:2.3:o:canonical:ubuntu_linux:22.04:*:*:*:lts:*:*:*cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
References 22
- http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2022/07/05/1 Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2022/08/06/5 Mailing List, Third Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6 Mailing List, Patch, Vendor Advisory
- https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u
- https://security.netapp.com/advisory/ntap-20220826-0004/ Third Party Advisory
- https://www.debian.org/security/2022/dsa-5191 Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/07/02/3 Exploit, Mailing List, Third Party Advisory
- https://www.randorisec.fr/crack-linux-firewall/ Exploit, Third Party Advisory
- http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2022/07/05/1 Exploit, Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2022/08/06/5 Mailing List, Third Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6 Mailing List, Patch, Vendor Advisory
- https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u
- https://security.netapp.com/advisory/ntap-20220826-0004/ Third Party Advisory
- https://www.debian.org/security/2022/dsa-5191 Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/07/02/3 Exploit, Mailing List, Third Party Advisory
- https://www.randorisec.fr/crack-linux-firewall/ Exploit, Third Party Advisory
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html