CVE-2022-34918
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 7.2AV:L/AC:L/Au:N/C:C/I:C/A:C
EPSS Trends
Current EPSS score: 5.50%• Percentile: 92%
Techniques & Countermeasures
- CWE-843•Access of Resource Using Incompatible Type ('Type Confusion')
The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.
Affected Systems
- canonical•ubuntu_linux
14.04 | 16.04 | 18.04 | 20.04 | 22.04
- debian•linux
< 5.10.127-2 | < 5.18.14-1 | < 5.18.14-1 | < 5.18.14-1
- ubuntu•linux
< 4.4.0-230.264 | < 4.15.0-191.202 | < 5.4.0-124.140 | < 5.15.0-43.46
- ubuntu•linux-aws
< 4.4.0-1110.116 | < 4.4.0-1146.161 | < 4.15.0-1139.150 | < 5.4.0-1083.90 | < 5.15.0-1017.21
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1017.21~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1083.90~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2078.83 | all | < 5.4.0-1083.90+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1139.150~16.04.1
- ubuntu•linux-azure
< 4.15.0-1149.164~14.04.1 | < 4.15.0-1149.164~16.04.1 | all | < 5.4.0-1089.94 | < 5.15.0-1017.20
- ubuntu•linux-azure-4.15
< 4.15.0-1149.164
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1017.20~20.04.1
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1089.94~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2059.65 | all | < 5.4.0-1089.94+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1044.49
- ubuntu•linux-dell300x
< 4.15.0-1051.56
- ubuntu•linux-fips
< 4.4.0-1080.87 | all | < 4.15.0-1096.107 | < 5.4.0-1059.67
- ubuntu•linux-gcp
< 4.15.0-1134.150~16.04.2 | all | < 5.4.0-1086.94 | < 5.15.0-1016.21
- ubuntu•linux-gcp-4.15
< 4.15.0-1134.150
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1016.21~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1086.94~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-fips
< 4.15.0-2043.48 | all | < 5.4.0-1086.94+fips1
- ubuntu•linux-gke
< 5.4.0-1080.86 | < 5.15.0-1014.17
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
< 5.15.0-1014.17~20.04.1
- ubuntu•linux-gke-5.4
< 5.4.0-1080.86~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1051.54 | < 5.15.0-1002.4
- ubuntu•linux-gkeop-5.4
< 5.4.0-1051.54~18.04.1
- ubuntu•linux-hwe
< 4.15.0-191.202~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
all
- ubuntu•linux-hwe-5.15
< 5.15.0-43.46~20.04.1
- ubuntu•linux-hwe-5.4
< 5.4.0-124.140~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1031.35 | < 5.15.0-1012.14
- ubuntu•linux-ibm-5.4
< 5.4.0-1031.35~18.04.1
Showing first 50 affected entries in server-rendered view.
References (23)
- 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://ubuntu.com/security/CVE-2022-34918
- https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec.fr/T/#u
- https://ubuntu.com/security/notices/USN-5540-1
- https://ubuntu.com/security/notices/USN-5544-1
- https://ubuntu.com/security/notices/USN-5545-1
- https://ubuntu.com/security/notices/USN-5560-1
- https://ubuntu.com/security/notices/USN-5560-2
- https://ubuntu.com/security/notices/USN-5562-1
- https://ubuntu.com/security/notices/USN-5564-1
- https://ubuntu.com/security/notices/USN-5566-1
- https://ubuntu.com/security/notices/USN-5582-1
- https://www.cve.org/CVERecord?id=CVE-2022-34918
- https://security-tracker.debian.org/tracker/CVE-2022-34918