CVE-2022-34918
JSON

7.8high

An issue was discovered in the Linux kernel through 5.18.9.

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
3.32% (higher than 89% of CVEs)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
linux linux_kernelfrom 4.1 before 4.14.316, from 4.15 before 4.19.284, from 4.20 before 5.4.244, from 5.5 before 5.10.130, from 5.11 before 5.15.54, from 5.16 before 5.18.11NVD
debian debian_linux11.0NVD
canonical ubuntu_linux14.04, 16.04, 18.04, 20.04, 22.04NVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
netapp h410c_firmwareNot specifiedNVD

All scores

NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.2high CVSS:2.0AV:L/AC:L/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

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.

NVD (es)

Se ha detectado un problema en el kernel de Linux versiones hasta 5.18.9. Un error de confusión de tipos en la función nft_set_elem_init (conllevando a un desbordamiento del búfer) podría ser usado por un atacante local para escalar privilegios, una vulnerabilidad diferente a la de CVE-2022-32250. (El atacante puede obtener acceso de root, pero debe comenzar con un espacio de nombres de usuario no privilegiado para obtener acceso CAP_NET_ADMIN). Esto puede corregirse en la función nft_setelem_parse_data en el archivo net/netfilter/nf_tables_api.c

References

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6mailing-list, patch, vendor-advisory
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/3exploit, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2022/07/05/1exploit, mailing-list, third-party-advisory
https://www.randorisec.fr/crack-linux-firewall/exploit, third-party-advisory
https://www.debian.org/security/2022/dsa-5191third-party-advisory, vendor-advisory
http://www.openwall.com/lists/oss-security/2022/08/06/5mailing-list, third-party-advisory
https://security.netapp.com/advisory/ntap-20220826-0004/third-party-advisory
http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.htmlthird-party-advisory, vdb-entry
http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.htmlexploit, third-party-advisory, vdb-entry
https://cert-portal.siemens.com/productcert/html/ssa-794697.html
https://cert-portal.siemens.com/productcert/html/ssa-806742.html

Sources

SourceRecordLicence
CVE ListCVE-2022-34918 changed 2026-10-14CVE Terms of Use
NVDCVE-2022-34918 changed 2026-10-14Public domain