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

Published Jul 24, 2023
·
Updated

A flaw in the Linux Kernel found. Improper element removal in function nftpipaporemove when insert an element without a NFTSETEXTKEYEND that can lead to use-after-free.

Reference: https://patchwork.ozlabs.org/project/netfilter-devel/patch/20230719190824.21196-1-fw@strlen.de/

Other sources

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

— Ubuntu

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a flaw in the nftpipaporemove function in the netfilter. By sending a specially crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges or cause the system to crash.

— IBM

Affected Software

119 affected componentsFixes available
IBM Storage Protect Plus vSnap<=10.1
Linux Linux kernel=6.5-rc1
Linux Linux kernel<6.5
Linux Linux kernel=6.5-rc2
Linux Linux kernel=6.5-rc3
Linux Linux kernel=6.5-rc4
Fedoraproject Fedora=38
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat/kernel<6.5
6.5
Linux Linux kernel>=5.6<5.10.188
Linux Linux kernel>=5.11<5.15.123
Linux Linux kernel>=5.16<6.1.42
Linux Linux kernel>=6.2<6.4.7
NetApp H300s
NetApp H410s
NetApp H500s
NetApp H700s
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Debian Debian Linux=12.0
debian/linux<6.1.52-1
6.1.52-1
debian/linux<6.4.11-1
6.4.11-1
debian/linux<6.4.11-1
6.4.11-1
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-5.15<5.15.0-1043.48~20.04.1
5.15.0-1043.48~20.04.1
ubuntu/linux-azure-5.15<5.15.0-1045.52~20.04.1
5.15.0-1045.52~20.04.1
ubuntu/linux-bluefield<5.4.0-1073.79
5.4.0-1073.79
ubuntu/linux-gcp-5.15<5.15.0-1040.48~20.04.1
5.15.0-1040.48~20.04.1
ubuntu/linux-gkeop-5.15<5.15.0-1026.31~20.04.1
5.15.0-1026.31~20.04.1
ubuntu/linux-hwe-5.15<5.15.0-82.91~20.04.1
5.15.0-82.91~20.04.1
ubuntu/linux-ibm-5.15<5.15.0-1036.39~20.04.1
5.15.0-1036.39~20.04.1
ubuntu/linux-intel-iotg-5.15<5.15.0-1038.43~20.04.1
5.15.0-1038.43~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-82.91~20.04.1
5.15.0-82.91~20.04.1
ubuntu/linux-nvidia-tegra-5.15<5.15.0-1017.17~20.04.1
5.15.0-1017.17~20.04.1
ubuntu/linux-oracle-5.15<5.15.0-1041.47~20.04.1
5.15.0-1041.47~20.04.1
ubuntu/linux-riscv-5.15<5.15.0-1039.43~20.04.2
5.15.0-1039.43~20.04.2
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux<5.15.0-82.91
5.15.0-82.91
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1043.48
5.15.0-1043.48
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2<6.2.0-1010.10~22.04.1
6.2.0-1010.10~22.04.1
ubuntu/linux-azure<5.15.0-1045.52
5.15.0-1045.52
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2<6.2.0-1011.11~22.04.1
6.2.0-1011.11~22.04.1
ubuntu/linux-azure-fde<5.15.0-1045.52.1
5.15.0-1045.52.1
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-gcp<5.15.0-1040.48
5.15.0-1040.48
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2<6.2.0-1012.12~22.04.1
6.2.0-1012.12~22.04.1
ubuntu/linux-gke<5.15.0-1040.45
5.15.0-1040.45
ubuntu/linux-gkeop<5.15.0-1026.31
5.15.0-1026.31
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2<6.2.0-31.31~22.04.1
6.2.0-31.31~22.04.1
ubuntu/linux-ibm<5.15.0-1036.39
5.15.0-1036.39
ubuntu/linux-intel-iotg<5.15.0-1038.43
5.15.0-1038.43
ubuntu/linux-kvm<5.15.0-1040.45
5.15.0-1040.45
ubuntu/linux-lowlatency<5.15.0-82.91
5.15.0-82.91
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2<6.2.0-1011.11~22.04.1
6.2.0-1011.11~22.04.1
ubuntu/linux-nvidia<5.15.0-1031.31
5.15.0-1031.31
ubuntu/linux-nvidia-6.2<6.2.0-1010.10
6.2.0-1010.10
ubuntu/linux-nvidia-tegra<5.15.0-1017.17
5.15.0-1017.17
ubuntu/linux-nvidia-tegra-igx<5.15.0-1004.4
5.15.0-1004.4
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0<6.0.0-1021.21
6.0.0-1021.21
ubuntu/linux-oem-6.1<6.1.0-1020.20
6.1.0-1020.20
ubuntu/linux-oracle<5.15.0-1041.47
5.15.0-1041.47
ubuntu/linux-raspi<5.15.0-1036.39
5.15.0-1036.39
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-starfive-5.19*
ubuntu/linux-xilinx-zynqmp<5.15.0-1025.29
5.15.0-1025.29
ubuntu/linux-bluefield<5.15.0-1022.24
5.15.0-1022.24
ubuntu/linux-intel-iot-realtime<5.15.0-1037.39
5.15.0-1037.39
ubuntu/linux-realtime<5.15.0-1044.49
5.15.0-1044.49
ubuntu/linux-fips*
ubuntu/linux-raspi-realtime*
debian/linux
5.10.191-16.1.52-16.4.11-1
debian/linux-5.10
5.10.197-1~deb10u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.5
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.52-1
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.4.11-1
  4. Upgrade

    Upgrade ubuntu/linux-aws-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1043.48~20.04.1
  5. Upgrade

    Upgrade ubuntu/linux-azure-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1045.52~20.04.1
  6. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.79
  7. Upgrade

    Upgrade ubuntu/linux-gcp-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.48~20.04.1
  8. Upgrade

    Upgrade ubuntu/linux-gkeop-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1026.31~20.04.1
  9. Upgrade

    Upgrade ubuntu/linux-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-82.91~20.04.1
  10. Upgrade

    Upgrade ubuntu/linux-ibm-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1036.39~20.04.1
  11. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1038.43~20.04.1
  12. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-82.91~20.04.1
  13. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.17~20.04.1
  14. Upgrade

    Upgrade ubuntu/linux-oracle-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.47~20.04.1
  15. Upgrade

    Upgrade ubuntu/linux-riscv-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1039.43~20.04.2
  16. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.15.0-82.91
  17. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.15.0-1043.48
  18. Upgrade

    Upgrade ubuntu/linux-aws-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-1010.10~22.04.1
  19. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.15.0-1045.52
  20. Upgrade

    Upgrade ubuntu/linux-azure-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-1011.11~22.04.1
  21. Upgrade

    Upgrade ubuntu/linux-azure-fde to a version that resolves this vulnerability.

    Fixed in 5.15.0-1045.52.1
  22. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.48
  23. Upgrade

    Upgrade ubuntu/linux-gcp-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-1012.12~22.04.1
  24. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.45
  25. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.15.0-1026.31
  26. Upgrade

    Upgrade ubuntu/linux-hwe-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-31.31~22.04.1
  27. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1036.39
  28. Upgrade

    Upgrade ubuntu/linux-intel-iotg to a version that resolves this vulnerability.

    Fixed in 5.15.0-1038.43
  29. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.45
  30. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 5.15.0-82.91
  31. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-1011.11~22.04.1
  32. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 5.15.0-1031.31
  33. Upgrade

    Upgrade ubuntu/linux-nvidia-6.2 to a version that resolves this vulnerability.

    Fixed in 6.2.0-1010.10
  34. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.17
  35. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-igx to a version that resolves this vulnerability.

    Fixed in 5.15.0-1004.4
  36. Upgrade

    Upgrade ubuntu/linux-oem-6.0 to a version that resolves this vulnerability.

    Fixed in 6.0.0-1021.21
  37. Upgrade

    Upgrade ubuntu/linux-oem-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.0-1020.20
  38. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.47
  39. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.15.0-1036.39
  40. Upgrade

    Upgrade ubuntu/linux-xilinx-zynqmp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1025.29
  41. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.15.0-1022.24
  42. Upgrade

    Upgrade ubuntu/linux-intel-iot-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1037.39
  43. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1044.49
  44. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.191-1Fixed in 6.1.52-1Fixed in 6.4.11-1
  45. Upgrade

    Upgrade debian/linux-5.10 to a version that resolves this vulnerability.

    Fixed in 5.10.197-1~deb10u1
  46. Configuration

    Disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0; apply temporarily with `sudo sysctl -w kernel.unprivileged_userns_clone=0` and persist across reboots in `/etc/sysctl.d/99-disable-unpriv-userns.conf`.

    Linux kernel kernel.unprivileged_userns_clone = 0

Event History

Jul 24, 2023
Data Sourced
08:33 PM
DescriptionSeverityAffected Software
Jul 31, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·04:22 PM
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Oct 10, 2023
Data Sourced
06:48 PM
Weakness
Nov 7, 2023
Updated
04:22 AM
WeaknessAffected Software
Nov 27, 2023
Data Sourced
via Red Hat·01:08 AM
DescriptionSeverityAffected Software
Nov 29, 2023
Updated
03:15 PM
Affected Software
Dec 29, 2023
Data Sourced
via NVD·03:41 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:41 PM
Affected Software
Jan 22, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Jan 23, 2024
Data Sourced
via MITRE·01:11 AM
DescriptionSeverityWeakness
Sep 13, 2024
Updated
via NVD·07:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·08:34 AM
RemedyAffected Software
Oct 14, 2026
Updated
via NVD·10:17 PM
Affected Software
Oct 22, 2026
Updated
via Ubuntu·12:00 AM
Description
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203