7.8
CWE
416
Advisory Published
CVE Published
Updated

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

First published: Mon Jul 24 2023(Updated: )

A flaw in the Linux Kernel found. Improper element removal in function nft_pipapo_remove when insert an element without a NFT_SET_EXT_KEY_END that can lead to use-after-free. Reference: <a href="https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/">https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/</a>

Credit: secalert@redhat.com secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/kernel<6.5
6.5
debian/linux
5.10.223-1
5.10.226-1
6.1.123-1
6.1.128-1
6.12.12-1
6.12.13-1
Linux Kernel>=5.6<5.10.188
Linux Kernel>=5.11<5.15.123
Linux Kernel>=5.16<6.1.42
Linux Kernel>=6.2<6.4.7
Fedora=38
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux=9.0
netapp h300s
netapp h410s
netapp h500s
netapp h700s
Debian=10.0
Debian=11.0
Debian=12.0
Linux Kernel<6.5
Linux Kernel=6.5-rc1
Linux Kernel=6.5-rc2
Linux Kernel=6.5-rc3
Linux Kernel=6.5-rc4
IBM Storage Protect Plus<=10.1

Remedy

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2023-4004?

    CVE-2023-4004 has a high severity rating due to its potential to cause use-after-free vulnerabilities in the Linux Kernel.

  • How do I fix CVE-2023-4004?

    To fix CVE-2023-4004, update the Linux Kernel to a version that includes the patch addressing this vulnerability.

  • Which systems are affected by CVE-2023-4004?

    CVE-2023-4004 affects various systems including IBM Storage Protect Plus vSnap, Red Hat Enterprise Linux, and several versions of the Linux Kernel.

  • Can CVE-2023-4004 lead to data loss?

    Yes, CVE-2023-4004 can lead to data loss as it can result in memory corruption due to use-after-free errors.

  • What is the recommended action for servers running Linux Kernel version 6.5 or lower for CVE-2023-4004?

    It is recommended to upgrade to a patched version of the Linux Kernel to mitigate the risks associated with CVE-2023-4004.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203