CVE-2023-4147

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

HIGH
7.8
CVSS Score
Published: August 7, 2023 at 01:19 PM UTC
Updated: June 17, 2026 at 06:37 AM UTC
8 products affected across 4 vendorsLinux KernelDebian LinuxFedora

Using Red Hat Enterprise Linux 9 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 9 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.6%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.1245.16 ≤ v < 6.1.435.9 ≤ v < 5.10.1906.2 ≤ v < 6.4.86.5 rc16.5 rc26.5 rc3
Affected range stops below 5.10.190, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.15.124, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.1.43, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.4.8, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 0:5.14.0-284.30.1.el9_2 (unaffected)
Vendor states this is fixed in 0:5.14.0-284.30.1.rt14.315.el9_2 (unaffected)
Vendor states this is fixed in 0:5.14.0-70.80.1.el9_0 (unaffected)
Vendor states this is fixed in 0:5.14.0-70.80.1.rt21.151.el9_0 (unaffected)
Vendor states this is fixed in 6 (unaffected)
Vendor states this is fixed in 7 (unaffected)
Vendor states this is fixed in 8 (unaffected)
Vendor states this is fixed in 9 (unaffected)

References (14)

Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:5069
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:5091
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:5093
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7382
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7389
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2023:7411
VDB Entryx_refsource_REDHATPatchThird Party Advisory
https://access.redhat.com/security/cve/CVE-2023-4147
Issue Trackingx_refsource_REDHATPatchThird Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2225239

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHredhat
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card