CVE-2023-31248: (Pwn2Own) Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability

Published Jul 5, 2023
·
Updated

Last updated 18 March 2026

Other sources

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

Launchpad

This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the handling of nftchains. The issue results from the lack of validating the status of a chain while processing lookup on the chain. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the kernel.

ZDI

Affected Software

15 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.9<5.10.188
Linux Linux kernel>=5.11<5.15.121
Linux Linux kernel>=5.16<6.1.39
Linux Linux kernel>=6.2<6.4.4
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Debian Debian Linux=11.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=22.04
Linux Linux kernel=5.9.0-rc1
debian/linux
5.10.223-15.10.251-56.1.170-36.1.172-16.12.86-16.12.88-17.0.7-1

Remediation

Mitigation

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

Event History

Jul 5, 2023
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
DescriptionSeverityWeakness
Jul 6, 2023
Data Sourced
via Red Hat·01:01 PM
DescriptionSeverityAffected Software
Feb 21, 2024
Data Sourced
via Launchpad·12:42 AM
Description
Feb 26, 2025
Advisory Published
via ZDI·03:45 PM
May 13, 2026
Data Sourced
via Ubuntu·04:07 AM
RemedyDescriptionSeverityAffected Software
May 17, 2026
Data Sourced
via Debian·04:11 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-31248?

CVE-2023-31248 is considered a high severity local privilege escalation vulnerability.

2

How do I fix CVE-2023-31248?

To mitigate CVE-2023-31248, update to a patched version of the Linux kernel, such as 5.10.223-1 or 6.1.123-1.

3

Which versions of the Linux kernel are affected by CVE-2023-31248?

CVE-2023-31248 impacts Linux kernel versions between 5.9 and 6.4.4, including specific distributions like Fedora and Ubuntu.

4

Can CVE-2023-31248 be exploited remotely?

CVE-2023-31248 requires local access for exploitation, meaning an attacker must have local user capabilities.

5

What does the CVE-2023-31248 vulnerability involve?

CVE-2023-31248 involves a use-after-free condition in the nftables subsystem of the Linux kernel that could lead to privilege escalation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203