cve.bz

CVE-2023-31248 Use After Free

7.8 highEPSS 1.9%Fix available

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

On this page
Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability; `nft_chain_lookup_byid()` failed to check whether a chain was active and CAP_NET_ADMIN is in any user or network namespace

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
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-2023-31248 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-31248?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-31248?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-2023-31248 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.9 before 5.10.188
linux:linux_kernelfrom 5.11 before 5.15.121
linux:linux_kernelfrom 5.16 before 6.1.39
linux:linux_kernelfrom 6.2 before 6.4.4
fedoraproject:fedora37
fedoraproject:fedora38
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
Debian10linux-5.105.10.179-3~deb10u1DLA-3512-1
Debian11linux5.10.179-2DSA-5453-1
Debian12linux6.1.38-1DEBIAN-CVE-2023-31248
Debian13, 14linux6.4.4-1DEBIAN-CVE-2023-31248
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-31248
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2023-31248
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1040.45~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1042.49~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1042.49~20.04.1.1USN-6246-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1038.46~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-gke-5.155.15.0-1038.43~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-gkeop-5.155.15.0-1024.29~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-78.85~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1036.41~20.04.1UBUNTU-CVE-2023-31248 USN-6255-1
Ubuntu20.04:LTSlinux-nvidia-tegra-5.155.15.0-1016.16~20.04.1UBUNTU-CVE-2023-31248
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1039.45~20.04.1UBUNTU-CVE-2023-31248 USN-6246-1
69 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamperf, rtla, kernel-doc and 22 more0:5.14.0-284.30.1.el9_2RHSA-2023:5069
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crbbpftool-debuginfo0:7.0.0-284.30.1.el9_2RHSA-2023:5069
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.0.0-284.30.1.el9_2RHSA-2023:5069
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 40 more0:5.14.0-284.30.1.el9_2RHSA-2023:5069
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-284_11_1, kpatch-patch-5_14_0-284_11_1-debuginfo, kpatch-patch-5_14_0-284_11_1-debugsource0:1-5.el9_2RHSA-2023:5093
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-284_18_1, kpatch-patch-5_14_0-284_18_1-debuginfo, kpatch-patch-5_14_0-284_18_1-debugsource0:1-4.el9_2RHSA-2023:5093
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-284_25_1, kpatch-patch-5_14_0-284_25_1-debuginfo, kpatch-patch-5_14_0-284_25_1-debugsource0:1-3.el9_2RHSA-2023:5093
Red Hatenterprise_linux:9::crbperf-debuginfo, kernel-debuginfo, kernel-64k-debuginfo and 10 more0:5.14.0-284.30.1.el9_2RHSA-2023:5069
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 14 more0:5.14.0-284.30.1.rt14.315.el9_2RHSA-2023:5091
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 12 more0:5.14.0-284.30.1.rt14.315.el9_2RHSA-2023:5091
Red Hatrhel_eus:9.0::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-70.75.1.el9_0RHSA-2023:5604
Red Hatrhel_eus:9.0::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-70.75.1.el9_0RHSA-2023:5604
9 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.130.1SUSE-SU-2023:3391-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morekernel-default-base5.3.18-150300.59.130.1.150300.18.76.1SUSE-SU-2023:3391-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.221.1SUSE-SU-2025:03626-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.221.1.150300.18.132.1SUSE-SU-2025:03626-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.130.1SUSE-SU-2023:3391-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.221.1SUSE-SU-2025:03626-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.74.1SUSE-SU-2023:3171-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Module for Legacy 15 SP5 and 1 morekernel-default5.14.21-150500.55.12.1SUSE-SU-2023:3172-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.73.1SUSE-SU-2025:03600-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.22.1SUSE-SU-2025:4057-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
73 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.130.1SUSE-SU-2023:3391-1
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.74.1SUSE-SU-2023:3171-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.60.1SUSE-SU-2023:3182-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.46.1SUSE-SU-2023:3318-1
openSUSELeap 15.4, Leap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.74.1.150400.24.33.3SUSE-SU-2023:3171-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.12.1SUSE-SU-2023:3172-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.11.1SUSE-SU-2023:3180-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.12.1.150500.6.4.2SUSE-SU-2023:3172-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.11.1SUSE-SU-2023:3302-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.73.1SUSE-SU-2025:03600-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.52.1SUSE-SU-2025:03634-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.73.1.150600.12.32.1SUSE-SU-2025:03600-1
3 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux9bpftool7.0.0-284.30.1.el9_2ALSA-2023:5069
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 11 more5.14.0-284.30.1.rt14.315.el9_2ALSA-2023:5091
AlmaLinux9perf, rtla, kernel and 41 more5.14.0-284.30.1.el9_2ALSA-2023:5069
Rocky Linux9kernel-rt0:5.14.0-284.30.1.rt14.315.el9_2RLSA-2023:5091

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

Exploiting this flaw will require the CAP_NET_ADMIN access privilege in any user or network namespace.

Red Hat's mitigation

To mitigate this issue, it is possible to prevent the affected code from being loaded by blacklisting the kernel netfilter module.

For instructions relating to how to blacklist a kernel module refer to: https://access.redhat.com/solutions/41278

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-284.30.1.el9_2Fixed 2023-09-12RHSA-2023:5069
Red Hat Enterprise Linux 9kernel-rt-0:5.14.0-284.30.1.rt14.315.el9_2Fixed 2023-09-12RHSA-2023:5091
Red Hat Enterprise Linux 9kpatch-patchFixed 2023-09-12RHSA-2023:5093
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-0:5.14.0-70.75.1.el9_0Fixed 2023-10-10RHSA-2023:5604
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-rt-0:5.14.0-70.75.1.rt21.146.el9_0Fixed 2023-10-10RHSA-2023:5603
Red Hat Enterprise Linux 9.0 Extended Update Supportkpatch-patchFixed 2023-10-10RHSA-2023:5575
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-2023-31248.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-166-10Siemens SIMATIC S7-1500 TM MFP BIOS2023-06-13MultipleSIMATIC S7-1500 TM MFP - BIOSnone 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.

References

Check your stackJSON