CVE-2024-36971
net: fix __dst_negative_advice() race
Reported by linux · Published June 10, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-devel | Amazon Linux | 4.14.350-266.564.amzn2 |
| kernel-tools-devel | Amazon Linux | 4.14.350-266.564.amzn2 |
| kernel-modules-extra | Amazon Linux | 6.1.94-99.176.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314 |
| Linux | Linux | 4.6, 0, 4.19.316 |
| amazon:2023 | bpftool | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | *, *, 5.4.278 |
| linux | linux_kernel | 0, 4.6, * |
| amazon:2 | kernel-tools | 0 |
| amazon:2023 | kernel-headers | 0 |
| Linux | Linux kernel | |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.1.94-99.176 | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | kernel-livepatch-4.14.350-266.564 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
…and 8 more
Timeline
- Jun 9, 2024 CVE Published
- Jun 11, 2024 EPSS Score (30 in total, the first dated here)
- Aug 5, 2024 VulnCheck KEV Exploitation (4 in total, the first dated here)
- Aug 5, 2024 PoC Published
- Aug 7, 2024 CISA KEV Added
- Oct 4, 2024 Coalition ESS Score (25 in total, the first dated here)
- Jan 9, 2026 Security Advisory (163 in total, the first dated here)
- Mar 3, 2026 CVE Updated
- Mar 30, 2026 Distribution Patch (153 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-36971
vulnetix vdb fixes CVE-2024-36971
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-36971/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart