Skip to main content
Mallory
HighVulnerability

CVE-2023-4004: Use-after-free in Linux kernel Netfilter nft_pipapo_remove()

Published Jul 31, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.54%39th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendors
Debian ProjectFedora ProjectNetAppLinuxRed Hat
IdentifiersCVE-2023-4004CWE-416 · Use After Free

CVE-2023-4004 is a use-after-free vulnerability in the Linux kernel Netfilter subsystem. Improper element removal in nft_pipapo_remove() can trigger the flaw when the element lacks NFT_SET_EXT_KEY_END. A local, low-privileged attacker can exploit the vulnerability without user interaction to crash the system or potentially escalate privileges.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause a kernel crash and system-wide denial of service. Potential local privilege escalation could compromise system confidentiality and integrity. The vulnerability has a CVSS v3.1 base score of 7.8 with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Mitigation

If you can’t patch tonight, do this now.

Prevent the affected Netfilter kernel module from loading, as recommended by Red Hat. This workaround can affect functionality that depends on the module and does not replace installation of a security update.

Remediation

Patch, then assume compromise.

Install the vendor-provided kernel or kernel-rt update for the affected distribution and support channel, then reboot into the fixed kernel. Fixed versions include RHEL 8 kernel 4.18.0-477.27.1.el8_8 under RHSA-2023:5244, supported RHEL 8.4 kernel 4.18.0-305.103.1.el8_4 under RHSA-2023:4962, and supported RHEL 8.2 kernel 4.18.0-193.119.1.el8_2 under RHSA-2023:7434. RHEL 9 fixes are available under RHSA-2023:5069. Alternatively, install an applicable vendor-supported kpatch-patch update for the exact running kernel; relevant live-patch advisories include RHSA-2023:5221, RHSA-2023:5548, RHSA-2023:7417, and RHSA-2023:7411.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
NetAppH300shardware
NetAppH410shardware
NetAppH500shardware
NetAppH700shardware
Red HatRed Hat Enterprise Linuxoperating_system
FAQ

Frequently asked questions

Is CVE-2023-4004 exploited in the wild?
As of Oct 23, 2026, Mallory has no reports of CVE-2023-4004 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-4004?
As of Oct 23, 2026, Mallory has found no public exploit for CVE-2023-4004.
Is there a patch for CVE-2023-4004?
Install the vendor-provided kernel or kernel-rt update for the affected distribution and support channel, then reboot into the fixed kernel. Fixed versions include RHEL 8 kernel 4.18.0-477.27.1.el8_8 under RHSA-2023:5244, supported RHEL 8.4 kernel 4.18.0-305.103.1.el8_4 under RHSA-2023:4962, and supported RHEL 8.2 kernel 4.18.0-193.119.1.el8_2 under RHSA-2023:7434.
What products are affected by CVE-2023-4004?
Linux Kernel, Debian Project Debian Linux, Fedora Project Fedora, NetApp H300s, NetApp H410s, and 3 more.
How severe is CVE-2023-4004?
CVE-2023-4004 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.54% (39th percentile) as of Oct 23, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.