# CVE-2023-4004: Kernel: netfilter: use-after-free due to improper element removal in nft_pipapo_remove()

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Published: 2023-07-31T16:22:18.380Z
- Modified: 2026-11-26T14:17:01.057Z
- Weaknesses: CWE-416
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- kernel-rt: no versions given (not affected: from 0:4.18.0-477.27.1.rt7.290.el8_8 before *; from 0:4.18.0-193.119.1.rt13.170.el8_2 before *; from 0:4.18.0-305.103.1.rt7.178.el8_4 before *; from 0:5.14.0-284.30.1.rt14.315.el9_2 before *; from 0:5.14.0-70.80.1.rt21.151.el9_0 before *)
- kpatch-patch: no versions given
- kernel: no versions given (not affected: from 0:4.18.0-477.27.1.el8_8 before *; from 0:4.18.0-193.119.1.el8_2 before *; from 0:4.18.0-305.103.1.el8_4 before *; from 0:4.18.0-372.75.1.el8_6 before *; from 0:5.14.0-284.30.1.el9_2 before *; from 0:5.14.0-70.80.1.el9_0 before *)
- linux linux_kernel: from 5.6 before 5.10.188; from 5.11 before 5.15.123; from 5.16 before 6.1.42; from 6.2 before 6.4.7
- fedoraproject fedora: 38
- redhat enterprise_linux: 8.0; 9.0
- netapp h300s: no versions given
- netapp h410s: no versions given
- netapp h500s: no versions given
- netapp h700s: no versions given
- debian debian_linux: 10.0; 11.0; 12.0

## Every score

- redhat: 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`
- NVD: 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`

## References

- <https://access.redhat.com/errata/RHSA-2023:4961> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:4962> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:4967> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5069> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5091> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5093> (broken-link, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5221> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5244> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5255> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5548> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5627> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7382> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7389> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7411> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7417> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7431> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7434> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-4004> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2225275> (issue-tracking, third-party-advisory)
- <https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/> (mailing-list, patch, third-party-advisory)
- <http://packetstormsecurity.com/files/175072/Kernel-Live-Patch-Security-Notice-LSN-0098-1.html>
- <http://packetstormsecurity.com/files/175963/Kernel-Live-Patch-Security-Notice-LSN-0099-1.html>
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html>
- <https://security.netapp.com/advisory/ntap-20231027-0001/>
- <https://www.debian.org/security/2023/dsa-5480>
- <https://www.debian.org/security/2023/dsa-5492>
- <https://cert-portal.siemens.com/productcert/html/ssa-831302.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>

## Sources

- CVE List: [CVE-2023-4004](https://www.cve.org/CVERecord?id=CVE-2023-4004), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2023-4004](https://nvd.nist.gov/vuln/detail/CVE-2023-4004), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2023-4004 · Whole record: https://cve.day/CVE-2023-4004.json · Rebuilt by cve.day 2026-11-26T14:17:32.234Z
