CVE-2024-50036: net: do not delay dst_entries_add() in dst_release()
In the Linux kernel, the following vulnerability has been resolved:
net: do not delay dstentriesadd() in dstrelease()
dstentriesadd() uses per-cpu data that might be freed at netns dismantle from ip6routenetexit() calling dstentriesdestroy()
Before ip6routenetexit() can be called, we release all the dsts associated with this netns, via calls to dstrelease(), which waits an rcu grace period before calling dstdestroy()
dstentriesadd() use in dstdestroy() is racy, because dstentriesdestroy() could have been called already.
Decrementing the number of dsts must happen sooner.
Notes:
1) in CONFIGXFRM case, dstdestroy() can call dstreleaseimmediate(child), this might also cause UAF if the child does not have DSTNOCOUNT set. IPSEC maintainers might take a look and see how to address this.
2) There is also discussion about removing this count of dst, which might happen in future kernels.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
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.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50036?
CVE-2024-50036 has a severity rating that may vary based on the specific version of the Linux kernel affected.
How do I fix CVE-2024-50036?
To fix CVE-2024-50036, you should upgrade the Linux kernel to a version that has applied the relevant security patches.
Which versions of the Linux kernel are affected by CVE-2024-50036?
CVE-2024-50036 affects multiple versions of the Linux kernel, including versions 3.10.50 to 3.11, 3.12.26 to 3.13, and several others up to versions 6.12-rc2.
Is CVE-2024-50036 a remote vulnerability?
CVE-2024-50036 can potentially be exploited remotely depending on the specific network configurations and kernel version in use.
What type of vulnerability is CVE-2024-50036?
CVE-2024-50036 is related to a memory handling issue in the Linux kernel that involves the management of destination entries.