Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 28 Aug 2024.
Debian LinuxOperating system · Debian

CVE-2024-36971

HIGH · 7.8 CVSS v3.1 Published 2024-06-10
Fix available
A fix is available. Upgrade to 4.19.316 / 5.4.278 or later.
See remediation →
96/100
Remediation priority · Urgent
In the wild Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A race condition in the Linux kernel's __dst_negative_advice() function allows Use-After-Free (UAF) by not following proper RCU rules. The code clears the dst_cache and releases the old dst in the wrong order, which became exploitable after a specific commit when using UDP sockets.

MitigationApply the kernel patch that enforces correct RCU ordering (clear sk->sk_dst_cache before calling dst_release), or update to a kernel version containing the fix.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Debian LinuxOperating system
Affected:= 10.0
Linux KernelOperating system
Affected:>= 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

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check running kernel version
    Run `uname -r` or `cat /proc/version` to obtain the exact kernel version string
    Affected if The version falls within any of these ranges: >= 4.6 to < 4.19.316, >= 4.20 to < 5.4.278, >= 5.5 to < 5.10.219, >= 5.11 to < 5.15.161, >= 5.16 to < 6.1.94, >= 6.2 to < 6.6.34, or >= 6.7 to < 6.9.4
  2. Verify the negative_advice callback implementation
    Check if the kernel source file containing __dst_negative_advice() or the respective ->negative_advice() callbacks (such as in ipv4/route.c or similar) calls sk_dst_reset() instead of directly manipulating sk->dst_cache followed by dst_release
    Affected if The source code still uses the old pattern in __dst_negative_advice() where dst_release() is called before clearing sk->dst_cache, rather than each callback calling sk_dst_reset() itself
  3. Confirm network usage triggers the code path
    Monitor for network operations that invoke __dst_negative_advice(), such as routing lookups with negative caching or failed connection attempts that trigger the negative_advice callback
    Affected if The system performs network operations that exercise the dst_cache negative advice code path on a kernel version within the affected ranges

You are affected if your running kernel version falls within any of the listed vulnerable version ranges and the patch has not been applied to fix the RCU ordering in __dst_negative_advice().

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.19.316 / 5.4.278 / 5.10.219 or later
Fixed in 4.19.3165.4.2785.10.219
Vendor patch git.kernel.org →
Interim mitigation

Apply the kernel patch that enforces correct RCU ordering (clear sk->sk_dst_cache before calling dst_release), or update to a kernel version containing the fix.

Recommended fix High confidence

Upgrade to kernel 4.19.316+, 5.4.278+, 5.10.219+, or 5.15.161+ (Debian 10.0 users should upgrade to a newer Debian release with supported kernel)

  1. 1. Identify the currently running kernel version using 'uname -r'
  2. 2. Check which kernel version family your current kernel belongs to (4.19.x, 5.4.x, 5.10.x, or 5.15.x)
  3. 3. Upgrade the Linux kernel to a fixed version: for 4.19.x line upgrade to 4.19.316 or later; for 5.4.x line upgrade to 5.4.278 or later; for 5.10.x line upgrade to 5.10.219 or later; for 5.15.x line upgrade to 5.15.161 or later
  4. 4. On Debian 10.0, update the kernel package via 'apt-get update && apt-get install linux-image-<version>' or by running 'apt-get dist-upgrade'
  5. 5. Reboot the system to load the patched kernel
Caveat Kernel upgrades may require matching kernel modules; ensure third-party drivers are compatible with the new kernel version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Debian Linux Exploited in the wild — priority engagement
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA2.0 h
20.0 hours of engineering $3,500
Get it fixed fast

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-36971 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-36971 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data