Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2023-4147 EUVD-2023-54027GHSA-pcv9-72q8-27vc

Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free

Published Aug 7, 2023 · Updated Nov 7, 2026 · Assigned by redhat

Vendor: Red Hat Product: Red Hat Enterprise Linux 6 Product: Red Hat Enterprise Linux 7 Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 9 Product: Red Hat Enterprise Linux 9.0 Extended Update Support Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-nvidia Package: linux-nvidia-6.2 Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A use-after-free flaw was found in the Linux kernel’s Netfilter functionality when adding a rule with NFTA_RULE_CHAIN_ID. This flaw allows a local user to crash or escalate their privileges on the system.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.4.11-1 —
Debian 13 linux 6.4.11-1 —
Debian 12 linux 6.1.52-1 DSA-5492-1
Debian 11 linux 5.10.191-1 DSA-5480-1
Debian 10 linux-5.10 5.10.197-1~deb10u1 DLA-3623-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1022.24 —
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux +1 5.15.0-82.91 —
Ubuntu 22.04 LTS linux-aws 5.15.0-1043.48 —
Ubuntu 22.04 LTS linux-aws-6.2 6.2.0-1010.10~22.04.1 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1045.52 —
Ubuntu 22.04 LTS linux-azure-6.2 +1 6.2.0-1011.11~22.04.1 —
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1045.52.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1040.48 —
Ubuntu 22.04 LTS linux-gcp-6.2 6.2.0-1012.12~22.04.1 —
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1040.45 —
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1026.31 —
Ubuntu 22.04 LTS linux-hwe-6.2 6.2.0-31.31~22.04.1 —
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1036.39 —
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1038.43 —
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1031.31 —
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1017.17 —
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1004.4 —
Ubuntu 22.04 LTS linux-oem-6.1 6.1.0-1020.20 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1041.47 —
Ubuntu 22.04 LTS linux-riscv +13 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1025.29 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1043.48~20.04.1 —
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1045.52~20.04.1 —
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1040.48~20.04.1 —
Ubuntu 20.04 LTS linux-gke +25 No fix yet —
Ubuntu 20.04 LTS linux-gkeop-5.15 5.15.0-1026.31~20.04.1 —
Ubuntu 20.04 LTS linux-hwe-5.15 +1 5.15.0-82.91~20.04.1 —
Ubuntu 20.04 LTS linux-ibm-5.15 5.15.0-1036.39~20.04.1 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1038.43~20.04.1 —
Ubuntu 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1017.17~20.04.1 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1041.47~20.04.1 —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1039.43~20.04.2 —
Ubuntu 18.04 LTS linux-gcp +13 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1037.39 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1044.49 —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 bpftool 7.0.0-284.30.1.el9_2 RHSA-2023:5069
RHEL 9 kernel-rt +14 5.14.0-284.30.1.rt14.315.el9_2 RHSA-2023:5091
RHEL 9 kpatch-patch-5_14_0-284_11_1 1-5.el9_2 RHSA-2023:5093
RHEL 9 kpatch-patch-5_14_0-284_18_1 1-4.el9_2 RHSA-2023:5093
RHEL 9 kpatch-patch-5_14_0-284_25_1 1-3.el9_2 RHSA-2023:5093
RHEL 9 perf +48 5.14.0-284.30.1.el9_2 RHSA-2023:5069
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS kernel-rt +12 5.14.0-70.80.1.rt21.151.el9_0 RHSA-2023:7389
RHEL 9.0 EUS kpatch-patch-5_14_0-70_53_1 1-5.el9_0 RHSA-2023:7411
RHEL 9.0 EUS kpatch-patch-5_14_0-70_58_1 1-4.el9_0 RHSA-2023:7411
RHEL 9.0 EUS kpatch-patch-5_14_0-70_64_1 1-3.el9_0 RHSA-2023:7411
RHEL 9.0 EUS kpatch-patch-5_14_0-70_70_1 1-2.el9_0 RHSA-2023:7411
RHEL 9.0 EUS kpatch-patch-5_14_0-70_75_1 1-1.el9_0 RHSA-2023:7411
RHEL 9.0 EUS perf +29 5.14.0-70.80.1.el9_0 RHSA-2023:7382

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 bpftool 7.0.0-284.30.1.el9_2 ALSA-2023:5069
AlmaLinux 9 kernel-rt +13 5.14.0-284.30.1.rt14.315.el9_2 ALSA-2023:5091
AlmaLinux 9 perf +43 5.14.0-284.30.1.el9_2 ALSA-2023:5069

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 kernel-rt 5.14.0-284.30.1.rt14.315.el9_2 RLSA-2023:5091
ReleasePackageFixed inAdvisory
SLES 15 SP5 kernel-64kb +6 5.14.21-150500.55.28.1 SUSE-SU-2023:3971-1
SLES 15 SP5 kernel-azure +2 5.14.21-150500.33.17.1 SUSE-SU-2023:3656-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.28.1.150500.6.11.2 SUSE-SU-2023:3971-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.88.1 SUSE-SU-2023:3969-1
SLES 15 SP4 kernel-azure +2 5.14.21-150400.14.66.1 SUSE-SU-2023:3682-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.88.1.150400.24.40.1 SUSE-SU-2023:3969-1
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SLES for SAP 15 SP3 kernel-docs +5 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLE Micro 5.5 kernel-default 5.14.21-150500.55.28.1 SUSE-SU-2023:3971-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.28.1.150500.6.11.2 SUSE-SU-2023:3971-1
SLE Micro 5.5 kernel-rt 5.14.21-150500.13.18.1 SUSE-SU-2023:3988-1
SLE Micro 5.4 kernel-default 5.14.21-150400.24.88.1 SUSE-SU-2023:3969-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.88.1.150400.24.40.1 SUSE-SU-2023:3969-1
SLE Micro 5.4 kernel-rt 5.14.21-150400.15.53.1 SUSE-SU-2023:3964-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.88.1 SUSE-SU-2023:3969-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.88.1.150400.24.40.1 SUSE-SU-2023:3969-1
SLE Micro 5.3 kernel-rt 5.14.21-150400.15.53.1 SUSE-SU-2023:3964-1
SLE Micro 5.2 kernel-default 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLE Micro 5.2 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SLE Micro 5.2 kernel-rt 5.3.18-150300.141.1 SUSE-SU-2023:3785-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SLE Micro 5.1 kernel-rt 5.3.18-150300.141.1 SUSE-SU-2023:3785-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.28.1 SUSE-SU-2023:3971-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5-RT_Update_4 +1 1-150500.11.3.1 SUSE-SU-2023:3988-1, SUSE-SU-2023:3599-2, SUSE-SU-2023:3599-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_0 +1 5-150500.12.2 SUSE-SU-2023:4326-1, SUSE-SU-2023:4166-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_1 +2 4-150500.2.1 SUSE-SU-2023:4322-1, SUSE-SU-2023:4308-1, SUSE-SU-2023:4175-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_3 +1 3-150500.2.1 SUSE-SU-2023:4325-1, SUSE-SU-2023:4165-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_5 1-150500.11.5.1 SUSE-SU-2023:3971-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.88.1 SUSE-SU-2023:3969-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4-RT_Update_12 +1 1-150400.1.3.1 SUSE-SU-2023:3964-1, SUSE-SU-2023:3600-2, SUSE-SU-2023:3600-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4-RT_Update_7 7-150400.2.1 SUSE-SU-2023:4166-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_13 5-150400.2.1 SUSE-SU-2023:4308-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_15 4-150400.2.1 SUSE-SU-2023:4322-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_16 +1 3-150400.2.1 SUSE-SU-2023:4301-1, SUSE-SU-2023:4165-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_18 1-150400.9.3.1 SUSE-SU-2023:3969-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_4 13-150400.2.3 SUSE-SU-2023:4267-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_6 +1 11-150400.2.3 SUSE-SU-2023:4285-1, SUSE-SU-2023:4201-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_32 7-150300.2.2 SUSE-SU-2023:4285-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_33 5-150300.2.2 SUSE-SU-2023:4219-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_34 4-150300.2.2 SUSE-SU-2023:4239-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_35 3-150300.2.2 SUSE-SU-2023:4260-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_36 1-150300.7.3.1 SUSE-SU-2023:3684-1
SLE HPC 15 SP3 kernel-64kb +6 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SLE HPC 15 SP3 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SUSE Real Time Module 15 SP5 kernel-rt +3 5.14.21-150500.13.18.1 SUSE-SU-2023:3988-1
SUSE Real Time Module 15 SP4 kernel-rt +3 5.14.21-150400.15.53.1 SUSE-SU-2023:3964-1
SUSE Manager Server 4.2 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SUSE Manager Server 4.2 kernel-source +3 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SUSE Manager Proxy 4.2 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
SUSE Manager Proxy 4.2 kernel-source +2 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SUSE Enterprise Storage 7.1 kernel-64kb +6 5.3.18-150300.59.133.1 SUSE-SU-2023:3684-1
SUSE Enterprise Storage 7.1 kernel-default-base 5.3.18-150300.59.133.1.150300.18.78.1 SUSE-SU-2023:3684-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 dtb-aarch64 +10 5.14.21-150500.55.28.1 SUSE-SU-2023:3971-1
openSUSE Leap 15.5 kernel-azure +2 5.14.21-150500.33.17.1 SUSE-SU-2023:3656-1
openSUSE Leap 15.5 kernel-default-base 5.14.21-150500.55.28.1.150500.6.11.2 SUSE-SU-2023:3971-1
openSUSE Leap 15.5 kernel-rt +3 5.14.21-150500.13.18.1 SUSE-SU-2023:3988-1
openSUSE Leap 15.4 dtb-aarch64 5.3.18-150300.59.133.1 SUSE-SU-2023:3969-1, SUSE-SU-2023:3684-1
openSUSE Leap 15.4 kernel-64kb +9 5.14.21-150400.24.88.1 SUSE-SU-2023:3969-1
openSUSE Leap 15.4 kernel-azure +2 5.14.21-150400.14.66.1 SUSE-SU-2023:3682-1
openSUSE Leap 15.4 kernel-default-base 5.14.21-150400.24.88.1.150400.24.40.1 SUSE-SU-2023:3969-1
openSUSE Leap 15.4 kernel-rt +3 5.14.21-150400.15.53.1 SUSE-SU-2023:3964-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.49-69.116 1.0-0.amzn2023 ALAS2023-2023-330
Amazon Linux 2023 perf +12 6.1.49-69.116.amzn2023 ALAS2023-2023-330

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.126.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 bpftool 7.0.0-284.30.0.1.el9_2 ELSA-2023-5069
Oracle Linux 9 perf +25 5.14.0-284.30.0.1.el9_2 ELSA-2023-5069

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 44

References