CVE-2024-36971
HIGH KEVLinux Kernel 4.6-6.9.3 Use-After-Free in __dst_negative_advice
Title source: llmExploitation Summary
CVE-2024-36971 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added August 7, 2024. EIP tracks 2 public exploits from researchers including M4G1XX, Kronk-imp.
AI-analyzed exploit summary The repository contains a functional PoC for CVE-2024-36971, a Use-After-Free (UAF) vulnerability in the Android kernel network subsystem. The PoC demonstrates the vulnerability by sending a crafted UDP packet, which can lead to kernel memory corruption and instability.
Description
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.
Exploits (2)
The repository contains a functional PoC for CVE-2024-36971, a Use-After-Free (UAF) vulnerability in the Android kernel network subsystem. The PoC demonstrates the vulnerability by sending a crafted UDP packet, which can lead to kernel memory corruption and instability.
This repository provides a detailed technical analysis of CVE-2024-36971, a Use-After-Free (UAF) vulnerability in the Android kernel network subsystem, including a non-exploitable PoC and relevant kernel header snippets for defensive research purposes.
References (10)
Scores
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H