VDB

CVE-2024-36971

CVE-2024-36971 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
bpftoolAmazon Linux6.1.94-99.176.amzn2023
kernel-develAmazon Linux4.14.350-266.564.amzn2
kernel-tools-develAmazon Linux4.14.350-266.564.amzn2
kernel-modules-extraAmazon Linux6.1.94-99.176.amzn2023

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
LinuxLinuxa87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314, a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314
LinuxLinux4.6, 0, 4.19.316
amazon:2023bpftool0
amazon:2kernel-devel0
amazon:2kernel-tools-devel0
amazon:2023kernel-modules-extra0
LinuxLinux*, *, 5.4.278
linuxlinux_kernel0, 4.6, *
amazon:2kernel-tools0
amazon:2023kernel-headers0
LinuxLinux kernel
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023python3-perf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.94-99.1760
amazon:2kernel0
amazon:2kernel-livepatch-4.14.350-266.5640
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra-common0

…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

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