CVE-2023-31248
No exploitation reported by the sources we read.
- Published2023-07-05
- WeaknessCWE-416
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2023-07-0519:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 20.4 | = 20.04 | no fix published | NVD |
| 22.4 | = 22.04 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.x | ≥ 6.2, < 6.4.4 | 6.4.4 | NVD |
| 6.1 | ≥ 5.16, < 6.1.39 | 6.1.39 | NVD |
| 5.x | ≥ 5.11, < 5.15.121 | 5.15.121 | NVD |
| 5.x | ≥ 5.9, < 5.10.188 | 5.10.188 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 37.x | = 37 | no fix published | NVD |
| 38.x | = 38 | no fix published | NVD |
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
kernel: nf_tables: use-after-free in nft_chain_lookup_byid()
Red Hat Security Advisory: kernel security and bug fix update
Red Hat Security Advisory: kernel-rt security and bug fix update
Red Hat Security Advisory: kpatch-patch security update
Red Hat Security Advisory: kernel security, bug fix, and enhancement update
Red Hat Security Advisory: kpatch-patch security update
3 more advisories
Fix
- 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.
- 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
- Vendor fix CISA ICSA-23-166-10 · 1 productUpdate to V1.3.0 or later version
- Vendor fix Siemens ProductCERT SSA-831302 · 1 productUpdate to V1.3.0 or later version
- 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
- Workaround from the vendor CISA ICSA-23-166-10 · 1 productOnly build and run applications from trusted sources
Advisories and patches
- lore.kernel.orgPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-10
- 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
- EUVD-2023-35563same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-vr3g-637q-4rh6same flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2023:5069advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:5091advisory covering several CVEsAlmaLinux · MIT
- DLA-3512-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5453-1advisory covering several CVEsDebian · LicenseRef-unstated
- LSN-0096-1advisory covering several CVEsUbuntu
- LSN-0097-1advisory covering several CVEsUbuntu
- MGASA-2023-0237advisory covering several CVEsMageia · LicenseRef-unstated
- MGASA-2023-0243advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1435advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1436advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1437advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2023:5069advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5091advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5093advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5575advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5603advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5604advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2023:5091advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2023:3171-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3172-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3180-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3182-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3302-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3318-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3391-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3421-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3772-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3773-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3783-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3784-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3892-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3922-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3923-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3928-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03600-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03613-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03615-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03626-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03628-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:03634-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20851-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20861-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20870-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:20898-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:3716-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:3751-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:3761-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:4057-1advisory covering several CVEsSUSE · LicenseRef-unstated
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?
Is CVE-2023-31248 actively exploited?
What is the CVSS score for CVE-2023-31248?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-vr3g-637q-4rh6
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0