{"id":"CVE-2022-34918","title":"An issue was discovered in the Linux kernel through 5.18.9","summary":"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.…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-843"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.1, < 4.14.316","linux_kernel >= 4.15, < 4.19.284","linux_kernel >= 4.20, < 5.4.244","linux_kernel >= 5.5, < 5.10.130","linux_kernel >= 5.11, < 5.15.54","linux_kernel >= 5.16, < 5.18.11","debian_linux = 11.0","ubuntu_linux = 14.04","ubuntu_linux = 16.04","ubuntu_linux = 18.04","ubuntu_linux = 20.04","ubuntu_linux = 22.04","h300s_firmware","h500s_firmware","h700s_firmware","h410s_firmware","h410c_firmware"],"patched":["linux_kernel 5.18.11"],"published":"2022-07-04","updated":"2026-10-14","sourceUpdated":"2026-10-14T17:17:40.583","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-34918","references":[{"url":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","label":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","label":"cve@mitre.org"},{"url":"http://www.openwall.com/lists/oss-security/2022/07/05/1","label":"cve@mitre.org"},{"url":"http://www.openwall.com/lists/oss-security/2022/08/06/5","label":"cve@mitre.org"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","label":"cve@mitre.org"},{"url":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u","label":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20220826-0004/","label":"cve@mitre.org"},{"url":"https://www.debian.org/security/2022/dsa-5191","label":"cve@mitre.org"},{"url":"https://www.openwall.com/lists/oss-security/2022/07/02/3","label":"cve@mitre.org"},{"url":"https://www.randorisec.fr/crack-linux-firewall/","label":"cve@mitre.org"},{"url":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2022/07/05/1","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.openwall.com/lists/oss-security/2022/08/06/5","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20220826-0004/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2022/dsa-5191","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.openwall.com/lists/oss-security/2022/07/02/3","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.randorisec.fr/crack-linux-firewall/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-806742.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd","exploit-available","cve.org"],"epss":0.05451,"epssPercentile":0.92706,"exploits":{"github":5,"githubRepos":["https://github.com/randorisec/CVE-2022-34918-LPE-PoC","https://github.com/merlinepedra25/CVE-2022-34918-LPE-PoC","https://github.com/merlinepedra/CVE-2022-34918-LPE-PoC"],"metasploit":["exploit/linux/local/netfilter_nft_set_elem_init_privesc"],"checkedAt":"2026-10-23T21:41:44.063Z"},"exploitAvailable":true,"ingestedAt":"2026-10-14T17:44:53.599Z","slug":"CVE-2022-34918","body":"## Overview\n\nAn 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.\n\n## Affected\n\n- `linux_kernel >= 4.1, < 4.14.316`\n- `linux_kernel >= 4.15, < 4.19.284`\n- `linux_kernel >= 4.20, < 5.4.244`\n- `linux_kernel >= 5.5, < 5.10.130`\n- `linux_kernel >= 5.11, < 5.15.54`\n- `linux_kernel >= 5.16, < 5.18.11`\n- `debian_linux = 11.0`\n- `ubuntu_linux = 14.04`\n- `ubuntu_linux = 16.04`\n- `ubuntu_linux = 18.04`\n- `ubuntu_linux = 20.04`\n- `ubuntu_linux = 22.04`\n- `h300s_firmware`\n- `h500s_firmware`\n- `h700s_firmware`\n- `h410s_firmware`\n- `h410c_firmware`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 5.18.11`","depth":"midnight","depthScore":56,"depthScoreParts":{"impact":42.9,"likelihood":1.1,"exploitation":12,"ransomware":0},"changes":[]}