CVE-2024-50036

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50036
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50036.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50036
Downstream
Related
Published
2024-10-21T20:15:16Z
Modified
2025-08-09T20:01:26Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

net: do not delay dstentriesadd() in dst_release()

dstentriesadd() uses per-cpu data that might be freed at netns dismantle from ip6routenetexit() calling dstentries_destroy()

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 dst_destroy()

dstentriesadd() use in dstdestroy() is racy, because dstentries_destroy() 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 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.

References

Affected packages