Patchfirst
CVE-2024-36971 KEVPublic exploit High · 7.8 EPSS 2.7%

Android Kernel Remote Code Execution Vulnerability

Android · Kernel

Summary

The Android Kernel contains a flaw in the networking code (net) where __dst_negative_advice() clears the socket's destination cache in the wrong RCU order, which can leave a use-after-free condition. An attacker with local access and low privileges, who need not interact with a user, could trigger the use-after-free through the affected socket path to compromise confidentiality, integrity and availability.

Official description · NVD

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.

Breakdown
65.6 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

First seen exploited 56 days after disclosure. Public exploit code (PoC-in-GitHub) appeared 16 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+56 days
  3. Added to CISA KEVEU database agrees+58 days
  4. Public exploit codePoC-in-GitHub+16 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

1 , grouped by in kill-chain order, 1 cited passage 1

Privilege EscalationTA0004

Exploitation for Privilege Escalation T1068 Medium
AI mapping from the description · how it is exploited

Kernel race allows local privilege escalation via UAF

does not enforce proper RCU rules when
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 31 general rules for its techniques

Rules for this CVE

0 that reference CVE-2024-36971 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

10 links, grouped by NVD tag (8 duplicates merged)
↑ ↓ chooseEnter openEsc close