# CVE-2022-34918: An issue was discovered in the Linux kernel through 5.18.9. A type confusion bug in nft\_set\_elem\_init (leading to a buf…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 3.32% (percentile 89, 2026-11-26)
- **CWE:** CWE-843
- **Published:** 2022-07-04T20:07:32.000Z
- **Modified:** 2026-10-14T17:17:40.583Z

## Who should check

- Anyone running n/a (versions: see the vendor advisory)
- Anyone running Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem \< V1.1

## 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 and fixed versions

- n/a: see vendor advisory (nvd)
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem: \< V1.1 (nvd)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-34918. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-34918.md
Affected: n/a; Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem < V1.1
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for n/a, Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-34918 being exploited?

There is no confirmed exploitation: CVE-2022-34918 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-34918?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-34918?

n/a; Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem \< V1.1.

### Is there a fix for CVE-2022-34918?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-34918?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.debian.org/security/2022/dsa-5191>
- patch: <https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6>
- exploit: <https://www.openwall.com/lists/oss-security/2022/07/02/3>
- exploit: <http://www.openwall.com/lists/oss-security/2022/07/05/1>
- exploit: <https://www.randorisec.fr/crack-linux-firewall/>
- exploit: <http://packetstormsecurity.com/files/168191/Kernel-Live-Patch-Security-Notice-LSN-0089-1.html>
- exploit: <http://packetstormsecurity.com/files/168543/Netfilter-nft_set_elem_init-Heap-Overflow-Privilege-Escalation.html>
- other: <https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452%40randorisec.fr/T/#u>
- other: <http://www.openwall.com/lists/oss-security/2022/08/06/5>
- other: <https://security.netapp.com/advisory/ntap-20220826-0004/>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-806742.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-34918>

HTML: <https://flawdb.com/CVE-2022-34918> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-34918>
