cve.bz

CVE-2022-34918 Type Confusion

7.8 highExploitEPSS 5.5%Fix available

High (7.8). EPSS 5.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
5.5% (unchanged from 5.5% a week ago; 5.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-34918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-34918?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-34918?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-34918 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-34918

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-34918](https://cve.bz/cve/badge/CVE-2022-34918.svg)](https://cve.bz/cve/CVE-2022-34918)

HTML:

<a href="https://cve.bz/cve/CVE-2022-34918"><img src="https://cve.bz/cve/badge/CVE-2022-34918.svg" alt="CVE-2022-34918"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 4.1 before 4.14.316
linux:linux_kernelfrom 4.15 before 4.19.284
linux:linux_kernelfrom 4.20 before 5.4.244
linux:linux_kernelfrom 5.5 before 5.10.130
linux:linux_kernelfrom 5.11 before 5.15.54
linux:linux_kernelfrom 5.16 before 5.18.11
debian:debian_linux11.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
canonical:ubuntu_linux22.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.127-2DSA-5191-1
Debian12, 13, 14linux5.18.14-1DEBIAN-CVE-2022-34918
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-34918
Ubuntu18.04:LTSlinux4.15.0-191.202UBUNTU-CVE-2022-34918 USN-5560-1
Ubuntu18.04:LTSlinux-aws4.15.0-1139.150UBUNTU-CVE-2022-34918 USN-5560-1
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1083.90~18.04.1UBUNTU-CVE-2022-34918 USN-5562-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1149.164UBUNTU-CVE-2022-34918 USN-5560-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1089.94~18.04.1UBUNTU-CVE-2022-34918 USN-5562-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1051.56UBUNTU-CVE-2022-34918 USN-5560-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-34918
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1134.150UBUNTU-CVE-2022-34918 USN-5560-1
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1086.94~18.04.1UBUNTU-CVE-2022-34918 USN-5562-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1080.86~18.04.1UBUNTU-CVE-2022-34918 USN-5562-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1051.54~18.04.1UBUNTU-CVE-2022-34918 USN-5562-1
97 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-70.26.1.el9_0RHSA-2022:6610
Red Hatenterprise_linux:9::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-70.26.1.el9_0RHSA-2022:6610
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-70_13_1, kpatch-patch-5_14_0-70_13_1-debuginfo, kpatch-patch-5_14_0-70_13_1-debugsource0:1-2.el9_0RHSA-2022:6592
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-70_17_1, kpatch-patch-5_14_0-70_22_1, kpatch-patch-5_14_0-70_17_1-debuginfo and 3 more0:1-1.el9_0RHSA-2022:6592
Red Hatenterprise_linux:9::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 9 more0:5.14.0-70.26.1.el9_0RHSA-2022:6610
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:5.14.0-70.26.1.rt21.98.el9_0RHSA-2022:6582
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:5.14.0-70.26.1.rt21.98.el9_0RHSA-2022:6582
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 2 morekernel-default5.3.18-150300.59.87.1SUSE-SU-2022:2549-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Module for Legacy 15 SP4 and 1 morekernel-default5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_1013-150300.2.2SUSE-SU-2022:2770-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_1113-150300.2.2SUSE-SU-2022:2738-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_12, kernel-livepatch-SLE15-SP3_Update_1312-150300.2.2SUSE-SU-2022:2726-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_1411-150300.2.2SUSE-SU-2022:2726-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_1510-150300.2.2SUSE-SU-2022:2726-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_169-150300.2.2SUSE-SU-2022:2727-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_176-150300.2.2SUSE-SU-2022:2732-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_185-150300.2.2SUSE-SU-2022:2759-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_194-150300.2.1SUSE-SU-2022:2696-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_203-150300.2.1SUSE-SU-2022:2696-1
18 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.87.1SUSE-SU-2022:2549-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.69.1SUSE-SU-2022:2376-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.87.1.150300.18.50.2SUSE-SU-2022:2549-1
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.87.1SUSE-SU-2022:2549-1
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.11.1SUSE-SU-2022:2520-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.7.1SUSE-SU-2022:2615-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.11.1.150400.24.3.6SUSE-SU-2022:2520-1
openSUSELeap Micro 5.2kernel-default5.3.18-150300.59.87.1openSUSE-SU-2022:2549-1
openSUSELeap Micro 5.2kernel-default-base5.3.18-150300.59.87.1.150300.18.50.2openSUSE-SU-2022:2549-1
openSUSELeap Micro 5.2kernel-rt5.3.18-150300.96.1SUSE-SU-2022:2424-2
openSUSETumbleweedkernel-source5.18.9-2.1openSUSE-SU-2024:12181-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more5.14.0-70.26.1.rt21.98.el9_0ALSA-2022:6582
AlmaLinux9perf, kernel, bpftool and 24 more5.14.0-70.26.1.el9_0ALSA-2022:6610
Azure Linux2kernel5.15.55.1-1AZL-10075

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

In order to trigger the issue, it requires the ability to create user/net namespaces.

On non-containerized deployments of Red Hat Enterprise Linux, you can disable user namespaces by setting user.max_user_namespaces to 0:

# echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

# sysctl -p /etc/sysctl.d/userns.conf

On containerized deployments, such as Red Hat OpenShift Container Platform, do not use this mitigation as the functionality is needed to be enabled.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-70.26.1.el9_0Fixed 2022-09-20RHSA-2022:6610
Red Hat Enterprise Linux 9kernel-rt-0:5.14.0-70.26.1.rt21.98.el9_0Fixed 2022-09-20RHSA-2022:6582
Red Hat Enterprise Linux 9kpatch-patchFixed 2022-09-20RHSA-2022:6592
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-34918.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

References

Check your stackJSON