cve.bz

CVE-2022-32250 Use After Free

7.8 highExploit referenceEPSS 2.9%Fix available

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

On this page
net/netfilter/nf_tables_api.c in the Linux kernel through 5.18.1 allows a local user (able to create user/net namespaces) to escalate privileges to root because an incorrect NFT_STATEFUL_EXPR check leads to a use-after-free.

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
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
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-32250 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-32250?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-32250?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-32250 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-32250

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-32250](https://cve.bz/cve/badge/CVE-2022-32250.svg)](https://cve.bz/cve/CVE-2022-32250)

HTML:

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

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 4.1 before 4.9.318
linux:linux_kernelfrom 4.10 before 4.14.283
linux:linux_kernelfrom 4.15 before 4.19.247
linux:linux_kernelfrom 4.20 before 5.4.198
linux:linux_kernelfrom 5.5 before 5.10.120
linux:linux_kernelfrom 5.11 before 5.15.45
linux:linux_kernelfrom 5.16 before 5.17.13
linux:linux_kernelfrom 5.18 before 5.18.2
fedoraproject:fedora35
fedoraproject:fedora36
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.320-2DLA-3065-1
Debian10linux4.19.249-2DSA-5173-1
Debian11linux5.10.120-1DSA-5161-1
Debian12, 13, 14linux5.18.2-1DEBIAN-CVE-2022-32250
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux4.15.0-184.194UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-aws4.15.0-1133.143UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-aws-5.4, linux-gcp-5.45.4.0-1078.84~18.04.1UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1142.156UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1083.87~18.04.1UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-dell300x4.15.0-1047.52UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1127.142UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1074.79~18.04.1UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1046.48~18.04.1UBUNTU-CVE-2022-32250
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-117.132~18.04.1UBUNTU-CVE-2022-32250
68 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.71.1.el7RHSA-2022:5232
Red Hatenterprise_linux:7::computenodeperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more0:3.10.0-1160.71.1.el7RHSA-2022:5232
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.23-20220622.0.el7_9RHSA-2022:5439
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_36_2, kpatch-patch-3_10_0-1160_36_2-debuginfo0:1-8.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_41_1, kpatch-patch-3_10_0-1160_41_1-debuginfo0:1-7.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_42_2, kpatch-patch-3_10_0-1160_42_2-debuginfo0:1-6.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_45_1, kpatch-patch-3_10_0-1160_45_1-debuginfo0:1-5.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_49_1, kpatch-patch-3_10_0-1160_53_1, kpatch-patch-3_10_0-1160_49_1-debuginfo and 1 more0:1-4.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_59_1, kpatch-patch-3_10_0-1160_59_1-debuginfo0:1-3.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_62_1, kpatch-patch-3_10_0-1160_62_1-debuginfo0:1-2.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_66_1, kpatch-patch-3_10_0-1160_66_1-debuginfo0:1-1.el7RHSA-2022:5216
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.71.1.el7RHSA-2022:5232
63 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 morekernel-default-base5.3.18-150200.24.129.1.150200.9.61.1SUSE-SU-2022:3450-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 morekernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.129.1SUSE-SU-2022:3450-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.129.1SUSE-SU-2022:3450-1
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.90.1SUSE-SU-2022:2875-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.21.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_15, kernel-livepatch-SLE15-SP2_Update_1617-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1716-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1815-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_19, kernel-livepatch-SLE15-SP2_Update_2013-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_2112-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_2211-150200.2.2SUSE-SU-2022:2230-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_2310-150200.2.2SUSE-SU-2022:2230-1
40 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.90.1SUSE-SU-2022:2875-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.62.1SUSE-SU-2022:2172-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.75.1SUSE-SU-2022:2741-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.90.1.150300.18.52.1SUSE-SU-2022:2875-1
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.90.1SUSE-SU-2022:2875-1
openSUSELeap 15.4dtb-aarch64, kernel-syms, kernel-obs-qa5.14.21-150400.24.21.1SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-64kb, kernel-debug, kernel-source and 4 more5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.10.1SUSE-SU-2022:2722-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.21.2.150400.24.7.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-docs5.14.21-150400.24.21.3SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.5.1SUSE-SU-2022:4617-1
openSUSELeap Micro 5.2kernel-default5.3.18-150300.59.90.1SUSE-SU-2022:2875-2
2 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more4.18.0-372.19.1.rt7.176.el8_6ALSA-2022:5834
AlmaLinux8perf, kernel, bpftool and 17 more4.18.0-372.19.1.el8_6ALSA-2022:5819
Rocky Linux8kernel0:4.18.0-372.19.1.el8_6RLSA-2022:5819
Rocky Linux8kernel-rt0:4.18.0-372.19.1.rt7.176.el8_6RLSA-2022:5834
Azure Linux2kernel5.15.45.1-2AZL-9879

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; Rocky Linux's errata, BSD-3-Clause; 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 statement

The latest kernel in RHCOS is kernel-4.18.0-305.49.1.el8 which does not contain the vulnerable code and is not affected, also OCP v4.9 or earlier are not affected.

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 8, 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 7kernel-rt-0:3.10.0-1160.71.1.rt56.1212.el7Fixed 2022-06-28RHSA-2022:5236
Red Hat Enterprise Linux 7kpatch-patchFixed 2022-06-28RHSA-2022:5216
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.71.1.el7Fixed 2022-06-28RHSA-2022:5232
Red Hat Enterprise Linux 7.3 Advanced Update Supportkernel-0:3.10.0-514.104.1.el7Fixed 2022-08-02RHSA-2022:5806
Red Hat Enterprise Linux 7.4 Advanced Update Supportkernel-0:3.10.0-693.104.1.el7Fixed 2022-08-02RHSA-2022:5805
Red Hat Enterprise Linux 7.6 Advanced Update Supportkernel-0:3.10.0-957.95.1.el7Fixed 2022-08-02RHSA-2022:5802
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportkernel-0:3.10.0-957.95.1.el7Fixed 2022-08-02RHSA-2022:5802
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskernel-0:3.10.0-957.95.1.el7Fixed 2022-08-02RHSA-2022:5802
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskpatch-patchFixed 2022-08-02RHSA-2022:5804
Red Hat Enterprise Linux 7.7 Advanced Update Supportkernel-0:3.10.0-1062.68.1.el7Fixed 2022-08-16RHSA-2022:6073
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportkernel-0:3.10.0-1062.68.1.el7Fixed 2022-08-16RHSA-2022:6073
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskernel-0:3.10.0-1062.68.1.el7Fixed 2022-08-16RHSA-2022:6073
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskpatch-patchFixed 2022-08-16RHSA-2022:6075
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-372.19.1.rt7.176.el8_6Fixed 2022-08-02RHSA-2022:5834
Red Hat Enterprise Linux 8kernel-0:4.18.0-372.19.1.el8_6Fixed 2022-08-03RHSA-2022:5819
Red Hat Enterprise Linux 8kpatch-patchFixed 2022-08-03RHSA-2022:5839
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionskernel-0:4.18.0-147.70.1.el8_1Fixed 2022-07-19RHSA-2022:5636
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionskpatch-patchFixed 2022-07-19RHSA-2022:5648
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-rt-0:4.18.0-193.87.1.rt13.137.el8_2Fixed 2022-06-28RHSA-2022:5224
Red Hat Enterprise Linux 6kernelNot affected
11 more in the JSON and on Red Hat's page.

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-32250.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
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.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON