CVE-2024-36971 net: fix __dst_negative_advice() race
- Published
- Updated
- Exploit status
- Exploited in the wild (confirmed)
- CISA SSVC
- Actively exploited · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
net: fix __dst_negative_advice() race
__dst_negative_advice() does not enforce proper RCU rules when
sk->dst_cache must be cleared, leading to possible UAF.
RCU rules are that we must first clear sk->sk_dst_cache,
then call dst_release(old_dst).
Note that sk_dst_reset(sk) is implementing this protocol correctly,
while __dst_negative_advice() uses the wrong order.
Given that ip6_negative_advice() has special logic
against RTF_CACHE, this means each of the three ->negative_advice()
existing methods must perform the sk_dst_reset() themselves.
Note the check against NULL dst is centralized in
__dst_negative_advice(), there is no need to duplicate
it in various callbacks.
Many thanks to Clement Lecigne for tracking this issue.
This old bug became visible after the blamed commit, using UDP sockets.
CISA Known Exploited Vulnerability
- Date added
- 2024-08-07
- Due date (FCEB)
- 2024-08-28
- Ransomware use
- Unknown
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Upgrade path
10 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more | 6.1.94-1 | Fixed |
| debian/linux(Debian 13) | < 6.9.7-1 | 6.9.7-1 | Fixed |
| debian/linux(Debian 14) | < 6.9.7-1 | 6.9.7-1 | Fixed |
| Linux kernel | < 4.19.316; < 5.4.278; < 5.10.219; < 5.15.161 +28 more | 4.19.316, 5.4.278, 5.10.219, 5.15.161, 5af198c38712, 5af198c387128a9d2ddd620b0f0803564a4d4508, 6.1.94, 6.6.34, 6.9.4, 6.10, 051c0bde9f04, 051c0bde9f0450a2ec3d62a86d2a0d2fad117f13, 81dd3c82a456, 81dd3c82a456b0015461754be7cb2693991421b4, 92f1655aa2b2, 92f1655aa2b2294d0b49925f3b875a634bd3b59e, 2295a7ef5c8c, 2295a7ef5c8c49241bff769e7826ef2582e532a6, b8af8e6118a6, b8af8e6118a6605f0e495a58d591ca94a85a50fc, db0082825037, db0082825037794c5dba9959c9de13ca34cc5e72, eacb8b195579, eacb8b195579c174a6d3e12a9690b206eb7f28cf | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-121.131 | 5.15.0-121.131 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-44.44 | 6.8.0-44.44 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1066.71 | 5.15.0-1066.71 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1062.65 | 5.15.0-1062.65 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1011.12 | 6.8.0-1011.12 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.94-1 | 6.1.94-1 |
| 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 |
| 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~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.9.7-1 | 6.9.7-1 |
Show 39 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:14) | < 6.9.7-1 | 6.9.7-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-121.131 | 5.15.0-121.131 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1066.71 | 5.15.0-1066.71 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1062.65 | 5.15.0-1062.65 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < 051c0bde9f0450a2ec3d62a86d2a0d2fad117f13 | 051c0bde9f0450a2ec3d62a86d2a0d2fad117f13 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < db0082825037794c5dba9959c9de13ca34cc5e72 | db0082825037794c5dba9959c9de13ca34cc5e72 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < 2295a7ef5c8c49241bff769e7826ef2582e532a6 | 2295a7ef5c8c49241bff769e7826ef2582e532a6 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < eacb8b195579c174a6d3e12a9690b206eb7f28cf | eacb8b195579c174a6d3e12a9690b206eb7f28cf |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < 81dd3c82a456b0015461754be7cb2693991421b4 | 81dd3c82a456b0015461754be7cb2693991421b4 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < 5af198c387128a9d2ddd620b0f0803564a4d4508 | 5af198c387128a9d2ddd620b0f0803564a4d4508 |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < b8af8e6118a6605f0e495a58d591ca94a85a50fc | b8af8e6118a6605f0e495a58d591ca94a85a50fc |
| Linux kernel | >= a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, < 92f1655aa2b2294d0b49925f3b875a634bd3b59e | 92f1655aa2b2294d0b49925f3b875a634bd3b59e |
| Linux kernel | = 4.6 | No fix listed |
| Linux kernel | < 4.19.316 | 4.19.316 |
| Linux kernel | < 5.4.278 | 5.4.278 |
| Linux kernel | < 5.10.219 | 5.10.219 |
| Linux kernel | < 5.15.161 | 5.15.161 |
| Linux kernel | < 6.1.94 | 6.1.94 |
| Linux kernel | < 6.6.34 | 6.6.34 |
| Linux kernel | < 6.9.4 | 6.9.4 |
| Linux kernel | < 6.10 | 6.10 |
| Linux kernel | >= a87cb3e48ee8, < 051c0bde9f04 | 051c0bde9f04 |
| Linux kernel | >= a87cb3e48ee8, < db0082825037 | db0082825037 |
| Linux kernel | >= a87cb3e48ee8, < 2295a7ef5c8c | 2295a7ef5c8c |
| Linux kernel | >= a87cb3e48ee8, < eacb8b195579 | eacb8b195579 |
| Linux kernel | >= a87cb3e48ee8, < 81dd3c82a456 | 81dd3c82a456 |
| Linux kernel | >= a87cb3e48ee8, < 5af198c38712 | 5af198c38712 |
| Linux kernel | >= a87cb3e48ee8, < b8af8e6118a6 | b8af8e6118a6 |
| Linux kernel | >= a87cb3e48ee8, < 92f1655aa2b2 | 92f1655aa2b2 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-44.44 | 6.8.0-44.44 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1011.12 | 6.8.0-1011.12 |
| debian linux | = 10.0 | No fix listed |
| Linux kernel | >= 4.6, < 4.19.316 | 4.19.316 |
| Linux kernel | >= 4.20, < 5.4.278 | 5.4.278 |
| Linux kernel | >= 5.5, < 5.10.219 | 5.10.219 |
| Linux kernel | >= 5.11, < 5.15.161 | 5.15.161 |
| Linux kernel | >= 5.16, < 6.1.94 | 6.1.94 |
| Linux kernel | >= 6.2, < 6.6.34 | 6.6.34 |
| Linux kernel | >= 6.7, < 6.9.4 | 6.9.4 |
References
- Debian Security Tracker CVE-2024-36971 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6951-1 vendor-advisory
- USN-6953-1 vendor-advisory
- USN-6951-2 vendor-advisory
- USN-6951-3 vendor-advisory
- USN-6951-4 vendor-advisory
- USN-6979-1 vendor-advisory
- USN-6999-1 vendor-advisory
- USN-7004-1 vendor-advisory
- USN-7005-1 vendor-advisory
- USN-7007-1 vendor-advisory
- USN-7008-1 vendor-advisory
- USN-7005-2 vendor-advisory
- USN-7009-1 vendor-advisory
- USN-7019-1 vendor-advisory
- USN-7007-2 vendor-advisory
- USN-6999-2 vendor-advisory
- USN-7007-3 vendor-advisory
- USN-7029-1 vendor-advisory
- USN-7009-2 vendor-advisory
- USN-7069-1 vendor-advisory
- USN-7069-2 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list
- www.cisa.gov government-resource us-government-resource
- ENISA EUVD EUVD-2024-36321 third-party-advisory