CVE-2022-34918
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.
Description as published by the source, in English.
Key facts
- Published
- 2022-07-04
- Last modified
- 2026-10-14
- Assigned by
- cve@mitre.org
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
5.5 %
higher than 92 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Canonical | Ubuntu Linux | 14.04 | Affected |
| Canonical | Ubuntu Linux | 16.04 | Affected |
| Canonical | Ubuntu Linux | 18.04 | Affected |
| Canonical | Ubuntu Linux | 20.04 | Affected |
| Canonical | Ubuntu Linux | 22.04 | Affected |
| Debian | Debian Linux | 11.0 | Affected |
| Linux | Linux Kernel | ≥ 4.1, < 4.14.316 | Affected |
| Linux | Linux Kernel | ≥ 4.15, < 4.19.284 | Affected |
| Linux | Linux Kernel | ≥ 4.20, < 5.4.244 | Affected |
| Linux | Linux Kernel | ≥ 5.11, < 5.15.54 | Affected |
| Linux | Linux Kernel | ≥ 5.16, < 5.18.11 | Affected |
| Linux | Linux Kernel | ≥ 5.5, < 5.10.130 | Affected |
| Netapp | H300s | all versions listed | Not affected |
| Netapp | H300s Firmware | all versions listed | Affected |
| Netapp | H410c | all versions listed | Not affected |
| Netapp | H410c Firmware | all versions listed | Affected |
| Netapp | H410s | all versions listed | Not affected |
| Netapp | H410s Firmware | all versions listed | Affected |
| Netapp | H500s | all versions listed | Not affected |
| Netapp | H500s Firmware | all versions listed | Affected |
| Netapp | H700s | all versions listed | Not affected |
| Netapp | H700s Firmware | all versions listed | Affected |
Weakness type
-
CWE-843: Access of Resource Using Incompatible Type
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.
References
- http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.…
- http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Pri…
- http://www.openwall.com/lists/oss-security/2022/07/05/1
- http://www.openwall.com/lists/oss-security/2022/08/06/5
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30…
- https://security.netapp.com/advisory/ntap-20220826-0004/
- https://www.debian.org/security/2022/dsa-5191
- https://www.openwall.com/lists/oss-security/2022/07/02/3
- https://www.randorisec.fr/crack-linux-firewall/
- http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.…
- http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Pri…
- http://www.openwall.com/lists/oss-security/2022/07/05/1
- http://www.openwall.com/lists/oss-security/2022/08/06/5
- https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30…
- https://security.netapp.com/advisory/ntap-20220826-0004/
- https://www.debian.org/security/2022/dsa-5191
- https://www.openwall.com/lists/oss-security/2022/07/02/3
- https://www.randorisec.fr/crack-linux-firewall/
- https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec…
- https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.