What’s Vulnerable › Vulnerabilities
CVE-2023-4147: Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-08-07 · updated 2026-06-17
- Weakness: CWE-416
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
- Debian Linux: 10.0, 11.0, 12.0
- Fedoraproject Fedora: 38
- Linux kernel: from 5.9 before 5.10.190; from 5.11 before 5.15.124; from 5.16 before 6.1.43; from 6.2 before 6.4.8; 6.5-rc1, 6.5-rc2, 6.5-rc3 — fixed in 5.10.190, 5.15.124, 6.1.43, 6.4.8
- Red Hat Enterprise Linux: 9.0
- RedHat Enterprise Linux Eus: 9.2
- RedHat Enterprise Linux For Real Time: 9.0
- RedHat Enterprise Linux For Real Time For Nfv: 9.0
- RedHat Enterprise Linux Server Aus: 9.2
How to fix
Upgrade to a fixed version: Linux kernel 5.10.190, 5.15.124, 6.1.43, 6.4.8. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2023:5069
- https://access.redhat.com/errata/RHSA-2023:5091
- https://access.redhat.com/errata/RHSA-2023:5093
- https://access.redhat.com/errata/RHSA-2023:7382
- https://access.redhat.com/errata/RHSA-2023:7389
- https://access.redhat.com/errata/RHSA-2023:7411
- https://access.redhat.com/security/cve/CVE-2023-4147
- https://bugzilla.redhat.com/show_bug.cgi?id=2225239
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ebc1064e4874d5987722a2ddbc18f94aa53b211
- https://www.spinics.net/lists/stable/msg671573.html
- https://access.redhat.com/errata/RHSA-2023:5069
- https://access.redhat.com/errata/RHSA-2023:5091
Get alerted when CVE-2023-4147 or the next vulnerability affects your stack