VDB

CVE-2024-50036

CVE-2024-50036 PUBLISHED CVSS 7.8 HIGH

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

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxf88649721268999bdff09777847080a52004f691, f88649721268999bdff09777847080a52004f691, f88649721268999bdff09777847080a52004f691
LinuxLinux3.16, 0, 5.10.230
linuxlinux_kernel3.16, 3.15.7, 3.16
amazon:2python-perf0
amazon:2kernel-livepatch-4.14.355-276.6390
amazon:2023kernel-libbpf0
amazon:2kernel-devel0
amazon:2023kernel-libbpf-devel0
amazon:2023perf0
amazon:2kernel-headers0
amazon:2023kernel-modules-extra-common0
amazon:2perf0
LinuxLinux3.15.7, 5.15.172, 6.1.117
amazon:2kernel-tools-devel0
amazon:2kernel0
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.1.119-129.2010
amazon:2023kernel-tools-devel0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›