CVE-2024-50036

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/10/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> net: do not delay dst_entries_add() in dst_release()<br /> <br /> dst_entries_add() uses per-cpu data that might be freed at netns<br /> dismantle from ip6_route_net_exit() calling dst_entries_destroy()<br /> <br /> Before ip6_route_net_exit() can be called, we release all<br /> the dsts associated with this netns, via calls to dst_release(),<br /> which waits an rcu grace period before calling dst_destroy()<br /> <br /> dst_entries_add() use in dst_destroy() is racy, because<br /> dst_entries_destroy() could have been called already.<br /> <br /> Decrementing the number of dsts must happen sooner.<br /> <br /> Notes:<br /> <br /> 1) in CONFIG_XFRM case, dst_destroy() can call<br /> dst_release_immediate(child), this might also cause UAF<br /> if the child does not have DST_NOCOUNT set.<br /> IPSEC maintainers might take a look and see how to address this.<br /> <br /> 2) There is also discussion about removing this count of dst,<br /> which might happen in future kernels.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.10.50 (including) 3.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.12.26 (including) 3.13 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.14.14 (including) 3.15 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.15.7 (including) 3.16 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.16 (including) 6.6.57 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.4 (excluding)
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*