CVE-2023-31248
kernel: nf_tables: use-after-free in nft_chain_lookup_byid()
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 5, 2023
Updated · August 7, 2026
Description
A use-after-free flaw was found in the Linux kernel's Netfilter module in net/netfilter/nf_tables_api.c in nft_chain_lookup_byid. This flaw allows a local attacker to cause a local privilege escalation issue due to a missing cleanup.
Statement
Exploiting this flaw will require the CAP_NET_ADMIN access privilege in any user or network namespace.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, it is possible to prevent the affected code from being loaded by blacklisting the kernel netfilter module.
For instructions relating to how to blacklist a kernel module refer to: https://access.redhat.com/solutions/41278
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free