CVE-2024-1085: 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.
The nftsetelemcatchalldeactivate() function checks whether the catch-all set element is active in the current generation instead of the next generation before freeing it, but only flags it inactive in the next generation, making it possible to free the element multiple times, leading to a double free vulnerability.
We recommend upgrading past commit b1db244ffd041a49ecc9618e8feb6b5c1afcdaa7.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch b1db244ffd041a49ecc9618e8feb6b5c1afcdaa7 - Configuration
Disable unprivileged user namespace creation: set kernel.unprivileged_userns_clone=0 (temporarily with sysctl -w; persistently via /etc/sysctl.d/99-disable-unpriv-userns.conf).
Linux kernel (sysctl) kernel.unprivileged_userns_clone = 0
Event History
Frequently Asked Questions
What is the severity of CVE-2024-1085?
CVE-2024-1085 has a high severity rating due to its potential for local privilege escalation in the Linux kernel.
How do I fix CVE-2024-1085?
To mitigate CVE-2024-1085, users should upgrade to kernel versions 6.8 or higher, or apply the specific patches provided by their distribution.
Which Linux kernel versions are affected by CVE-2024-1085?
CVE-2024-1085 affects several Linux kernel versions ranging from 5.13 to 6.7.2 and includes various specific versions mentioned in the advisory.
Can CVE-2024-1085 be exploited remotely?
CVE-2024-1085 is a local privilege escalation vulnerability, meaning it cannot be exploited remotely without prior local access.
What is the impact of CVE-2024-1085?
The impact of CVE-2024-1085 allows an attacker with local access to escalate their privileges, leading to potential system compromise.