Skip to main content
Mallory
HighVulnerability

CVE-2023-31248: Linux Kernel nftables nft_chain_lookup_byid Use-After-Free Privilege Escalation

Published Jul 5, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.86%56th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendors
Debian ProjectFedora ProjectLinuxCanonical
IdentifiersCVE-2023-31248CWE-416 · Use After Free

CVE-2023-31248 is a use-after-free vulnerability in the Linux kernel Netfilter nftables subsystem, in nf_tables function nft_chain_lookup_byid(). The function did not validate that a chain identified by ID was active for the applicable generation mask. Consequently, an nftables batch transaction could delete a chain and subsequently create a rule that references the now-inactive chain by its ID. The stale reference can survive transaction processing and, through a race between rule deletion/transaction abort handling and asynchronous transaction-destruction work, can reference chain memory after it has been freed. Upstream remediation adds generation-mask validation to chain-by-ID lookup and updates relevant callers so inactive chains cannot be returned or referenced.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A local attacker with CAP_NET_ADMIN in a user namespace or network namespace can exploit the use-after-free to escalate privileges to kernel-level execution and obtain root privileges. The memory-corruption condition may also cause kernel instability or denial of service.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict local access by untrusted users and containers, and avoid delegating CAP_NET_ADMIN. Disable or tightly constrain unprivileged user-namespace creation where operationally feasible, and limit access to network namespaces and nftables configuration interfaces. These measures reduce exploitability but do not replace applying a fixed kernel.

Remediation

Patch, then assume compromise.

Install the vendor-supported Linux kernel update containing the fix for CVE-2023-31248, then reboot into the updated kernel unless the vendor supplies and documents an applicable live patch. For Red Hat Enterprise Linux 9, apply the relevant kernel, kernel-rt, or kpatch-patch security update. For SUSE products, install the applicable kernel security or live-patch update for the deployed product and kernel stream. Ubuntu systems should update to a kernel version containing the fix; the referenced vulnerable Ubuntu generic kernels precede 6.2.0-26-generic.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2023-31248 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2023-31248 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-31248?
As of Oct 16, 2026, Mallory has found no public exploit for CVE-2023-31248.
Is there a patch for CVE-2023-31248?
Install the vendor-supported Linux kernel update containing the fix for CVE-2023-31248, then reboot into the updated kernel unless the vendor supplies and documents an applicable live patch. For Red Hat Enterprise Linux 9, apply the relevant kernel, kernel-rt, or kpatch-patch security update.
What products are affected by CVE-2023-31248?
Linux Kernel, Debian Project Debian Linux, Fedora Project Fedora, and Canonical Ubuntu Linux.
How severe is CVE-2023-31248?
CVE-2023-31248 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.86% (56th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.