CVE-2024-50036 net: do not delay dst_entries_add() in dst_release()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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:
-
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. -
There is also discussion about removing this count of dst,
which might happen in future kernels.
Upgrade path
10 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.119-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +28 more | 6.1.119-1 | Fixed |
| debian/linux(Debian 13) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| debian/linux(Debian 14) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| Linux kernel | < 5.10.230; < 5.15.172; < 6.1.117; < 6.6.57 +21 more | 3.11, 3.13, 3.15, 3.16, 3c7c918ec0aa3555372c5a57f18780b7a96c5cfc, 5.10.230, 5.15.172, 6.1.117, 6.6.57, 6.11.4, 6.12, 547087307bc19417b4f2bc85ba9664a3e8db5a6a, a60db84f772fc3a906c6c4072f9207579c41166f, ac888d58869bb99753e7652be19a151df9ecb35d, e3915f028b1f1c37e87542e5aadd33728c259d96, eae7435b48ffc8e9be0ff9cfeae40af479a609dd | Fixed |
| Microsoft azure linux | < 6.6.57.1-1 | 6.6.57.1-1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-133.144 | 5.15.0-133.144 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-56.58 | 6.8.0-56.58 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1076.81 | 5.15.0-1076.81 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1072.75 | 5.15.0-1072.75 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1028.32 | 6.8.0-1028.32 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.57.1-1 | 6.6.57.1-1 |
| debian/linux(Debian:12) | < 6.1.119-1 | 6.1.119-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
Show 40 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.11.4-1 | 6.11.4-1 |
| debian/linux(Debian:14) | < 6.11.4-1 | 6.11.4-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-133.144 | 5.15.0-133.144 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1076.81 | 5.15.0-1076.81 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1072.75 | 5.15.0-1072.75 |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < 547087307bc19417b4f2bc85ba9664a3e8db5a6a | 547087307bc19417b4f2bc85ba9664a3e8db5a6a |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < e3915f028b1f1c37e87542e5aadd33728c259d96 | e3915f028b1f1c37e87542e5aadd33728c259d96 |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < a60db84f772fc3a906c6c4072f9207579c41166f | a60db84f772fc3a906c6c4072f9207579c41166f |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < eae7435b48ffc8e9be0ff9cfeae40af479a609dd | eae7435b48ffc8e9be0ff9cfeae40af479a609dd |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < 3c7c918ec0aa3555372c5a57f18780b7a96c5cfc | 3c7c918ec0aa3555372c5a57f18780b7a96c5cfc |
| Linux kernel | >= f88649721268999bdff09777847080a52004f691, < ac888d58869bb99753e7652be19a151df9ecb35d | ac888d58869bb99753e7652be19a151df9ecb35d |
| Linux kernel | = 86e48c03d774e01ccd71ecba4fc4b5c2bc0b5b41 | No fix listed |
| Linux kernel | = 591b1e1bb40152e22cee757f493046a0ca946bf8 | No fix listed |
| Linux kernel | = df90819dafcd6b97fc665f63a15752a570e227a2 | No fix listed |
| Linux kernel | = 9a4fe697023dbe6c25caa1f8b2153af869a29bd2 | No fix listed |
| Linux kernel | >= 3.10.50, < 3.11 | 3.11 |
| Linux kernel | >= 3.12.26, < 3.13 | 3.13 |
| Linux kernel | >= 3.14.14, < 3.15 | 3.15 |
| Linux kernel | >= 3.15.7, < 3.16 | 3.16 |
| Linux kernel | = 3.16 | No fix listed |
| Linux kernel | < 5.10.230 | 5.10.230 |
| Linux kernel | < 5.15.172 | 5.15.172 |
| Linux kernel | < 6.1.117 | 6.1.117 |
| Linux kernel | < 6.6.57 | 6.6.57 |
| Linux kernel | < 6.11.4 | 6.11.4 |
| Linux kernel | < 6.12 | 6.12 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-56.58 | 6.8.0-56.58 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1028.32 | 6.8.0-1028.32 |
| Linux kernel | >= 3.16, < 6.6.57 | 6.6.57 |
| Linux kernel | >= 6.7, < 6.11.4 | 6.11.4 |
| Linux kernel | = 6.12-rc1 | No fix listed |
| Linux kernel | = 6.12-rc2 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-50036 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7288-1 vendor-advisory
- USN-7289-1 vendor-advisory
- USN-7291-1 vendor-advisory
- USN-7288-2 vendor-advisory
- USN-7289-2 vendor-advisory
- USN-7289-3 vendor-advisory
- USN-7305-1 vendor-advisory
- USN-7289-4 vendor-advisory
- USN-7308-1 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7331-1 vendor-advisory
- USN-7383-1 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7383-2 vendor-advisory
- USN-7388-1 vendor-advisory
- USN-7389-1 vendor-advisory
- USN-7390-1 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7451-1 vendor-advisory
- USN-7458-1 vendor-advisory
- USN-7468-1 vendor-advisory
- USN-7523-1 vendor-advisory
- USN-7524-1 vendor-advisory
- www.cve.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org
- ENISA EUVD EUVD-2024-45035 third-party-advisory