CVE-2024-36971

Updated: 2024-07-15 21:31:38.73677

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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x HIGH 7.8

Status

OS name Project name Version Score Severity Status Errata Last updated
AlmaLinux 9.2 ESU kernel 5.14.0 7.8 HIGH In Testing 2024-06-27 08:28:35
AlmaLinux 9.2 FIPS kernel 5.14.0 7.8 HIGH In Testing 2024-06-27 08:28:35
CentOS 8.4 ELS kernel 4.18.0 7.8 HIGH In Progress 2024-07-10 05:17:02
CentOS 8.5 ELS kernel 4.18.0 7.8 HIGH Needs Triage 2024-06-13 05:26:42
CentOS Stream 8 ELS kernel 4.18.0 7.8 HIGH Needs Triage 2024-06-13 05:26:45
Ubuntu 16.04 ELS linux-hwe 4.15.0 7.8 HIGH Released CLSA-2024:1718951563 2024-06-21 02:55:40
Ubuntu 18.04 ELS linux 4.15.0 7.8 HIGH Released CLSA-2024:1718950178 2024-06-21 02:55:39