Security Advisory

CVE-2024-36971: Linux dst_negative_advice Use-After-Free

Last updated:
  • CVE-2024-36971

CVE-2024-36971 is a use-after-free in the Linux kernel networking core: __dst_negative_advice() drops a socket's cached route before clearing the pointer, so another thread can use freed memory. Google flagged it as exploited on Android. NVD scores it 7.8, CISA lists it in KEV, and Android patch level 2024-08-05 and Linux 6.9.4 and later fix it.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

2.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2024-36971 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (net core, __dst_negative_advice)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*4.6 to before 4.19.316, 4.20 to before 5.4.278, 5.5 to before 5.10.219, 5.11 to before 5.15.161, 5.16 to before 6.1.94, 6.2 to before 6.6.34, 6.7 to before 6.9.4 (NVD); fixed in 6.10 by 92f1655aa2b2
Android kernel—Fixed at security patch level 2024-08-05 or later (Android Security Bulletin August 2024, A-343727534)
Debian linux packagepkg:deb/debian/linuxFixed in 4.19.316-1 for buster (DLA-3840-1), 5.10.221-1 for bullseye (DSA-5730-1), 6.1.94-1 for bookworm and 6.9.7-1 in unstable (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

The kernel CNA's description of CVE-2024-36971, "net: fix __dst_negative_advice() race", says the function "does not enforce proper RCU rules when sk->dst_cache must be cleared, leading to possible UAF": the rule is to clear sk->sk_dst_cache first and then call dst_release(), and __dst_negative_advice() used the wrong order. It adds that the old bug "became visible after the blamed commit, using UDP sockets." NVD's Primary score is CVSS v3.1 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), the same as the kernel CNA and CISA ADP scores, and NVD classifies it as CWE-416, use after free (NVD, CVE record).

Where does the fix come from?

Eric Dumazet's commit 92f1655aa2b2, merged in May 2024, makes each ->negative_advice() method reset the cached route itself in the correct order, and credits Clement Lecigne of Google for reporting and diagnosing the issue. The blamed commit, a87cb3e48ee8, dates from Linux 4.6. The Android Security Bulletin for August 2024 lists CVE-2024-36971 in the Kernel table of the 2024-08-05 security patch level as a High-severity remote code execution "with System execution privileges needed", links eleven upstream kernel changes for the Android branches, and notes "There are indications that CVE-2024-36971 may be under limited, targeted exploitation."

Which kernels and devices are affected?

NVD's ranges for linux:linux_kernel start at 4.6 and end before 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34 and 6.9.4; 6.10 and later are fixed. Debian's security tracker lists 4.19.316-1 for buster (DLA-3840-1), 5.10.221-1 for bullseye (DSA-5730-1) and 6.1.94-1 for bookworm. CISA's KEV notes say the flaw is in a common open-source component that "could impact other products, including but not limited to Android OS", and to check with each vendor for patch status. Android devices are fixed at patch level 2024-08-05 or later. For routers, gateways and other embedded Linux devices, compare the firmware's kernel with the fixed stable releases above or check for the backport; Linux kernel CVEs on embedded devices covers that triage, and how to fix memory corruption in embedded firmware covers use-after-free bugs. Other exploited Linux kernel flaws patched through Android bulletins: CVE-2024-53104 in the UVC camera driver and CVE-2021-0920 in af_unix.

Is CVE-2024-36971 exploited?

Yes. CISA added it to the KEV catalog on 2024-08-07 as "Android Kernel Remote Code Execution Vulnerability", with the required action "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable." and a due date of 2024-08-28; known ransomware campaign use is listed as Unknown. It is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.02679, the 86.08th percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-25): status Analyzed, published 2024-06-10, CNA kernel.org; net: fix __dst_negative_advice() race, wrong RCU order, possible UAF, visible with UDP sockets; NVD Primary CVSS v3.1 7.8 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; CISA ADP 7.8; CWE-416; CPE linux_kernel 4.6-<4.19.316, 4.20-<5.4.278, 5.5-<5.10.219, 5.11-<5.15.161, 5.16-<6.1.94, 6.2-<6.6.34, 6.7-<6.9.4. — NVD
  • CVE record: PUBLISHED, CNA Linux, published 2024-06-10; CNA CVSS v3.1 7.8; affected from 4.6, unaffected 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34, 6.9.4 and 6.10; CISA ADP 7.8. — CVE.org
  • Commit 92f1655aa2b2 (Eric Dumazet, 2024-05-28, committed 2024-05-30) "net: fix __dst_negative_advice() race"; Fixes a87cb3e48ee8; Reported-by and Diagnosed-by Clement Lecigne (Google). — Linux kernel (GitHub mirror)
  • Android Security Bulletin August 2024 (published 2024-08-05): CVE-2024-36971, A-343727534, 11 upstream kernel links, RCE, High, Kernel, 2024-08-05 patch level; note: indications of limited, targeted exploitation. — Android Security Bulletin
  • Debian tracker: buster 4.19.316-1 (DLA-3840-1), bullseye 5.10.221-1 (DSA-5730-1), bookworm 6.1.94-1, unstable 6.9.7-1; upstream 92f1655aa2b2 in 6.10-rc2. — Debian security tracker
  • KEV catalog 2026.11.24: dateAdded 2024-08-07, due 2024-08-28, required action "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.", knownRansomwareCampaignUse Unknown, CWE-416; notes: common open-source component, could impact other products including Android OS. — CISA KEV
  • EPSS 0.02679, percentile 0.86081, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Android Security Bulletin, August 2024
  3. Linux commit 92f1655aa2b2: net: fix __dst_negative_advice() race
  4. Debian security tracker CVE-2024-36971
  5. CVE.org record CVE-2024-36971 (CNA: Linux kernel)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

What CVSS score does CVE-2024-36971 have?

NVD's Primary score is CVSS v3.1 7.8 for a local attacker with low privileges; the kernel CNA and CISA ADP give the same 7.8. The Android bulletin rates it High (per NVD, the CVE record and the Android Security Bulletin).

Which Android patch level fixes CVE-2024-36971?

Security patch level 2024-08-05 or later. The August 2024 Android Security Bulletin lists it in the kernel section of that patch level (per the Android Security Bulletin).

Which Linux kernel versions fix CVE-2024-36971?

4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.94, 6.6.34, 6.9.4 and 6.10 or later, which carry commit 92f1655aa2b2 or its backport (per NVD and the CVE record).

Is CVE-2024-36971 exploited in the wild?

Yes. Google said it may be under limited, targeted exploitation, and CISA added it to KEV on 2024-08-07; it is listed as of 2026-11-25 in catalog version 2026.11.24 with ransomware use Unknown. FIRST EPSS gives 0.02679, the 86.08th percentile, in the 2026-11-24 dataset (per the Android bulletin, CISA KEV and FIRST EPSS).