CVE-2024-50036
Linux Kernel IP6 Route Use-After-Free Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: net: do not delay dst_entries_add() in dst_release() dst_entries_add() uses per-cpu data that might be freed at netns dismantle from ip6_route_net_exit() calling dst_entries_destroy() Before ip6_route_net_exit() can be called, we release all the dsts associated with this netns, via calls to dst_release(), which waits an rcu grace period before calling dst_destroy() dst_entries_add() use in dst_destroy() is racy, because dst_entries_destroy() could have been called already. Decrementing the number of dsts must happen sooner. Notes: 1) in CONFIG_XFRM case, dst_destroy() can call dst_release_immediate(child), this might also cause UAF if the child does not have DST_NOCOUNT 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.
INFO
Published Date :
Oct. 21, 2024, 8:15 p.m.
Last Modified :
Nov. 17, 2024, 3:15 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.0
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-50036
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-50036
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-50036
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 17, 2024
Action Type Old Value New Value Added Reference kernel.org https://git.kernel.org/stable/c/547087307bc19417b4f2bc85ba9664a3e8db5a6a [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 14, 2024
Action Type Old Value New Value Added Reference kernel.org https://git.kernel.org/stable/c/e3915f028b1f1c37e87542e5aadd33728c259d96 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/a60db84f772fc3a906c6c4072f9207579c41166f [No types assigned] -
Reanalysis by [email protected]
Nov. 04, 2024
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.10.50 up to (excluding) 3.11 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.12.26 up to (excluding) 3.13 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.14.14 up to (excluding) 3.15 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.15.7 up to (excluding) 3.16 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16 up to (excluding) 6.6.57 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.4 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.10.50 up to (excluding) 3.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.12.26 up to (excluding) 3.13 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.14.14 up to (excluding) 3.15 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.15.7 up to (excluding) 3.16 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16 up to (excluding) 6.6.57 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.4 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* -
Initial Analysis by [email protected]
Oct. 25, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/3c7c918ec0aa3555372c5a57f18780b7a96c5cfc No Types Assigned https://git.kernel.org/stable/c/3c7c918ec0aa3555372c5a57f18780b7a96c5cfc Patch Changed Reference Type https://git.kernel.org/stable/c/ac888d58869bb99753e7652be19a151df9ecb35d No Types Assigned https://git.kernel.org/stable/c/ac888d58869bb99753e7652be19a151df9ecb35d Patch Changed Reference Type https://git.kernel.org/stable/c/eae7435b48ffc8e9be0ff9cfeae40af479a609dd No Types Assigned https://git.kernel.org/stable/c/eae7435b48ffc8e9be0ff9cfeae40af479a609dd Patch Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.10.50 up to (excluding) 3.11 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.12.26 up to (excluding) 3.13 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.14.14 up to (excluding) 3.15 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.15.7 up to (excluding) 3.16 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16 up to (excluding) 6.6.57 *cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.11.4 *cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: net: do not delay dst_entries_add() in dst_release() dst_entries_add() uses per-cpu data that might be freed at netns dismantle from ip6_route_net_exit() calling dst_entries_destroy() Before ip6_route_net_exit() can be called, we release all the dsts associated with this netns, via calls to dst_release(), which waits an rcu grace period before calling dst_destroy() dst_entries_add() use in dst_destroy() is racy, because dst_entries_destroy() could have been called already. Decrementing the number of dsts must happen sooner. Notes: 1) in CONFIG_XFRM case, dst_destroy() can call dst_release_immediate(child), this might also cause UAF if the child does not have DST_NOCOUNT 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. Added Reference kernel.org https://git.kernel.org/stable/c/eae7435b48ffc8e9be0ff9cfeae40af479a609dd [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3c7c918ec0aa3555372c5a57f18780b7a96c5cfc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ac888d58869bb99753e7652be19a151df9ecb35d [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-50036
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-50036
weaknesses.