CVE-2023-4015: Use-after-free in Linux kernel's netfilter: nf_tables component
A use-after-free vulnerability in the Linux kernel's netfilter: nftables component can be exploited to achieve local privilege escalation.
On an error when building a nftables rule, deactivating immediate expressions in nftimmediatedeactivate() can lead unbinding the chain and objects be deactivated but later used.
We recommend upgrading past commit 0a771f7b266b02d262900c75f1e175c7fe76fec2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/Kernelto a version that resolves this vulnerability.Fixed in 6.5 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Upgrade
Upgrade
Linux kernel netfilter nf_tablesto a version that resolves this vulnerability.Patch 0a771f7b266b02d262900c75f1e175c7fe76fec2 - Configuration
If unprivileged users do not need to create namespaces, set kernel.unprivileged_userns_clone=0; apply temporarily with sysctl and persist across reboots in /etc/sysctl.d/99-disable-unpriv-userns.conf.
Linux kernel kernel.unprivileged_userns_clone = 0
Event History
Frequently Asked Questions
What is the severity of CVE-2023-4015?
The severity of CVE-2023-4015 is relatively high due to its potential for local privilege escalation.
How do I fix CVE-2023-4015?
To fix CVE-2023-4015, update the Linux kernel to version 6.5 or apply the necessary patches as specified by your distribution.
Which systems are affected by CVE-2023-4015?
CVE-2023-4015 affects various versions of the Linux kernel, specifically from 5.9 to 6.5, and certain Debian Linux versions.
What type of vulnerability is CVE-2023-4015?
CVE-2023-4015 is classified as a use-after-free vulnerability in the netfilter nf_tables component.
Can CVE-2023-4015 be exploited remotely?
CVE-2023-4015 is primarily a local privilege escalation vulnerability and cannot be exploited remotely.