{"id":"CVE-2024-50036","aliases":["CVE-2024-50036"],"related":[],"kind":"vulnerability","state":"published","title":"net: do not delay dst_entries_add() in dst_release()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: do not delay dst_entries_add() in dst_release()\n\ndst_entries_add() uses per-cpu data that might be freed at netns\ndismantle from ip6_route_net_exit() calling dst_entries_destroy()\n\nBefore ip6_route_net_exit() can be called, we release all\nthe dsts associated with this netns, via calls to dst_release(),\nwhich waits an rcu grace period before calling dst_destroy()\n\ndst_entries_add() use in dst_destroy() is racy, because\ndst_entries_destroy() could have been called already.\n\nDecrementing the number of dsts must happen sooner.\n\nNotes:\n\n1) in CONFIG_XFRM case, dst_destroy() can call\n   dst_release_immediate(child), this might also cause UAF\n   if the child does not have DST_NOCOUNT set.\n   IPSEC maintainers might take a look and see how to address this.\n\n2) There is also discussion about removing this count of dst,\n   which might happen in future kernels.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: do not delay dst_entries_add() in dst_release()\n\ndst_entries_add() uses per-cpu data that might be freed at netns\ndismantle from ip6_route_net_exit() calling dst_entries_destroy()\n\nBefore ip6_route_net_exit() can be called, we release all\nthe dsts associated with this netns, via calls to dst_release(),\nwhich waits an rcu grace period before calling dst_destroy()\n\ndst_entries_add() use in dst_destroy() is racy, because\ndst_entries_destroy() could have been called already.\n\nDecrementing the number of dsts must happen sooner.\n\nNotes:\n\n1) in CONFIG_XFRM case, dst_destroy() can call\n   dst_release_immediate(child), this might also cause UAF\n   if the child does not have DST_NOCOUNT set.\n   IPSEC maintainers might take a look and see how to address this.\n\n2) There is also discussion about removing this count of dst,\n   which might happen in future kernels.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: no retrasar dst_entries_add() en dst_release() dst_entries_add() usa datos por CPU que podrían liberarse en el desmantelamiento de netns de ip6_route_net_exit() llamando a dst_entries_destroy() Antes de que se pueda llamar a ip6_route_net_exit(), liberamos todos los dst asociados con este netns, a través de llamadas a dst_release(), que espera un período de gracia de rcu antes de llamar a dst_destroy() El uso de dst_entries_add() en dst_destroy() es arriesgado, porque dst_entries_destroy() ya podría haberse llamado. La disminución del número de dst debe ocurrir antes. Notas: 1) en el caso de CONFIG_XFRM, dst_destroy() puede llamar a dst_release_immediate(child), lo que también podría causar UAF si el hijo no tiene DST_NOCOUNT configurado. Los encargados del mantenimiento de IPSEC podrían echar un vistazo y ver cómo solucionar esto. 2) También se está discutiendo sobre la eliminación de este recuento de dst, lo que podría suceder en kernels futuros.","source":"nvd"}],"published":"2024-10-21T19:39:37.135Z","modified":"2026-08-05T11:41:09.713Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"547087307bc19417b4f2bc85ba9664a3e8db5a6a","status":"affected"},{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"e3915f028b1f1c37e87542e5aadd33728c259d96","status":"affected"},{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"a60db84f772fc3a906c6c4072f9207579c41166f","status":"affected"},{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"eae7435b48ffc8e9be0ff9cfeae40af479a609dd","status":"affected"},{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"3c7c918ec0aa3555372c5a57f18780b7a96c5cfc","status":"affected"},{"type":"git","introduced":"f88649721268999bdff09777847080a52004f691","fixed":"ac888d58869bb99753e7652be19a151df9ecb35d","status":"affected"},{"type":"git","version":"86e48c03d774e01ccd71ecba4fc4b5c2bc0b5b41","status":"affected"},{"type":"git","version":"591b1e1bb40152e22cee757f493046a0ca946bf8","status":"affected"},{"type":"git","version":"df90819dafcd6b97fc665f63a15752a570e227a2","status":"affected"},{"type":"git","version":"9a4fe697023dbe6c25caa1f8b2153af869a29bd2","status":"affected"},{"type":"semver","introduced":"3.10.50","fixed":"3.11","status":"affected"},{"type":"semver","introduced":"3.12.26","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.14.14","fixed":"3.15","status":"affected"},{"type":"semver","introduced":"3.15.7","fixed":"3.16","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"5.10.230","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.172","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.117","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.57","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.4","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.10.50","fixed":"3.11"},{"status":"affected","introduced":"3.12.26","fixed":"3.13"},{"status":"affected","introduced":"3.14.14","fixed":"3.15"},{"status":"affected","introduced":"3.15.7","fixed":"3.16"},{"status":"affected","introduced":"3.16","fixed":"6.6.57"},{"status":"affected","introduced":"6.7","fixed":"6.11.4"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/547087307bc19417b4f2bc85ba9664a3e8db5a6a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3915f028b1f1c37e87542e5aadd33728c259d96","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a60db84f772fc3a906c6c4072f9207579c41166f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eae7435b48ffc8e9be0ff9cfeae40af479a609dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c7c918ec0aa3555372c5a57f18780b7a96c5cfc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac888d58869bb99753e7652be19a151df9ecb35d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:25:25.259Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50036","url":"https://www.cve.org/CVERecord?id=CVE-2024-50036","licence":"CVE Terms of Use","modified":"2026-08-05T11:41:09.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50036","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50036","licence":"Public domain","modified":"2026-08-04T11:21:10.480Z"}],"updatedAt":"2026-11-25T22:58:47.109Z","epss":{"score":0.00249,"percentile":0.17376,"date":"2026-12-01T12:00:22.000Z"}}