Vulnerability · Published Aug 7, 2023 · Assigned by redhat
CVE-2023-4147Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free
High 7.8
In plain English
A high-severity use-after-free in Red Hat Enterprise Linux 6 from Red Hat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.6%top 53.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | bpftool | 7.0.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-modules | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-rt | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-kvm | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-kvm | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-284.30.1.rt14.315.el9_2 | ALSA-2023:5091 |
| AlmaLinux:9 | kernel-tools | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | perf | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | python3-perf | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| AlmaLinux:9 | rtla | 5.14.0-284.30.1.el9_2 | ALSA-2023:5069 |
| Debian:12 | linux | 6.1.52-1 | DEBIAN-CVE-2023-4147 |
| Debian:12 | linux | 6.1.52-1 | DSA-5492-1 |
| Debian:13 | linux | 6.4.11-1 | DEBIAN-CVE-2023-4147 |
| Debian:14 | linux | 6.4.11-1 | DEBIAN-CVE-2023-4147 |
| Rocky Linux:9 | kernel-rt | 0:5.14.0-284.30.1.rt14.315.el9_2 | RLSA-2023:5091 |
| Ubuntu:22.04:LTS | linux | 5.15.0-82.91 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1043.48 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1010.10~22.04.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1045.52 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1011.11~22.04.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1045.52.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1040.48 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1012.12~22.04.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1040.45 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1026.31 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-31.31~22.04.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1036.39 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1038.43 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1040.45 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-82.91 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1011.11~22.04.1 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1031.31 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1017.17 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1004.4 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1020.20 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1041.47 | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1036.39 | UBUNTU-CVE-2023-4147 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-4147 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1025.29 | UBUNTU-CVE-2023-4147 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- RHSA-2023:5069 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:5091 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:5093 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7382 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7389 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:7411 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-4147 vdb-entry, x_refsource_REDHAT
- RHBZ#2225239 issue-tracking, x_refsource_REDHAT
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ebc1064e4874d5987722a2ddbc18f94aa53b211
- https://www.spinics.net/lists/stable/msg671573.html
- https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html x_transferred
- https://security.netapp.com/advisory/ntap-20231020-0006/ x_transferred
- https://www.debian.org/security/2023/dsa-5480 x_transferred
- https://www.debian.org/security/2023/dsa-5492 x_transferred