CVE-2024-50036
net: do not delay dst_entries_add() in dst_release()
Reported by linux · Published October 21, 2024
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f88649721268999bdff09777847080a52004f691, f88649721268999bdff09777847080a52004f691, f88649721268999bdff09777847080a52004f691 |
| Linux | Linux | 3.16, 0, 5.10.230 |
| linux | linux_kernel | 3.16, 3.15.7, 3.16 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-livepatch-4.14.355-276.639 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2 | perf | 0 |
| Linux | Linux | 3.15.7, 5.15.172, 6.1.117 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | kernel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.1.119-129.201 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
…and 6 more
Timeline
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 23, 2024 Coalition ESS Score (23 in total, the first dated here)
- Jan 2, 2026 Security Advisory (443 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (376 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-50036
vulnetix vdb fixes CVE-2024-50036
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50036/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart