cve.bz

CVE-2023-4004 Use After Free

7.8 highEPSS 0.9%Fix available

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

On this page
A use-after-free flaw was found in the Linux kernel's netfilter in the way a user triggers the nft_pipapo_remove function with the element, without a NFT_SET_EXT_KEY_END. This issue could allow a local user to crash the system or potentially escalate their privileges on the system.

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
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st 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

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.0-477.27.1.rt7.290.el8_8
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.0-477.27.1.el8_8
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:4.18.0-193.119.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:4.18.0-193.119.1.rt13.170.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Telecommunications Update Service: fixed in 0:4.18.0-193.119.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions: fixed in 0:4.18.0-193.119.1.el8_2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:4.18.0-305.103.1.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service: fixed in 0:4.18.0-305.103.1.rt7.178.el8_4
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release
  • Patch: https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/

Ask an AI about this CVE

Show the promptExplain CVE-2023-4004 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4004?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4004?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-4004 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-2023-4004

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

HTML:

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

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.0-477.27.1.rt7.290.el8_8
Red Hat Enterprise Linux 80:4.18.0-477.27.1.el8_8
Red Hat Enterprise Linux 8.2 Advanced Update Support0:4.18.0-193.119.1.el8_2
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:4.18.0-193.119.1.rt13.170.el8_2
Red Hat Enterprise Linux 8.2 Telecommunications Update Service0:4.18.0-193.119.1.el8_2
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions0:4.18.0-193.119.1.el8_2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:4.18.0-305.103.1.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:4.18.0-305.103.1.rt7.178.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:4.18.0-305.103.1.el8_4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:4.18.0-305.103.1.el8_4
Red Hat Enterprise Linux 8.6 Extended Update Support0:4.18.0-372.75.1.el8_6
Red Hat Enterprise Linux 90:5.14.0-284.30.1.el9_2
Red Hat Enterprise Linux 90:5.14.0-284.30.1.rt14.315.el9_2
Red Hat Enterprise Linux 9.0 Extended Update Support0:5.14.0-70.80.1.el9_0
Red Hat Enterprise Linux 9.0 Extended Update Support0:5.14.0-70.80.1.rt21.151.el9_0
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.18.0-372.75.1.el8_6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux-5.105.10.197-1~deb10u1DLA-3623-1
Debian11linux5.10.191-1DSA-5480-1
Debian12linux6.1.52-1DEBIAN-CVE-2023-4004 DSA-5492-1
Debian13, 14linux6.4.11-1DEBIAN-CVE-2023-4004
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-4004
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2023-4004
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1043.48~20.04.1UBUNTU-CVE-2023-4004 USN-6315-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1045.52~20.04.1UBUNTU-CVE-2023-4004 USN-6332-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1073.79UBUNTU-CVE-2023-4004 USN-6442-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1040.48~20.04.1UBUNTU-CVE-2023-4004 USN-6330-1
Ubuntu20.04:LTSlinux-gkeop-5.155.15.0-1026.31~20.04.1UBUNTU-CVE-2023-4004 USN-6325-1
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-82.91~20.04.1UBUNTU-CVE-2023-4004 USN-6315-1
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1036.39~20.04.1UBUNTU-CVE-2023-4004
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1038.43~20.04.1UBUNTU-CVE-2023-4004 USN-6348-1
Ubuntu20.04:LTSlinux-nvidia-tegra-5.155.15.0-1017.17~20.04.1UBUNTU-CVE-2023-4004
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1041.47~20.04.1UBUNTU-CVE-2023-4004 USN-6315-1
97 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-477_10_1, kpatch-patch-4_18_0-477_10_1-debuginfo, kpatch-patch-4_18_0-477_10_1-debugsource0:1-3.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-477_13_1, kpatch-patch-4_18_0-477_15_1, kpatch-patch-4_18_0-477_13_1-debuginfo and 3 more0:1-2.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-477_21_1, kpatch-patch-4_18_0-477_21_1-debuginfo, kpatch-patch-4_18_0-477_21_1-debugsource0:1-1.el8_8RHSA-2023:5221
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-477.27.1.el8_8RHSA-2023:5244
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-477.27.1.el8_8RHSA-2023:5244
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-477.27.1.rt7.290.el8_8RHSA-2023:5255
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-477.27.1.rt7.290.el8_8RHSA-2023:5255
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
40 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.138.1SUSE-SU-2023:4095-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.138.1.150300.18.80.2SUSE-SU-2023:4095-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.138.1SUSE-SU-2023:4095-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.81.1SUSE-SU-2023:3313-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.19.1SUSE-SU-2023:3311-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_327-150300.2.2SUSE-SU-2023:4285-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_335-150300.2.2SUSE-SU-2023:4219-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_344-150300.2.2SUSE-SU-2023:4239-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_353-150300.2.2SUSE-SU-2023:4260-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_362-150300.2.2SUSE-SU-2023:4261-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_371-150300.7.5.1SUSE-SU-2023:4095-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_111-150400.2.3SUSE-SU-2023:4201-1
30 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.81.1SUSE-SU-2023:3313-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.63.1SUSE-SU-2023:3377-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.81.1.150400.24.35.3SUSE-SU-2023:3313-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.19.1SUSE-SU-2023:3311-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.14.1SUSE-SU-2023:3376-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.19.1.150500.6.6.4SUSE-SU-2023:3311-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 Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.81.1SUSE-SU-2023:3313-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.46.1SUSE-SU-2023:3318-1
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-477.27.2.el8_8ALSA-2023:5244
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 Linux8kernel0:4.18.0-477.27.1.el8_8RLSA-2023:5244
Rocky Linux8kernel0:4.18.0-477.27.1.el8_8.cloudRXSA-2023:5244
Rocky Linux9kernel-rt0:5.14.0-284.30.1.rt14.315.el9_2RLSA-2023:5091
Azure Linux2kernel5.15.126.1-1AZL-27796

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 mitigation

This flaw can be mitigated by preventing the affected netfilter kernel module from being loaded. For instructions on how to blacklist a kernel module, please see https://access.redhat.com/solutions/41278.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-477.27.1.rt7.290.el8_8Fixed 2023-09-19RHSA-2023:5255
Red Hat Enterprise Linux 8kpatch-patchFixed 2023-09-19RHSA-2023:5221
Red Hat Enterprise Linux 8kernel-0:4.18.0-477.27.1.el8_8Fixed 2023-09-19RHSA-2023:5244
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-rt-0:4.18.0-193.119.1.rt13.170.el8_2Fixed 2023-11-21RHSA-2023:7431
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicekernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskpatch-patchFixed 2023-11-21RHSA-2023:7417
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionskernel-0:4.18.0-193.119.1.el8_2Fixed 2023-11-21RHSA-2023:7434
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.103.1.el8_4Fixed 2023-09-05RHSA-2023:4962
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-rt-0:4.18.0-305.103.1.rt7.178.el8_4Fixed 2023-09-05RHSA-2023:4961
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicekernel-0:4.18.0-305.103.1.el8_4Fixed 2023-09-05RHSA-2023:4962
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionskernel-0:4.18.0-305.103.1.el8_4Fixed 2023-09-05RHSA-2023:4962
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionskpatch-patchFixed 2023-09-05RHSA-2023:4967
Red Hat Enterprise Linux 8.6 Extended Update Supportkpatch-patchFixed 2023-10-10RHSA-2023:5548
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.75.1.el8_6Fixed 2023-10-10RHSA-2023:5627
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 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
5 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-2023-4004.

ICS advisories (CISA)

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

References

Check your stackJSON