{"id":"CVE-2023-4004","aliases":["CVE-2023-4004"],"related":[],"kind":"vulnerability","state":"published","title":"Kernel: netfilter: use-after-free due to improper element removal in nft_pipapo_remove()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró una falla de use-after-free  en el netfilter del kernel de Linux en la forma en que un usuario activa la función nft_pipapo_remove con el elemento, sin un NFT_SET_EXT_KEY_END. Este problema podría permitir que un usuario local bloquee el sistema o potencialmente aumente sus privilegios en el sistema.","source":"nvd"}],"published":"2023-07-31T16:22:18.380Z","modified":"2026-11-26T14:17:01.057Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:4.18.0-477.27.1.rt7.290.el8_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:8::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-477.27.1.rt7.290.el8_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:8::nfv","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kpatch-patch","cpe":"cpe:/o:redhat:enterprise_linux:8::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-477.27.1.el8_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"kernel","cpe":"cpe:/a:redhat:enterprise_linux:8::crb","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-193.119.1.el8_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Advanced Update Support","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.2::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-193.119.1.rt13.170.el8_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Telecommunications Update Service","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_tus:8.2::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-193.119.1.rt13.170.el8_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Telecommunications Update Service","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_tus:8.2::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-193.119.1.el8_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Telecommunications Update Service","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.2::baseos","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions","package":"kpatch-patch","cpe":"cpe:/o:redhat:rhel_e4s:8.2::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-193.119.1.el8_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.2::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-305.103.1.el8_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.4::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-305.103.1.rt7.178.el8_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Telecommunications Update Service","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_tus:8.4::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-305.103.1.rt7.178.el8_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Telecommunications Update Service","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_tus:8.4::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-305.103.1.el8_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Telecommunications Update Service","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.4::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-305.103.1.el8_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions","package":"kernel","cpe":"cpe:/o:redhat:rhel_aus:8.4::baseos","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions","package":"kpatch-patch","cpe":"cpe:/o:redhat:rhel_e4s:8.4::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-372.75.1.el8_6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Extended Update Support","package":"kernel","cpe":"cpe:/a:redhat:rhel_eus:8.6::crb","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Extended Update Support","package":"kpatch-patch","cpe":"cpe:/o:redhat:rhel_eus:8.6::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.30.1.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.30.1.rt14.315.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:9::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.30.1.rt14.315.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel-rt","cpe":"cpe:/a:redhat:enterprise_linux:9::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-284.30.1.el9_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kernel","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"kpatch-patch","cpe":"cpe:/o:redhat:enterprise_linux:9::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-70.80.1.el9_0","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.0 Extended Update Support","package":"kernel","cpe":"cpe:/a:redhat:rhel_eus:9.0::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-70.80.1.rt21.151.el9_0","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.0 Extended Update Support","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_eus:9.0::nfv","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-70.80.1.rt21.151.el9_0","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.0 Extended Update Support","package":"kernel-rt","cpe":"cpe:/a:redhat:rhel_eus:9.0::nfv","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.0 Extended Update Support","package":"kpatch-patch","cpe":"cpe:/o:redhat:rhel_eus:9.0::baseos","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.18.0-372.75.1.el8_6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Virtualization 4 for Red Hat Enterprise Linux 8","package":"kernel","cpe":"cpe:/a:redhat:rhel_eus:8.6::crb","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"kernel","cpe":"cpe:/o:redhat:rhel_els:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"kernel-rt","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.6","fixed":"5.10.188"},{"status":"affected","introduced":"5.11","fixed":"5.15.123"},{"status":"affected","introduced":"5.16","fixed":"6.1.42"},{"status":"affected","introduced":"6.2","fixed":"6.4.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"38"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300s","cpe":"cpe:2.3:h:netapp:h300s:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410s","cpe":"cpe:2.3:h:netapp:h410s:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500s","cpe":"cpe:2.3:h:netapp:h500s:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700s","cpe":"cpe:2.3:h:netapp:h700s:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"},{"status":"affected","version":"12.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:4961","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:4962","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:4967","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5069","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5091","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5093","tags":["broken-link","third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5221","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5244","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5255","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5548","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5627","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7382","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7389","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7411","tags":["third-party-advisory","vdb-entry","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7417","tags":["third-party-advisory","vdb-entry","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7431","tags":["third-party-advisory","vdb-entry","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:7434","tags":["third-party-advisory","vdb-entry","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-4004","tags":["third-party-advisory","vdb-entry","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2225275","tags":["issue-tracking","third-party-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/","tags":["mailing-list","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://packetstormsecurity.com/files/175072/Kernel-Live-Patch-Security-Notice-LSN-0098-1.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://packetstormsecurity.com/files/175963/Kernel-Live-Patch-Security-Notice-LSN-0099-1.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20231027-0001/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5480","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5492","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-831302.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-4004","url":"https://www.cve.org/CVERecord?id=CVE-2023-4004","licence":"CVE Terms of Use","modified":"2026-11-26T13:48:14.825Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-4004","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4004","licence":"Public domain","modified":"2026-11-26T14:17:01.057Z"}],"updatedAt":"2026-11-26T14:17:32.234Z","epss":{"score":0.00984,"percentile":0.63324,"date":"2026-12-01T12:00:22.000Z"}}