{"id":"CVE-2022-34918","state":"PUBLISHED","title":"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 p","description":"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.","publishedAt":"2022-07-04T20:07:32.000Z","updatedAt":"2026-10-14T17:02:22.918Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u","https://www.openwall.com/lists/oss-security/2022/07/02/3","http://www.openwall.com/lists/oss-security/2022/07/05/1","https://www.randorisec.fr/crack-linux-firewall/","https://www.debian.org/security/2022/dsa-5191","http://www.openwall.com/lists/oss-security/2022/08/06/5","https://security.netapp.com/advisory/ntap-20220826-0004/","http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","https://cert-portal.siemens.com/productcert/html/ssa-794697.html","https://cert-portal.siemens.com/productcert/html/ssa-806742.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:14.780Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/34xxx/CVE-2022-34918.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-34918","state":"PUBLISHED","datePublished":"2022-07-04T20:07:32.000Z","dateUpdated":"2026-10-14T17:02:22.918Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2022-07-04T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","tags":["x_refsource_MISC"]},{"url":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u","tags":["x_refsource_MISC"]},{"url":"https://www.openwall.com/lists/oss-security/2022/07/02/3","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/07/05/1","name":"[oss-security] 20220705 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.randorisec.fr/crack-linux-firewall/","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2022/dsa-5191","name":"DSA-5191","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.openwall.com/lists/oss-security/2022/08/06/5","name":"[oss-security] 20220806 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20220826-0004/","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2022-09-28T16:06:18.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-34918","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","refsource":"MISC","url":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6"},{"name":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec.fr/T/#u","refsource":"MISC","url":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec.fr/T/#u"},{"name":"https://www.openwall.com/lists/oss-security/2022/07/02/3","refsource":"MISC","url":"https://www.openwall.com/lists/oss-security/2022/07/02/3"},{"name":"[oss-security] 20220705 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2022/07/05/1"},{"name":"https://www.randorisec.fr/crack-linux-firewall/","refsource":"MISC","url":"https://www.randorisec.fr/crack-linux-firewall/"},{"name":"DSA-5191","refsource":"DEBIAN","url":"https://www.debian.org/security/2022/dsa-5191"},{"name":"[oss-security] 20220806 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2022/08/06/5"},{"name":"https://security.netapp.com/advisory/ntap-20220826-0004/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20220826-0004/"},{"name":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html"},{"name":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2022/07/02/3","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/07/05/1","name":"[oss-security] 20220705 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.randorisec.fr/crack-linux-firewall/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5191","name":"DSA-5191","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/08/06/5","name":"[oss-security] 20220806 Re: Linux kernel: Netfilter heap buffer overflow in nft_set_elem_init","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220826-0004/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T09:22:10.749Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-806742.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T17:02:22.918Z"},"x_adpType":"supplier"}]}}}