CVE-2024-50036
net: do not delay dst_entries_add() in dst_release()
Check your servers for CVE-2024-50036
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50036 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f88649721268999bdff09777847080a52004f691, before 547087307bc19417b4f2bc85ba9664a3e8db5a6a affected from f88649721268999bdff09777847080a52004f691, before e3915f028b1f1c37e87542e5aadd33728c259d96 affected from f88649721268999bdff09777847080a52004f691, before a60db84f772fc3a906c6c4072f9207579c41166f affected from f88649721268999bdff09777847080a52004f691, before eae7435b48ffc8e9be0ff9cfeae40af479a609dd affected from f88649721268999bdff09777847080a52004f691, before 3c7c918ec0aa3555372c5a57f18780b7a96c5cfc affected from f88649721268999bdff09777847080a52004f691, before ac888d58869bb99753e7652be19a151df9ecb35d affected 86e48c03d774e01ccd71ecba4fc4b5c2bc0b5b41 affected 591b1e1bb40152e22cee757f493046a0ca946bf8 affected df90819dafcd6b97fc665f63a15752a570e227a2 affected 9a4fe697023dbe6c25caa1f8b2153af869a29bd2 affected from 3.10.50, before 3.11 affected from 3.12.26, before 3.13 affected from 3.14.14, before 3.15 affected from 3.15.7, before 3.16
Other versions: unaffected
|
| Linux |
affected 3.16 unaffected before 3.16 unaffected from 5.10.230 up to and including 5.10.* unaffected from 5.15.172 up to and including 5.15.* unaffected from 6.1.117 up to and including 6.1.* unaffected from 6.6.57 up to and including 6.6.* unaffected from 6.11.4 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50036 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50036
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-50036
trivy image --scanners vuln IMAGE | grep CVE-2024-50036
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/547087307bc19417b4f2bc85ba9664a3e8db5a6a git.kernel.org
- https://git.kernel.org/stable/c/e3915f028b1f1c37e87542e5aadd33728c259d96 git.kernel.org
- https://git.kernel.org/stable/c/a60db84f772fc3a906c6c4072f9207579c41166f git.kernel.org
- https://git.kernel.org/stable/c/eae7435b48ffc8e9be0ff9cfeae40af479a609dd git.kernel.org
- https://git.kernel.org/stable/c/3c7c918ec0aa3555372c5a57f18780b7a96c5cfc git.kernel.org
- https://git.kernel.org/stable/c/ac888d58869bb99753e7652be19a151df9ecb35d git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-50036 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse