Skip to main content
No exploitation reportedFix available

CVE-2023-31248

No exploitation reported by the sources we read.

  • Published2023-07-05
  • WeaknessCWE-416

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability; `nft_chain_lookup_byid()` failed to check whether a chain was active and CAP_NET_ADMIN is in any user or network namespace

Timeline

dates in UTC
  1. 2023-07-0519:15CVE publishedNVD

Versions per branch

NVD
Canonical ubuntu linux
BranchAffectedFixed in
14.4= 14.04no fix published
16.4= 16.04no fix published
18.4= 18.04no fix published
20.4= 20.04no fix published
22.4= 22.04no fix published
Linux linux kernel
BranchAffectedFixed in
6.x≥ 6.2, < 6.4.46.4.4
6.1≥ 5.16, < 6.1.396.1.39
5.x≥ 5.11, < 5.15.1215.15.121
5.x≥ 5.9, < 5.10.1885.10.188
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As canonical, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linux Kernel

    platforms: Linux

    Affected
    • = v5.9-rc1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-02-01

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • bpftoolRed Hat:enterprise_linux:9::baseosall versions · fixed in 0:7.0.0-284.30.1.el9_2and 1 other package
  • bpftoolAlmaLinux:9all versions · fixed in 7.0.0-284.30.1.el9_2
  • bpftool-debuginfoRed Hat:enterprise_linux:9::crball versions · fixed in 0:7.0.0-284.30.1.el9_2
  • bpftool-debuginfoRed Hat:enterprise_linux:9::appstreamall versions · fixed in 0:7.0.0-284.30.1.el9_2
  • dtb-aarch64openSUSE:Leap 15.6all versions · fixed in 6.4.0-150600.23.73.1and 10 other packages
  • dtb-aarch64openSUSE:Leap 15.5all versions · fixed in 5.14.21-150500.55.12.1and 10 other packages
  • dtb-aarch64openSUSE:Leap 15.4all versions · fixed in 5.14.21-150400.24.74.1and 10 other packages
  • dtb-aarch64openSUSE:Leap 15.4all versions · fixed in 5.3.18-150300.59.130.1

268 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-31248 Red Hat Product Security493 products fixed

    kernel: nf_tables: use-after-free in nft_chain_lookup_byid()

  • RHSA-2023:5604 Red Hat Product Security166 products fixed

    Red Hat Security Advisory: kernel security and bug fix update

  • RHSA-2023:5603 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: kernel-rt security and bug fix update

  • RHSA-2023:5575 Red Hat Product Security42 products fixed

    Red Hat Security Advisory: kpatch-patch security update

  • RHSA-2023:5069 Red Hat Product Security200 products fixed

    Red Hat Security Advisory: kernel security, bug fix, and enhancement update

  • RHSA-2023:5093 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: kpatch-patch security update

3 more advisories

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2023:5604 · 166 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 The system must be rebooted for this update to take effect.
  2. Vendor fix Red Hat Product Security RHSA-2023:5575 · 42 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix CISA ICSA-23-166-10 · 1 productUpdate to V1.3.0 or later version
  4. Vendor fix Siemens ProductCERT SSA-831302 · 1 productUpdate to V1.3.0 or later version
  5. Workaround from the vendor Red Hat Product Security RHSA-2023:5604 · 166 productsTo 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
  6. Workaround from the vendor CISA ICSA-23-166-10 · 1 productOnly build and run applications from trusted sources

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-03-05
  • CNACVSS 3.17.8known since 2026-10-23
  • NVDCVSS 3.17.8read 2026-10-23
  • CNAweakness (CWE)CWE-416known since 2026-10-23
  • NVDweakness (CWE)CWE-416read 2026-10-23
  • FIRST EPSSEPSS score1.9 %2026-11-09
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2023-07-05
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-vr3g-637q-4rh6

Frequently asked questions

What is CVE-2023-31248?

Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability; `nft_chain_lookup_byid()` failed to check whether a chain was active and CAP_NET_ADMIN is in any user or network namespace

Is CVE-2023-31248 actively exploited?

Active exploitation of CVE-2023-31248 has not been confirmed. Its EPSS score was 1.9% on 2026-11-09, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-31248?

CVE-2023-31248 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record