CVE
CVE-2024-36971
net: fix __dst_negative_advice() race
Severity
High
Base CVSS
7.8
Fixed in
92f1655aa2b2294d0b49925f3b875a634bd3b59e,4.19.316,5.4.278,5.10.219,5.15.161,6.1.94,6.6.34,6.9.4,0:1-1.el8_10,0:4.18.0-553.16.1.rt7.357.el8_10,0:4.18.0-553.16.1.el8_10,0:1-2.el9_4,0:5.14.0-427.31.1.el9_4,0:7.3.0-427.31.1.el9_4,5.10.221-1,6.9.7-1,6.1.94-1,4.15.0-230.242,4.15.0-1174.187,5.4.0-1130.140~18.04.1,4.15.0-1182.197,5.4.0-1135.142~18.04.1,4.15.0-1167.184,5.4.0-1134.143~18.04.1,5.4.0-192.212~18.04.1,5.4.0-1077.82~18.04.1,4.15.0-1157.162,4.15.0-1136.147,5.4.0-1129.138~18.04.1,5.4.0-1114.126~18.04.1,5.4.0-192.212,5.4.0-1130.140,5.15.0-1069.75~20.04.1,5.4.0-1135.142,5.15.0-1072.81~20.04.1,5.4.0-1090.97,5.4.0-1134.143,5.15.0-1068.76~20.04.1,5.4.0-1097.101,5.15.0-1052.59~20.04.1,5.15.0-121.131~20.04.1,5.4.0-1077.82,5.15.0-1062.65~20.04.1,5.15.0-1064.70~20.04.1,5.4.0-1042.43,5.4.0-1118.125,5.15.0-1027.27~20.04.1,5.4.0-1129.138,5.15.0-1067.73~20.04.1,5.4.0-1114.126,5.15.0-1065.69~20.04.1,5.4.0-1049.53,6.8.0-44.44,6.8.0-1015.16,6.8.0-1014.16,6.8.0-1010.13,6.8.0-1012.12,6.8.0-44.44.1,6.8.0-1013.14,6.8.0-1013.14.1,6.8.0-1011.12,5.15.0-121.131,5.15.0-1069.75,6.8.0-1015.16~22.04.1,5.15.0-1072.81,6.8.0-1014.16~22.04.1,5.15.0-1072.81.1,5.15.0-1068.76,5.15.0-1066.72,5.15.0-1052.59,6.8.0-45.45~22.04.1,5.15.0-1062.65,6.8.0-1012.12~22.04.1,5.15.0-1064.70,5.15.0-1066.71,6.8.0-44.44.1~22.04.1,5.15.0-1064.65,6.8.0-1013.14~22.04.1,5.15.0-1026.26,5.15.0-1015.15,5.15.0-1067.73,5.15.0-1035.39,0:5.4.17-2136.334.6.el8,0:5.4.17-2136.334.6.el8uek,0:4.14.35-2047.543.3.el7uek,0:5.4.17-2136.334.6.el7,0:5.4.17-2136.334.6.el7uek,0:3.10.0-1160.119.1.0.3.el7,0:4.14.350-266.564.amzn2,0:1.0-0.amzn2,0:5.4.278-191.377.amzn2,0:5.10.219-208.866.amzn2,0:5.15.161-106.159.amzn2,0:6.1.94-99.176.amzn2023,0:1.0-0.amzn2023
Description
In the Linux kernel, the following vulnerability has been resolved:
net: fix _dstnegative_advice() race
_dstnegative_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->skdstcache,
then call dstrelease(olddst).
Note that skdstreset(sk) is implementing this protocol correctly,
while _dstnegative_advice() uses the wrong order.
Given that ip6negativeadvice() has special logic
against RTFCACHE, this means each of the three ->negativeadvice()
existing methods must perform the skdstreset() themselves.
Note the check against NULL dst is centralized in
_dstnegative_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.
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
High
7.8
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV
0
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Endor Labs
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign use
Unknown
References
https://git.kernel.org/stable/c/051c0bde9f0450a2ec3d62a86d2a0d2fad117f13, https://git.kernel.org/stable/c/2295a7ef5c8c49241bff769e7826ef2582e532a6, https://git.kernel.org/stable/c/5af198c387128a9d2ddd620b0f0803564a4d4508, https://git.kernel.org/stable/c/81dd3c82a456b0015461754be7cb2693991421b4, https://git.kernel.org/stable/c/92f1655aa2b2294d0b49925f3b875a634bd3b59e, https://git.kernel.org/stable/c/b8af8e6118a6605f0e495a58d591ca94a85a50fc, https://git.kernel.org/stable/c/db0082825037794c5dba9959c9de13ca34cc5e72, https://git.kernel.org/stable/c/eacb8b195579c174a6d3e12a9690b206eb7f28cf, https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36971, https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36971.json, https://nvd.nist.gov/vuln/detail/CVE-2024-36971, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Basic information
Base CVSS
7.8
EPSS probability
0.0
EPSS percentile
0.8622
Introduced version
a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314,4.6.0,4.20.0,5.5.0,5.11.0,5.16.0,6.2.0,6.7.0,0
Fix available
92f1655aa2b2294d0b49925f3b875a634bd3b59e,4.19.316,5.4.278,5.10.219,5.15.161,6.1.94,6.6.34,6.9.4,0:1-1.el8_10,0:4.18.0-553.16.1.rt7.357.el8_10,0:4.18.0-553.16.1.el8_10,0:1-2.el9_4,0:5.14.0-427.31.1.el9_4,0:7.3.0-427.31.1.el9_4,5.10.221-1,6.9.7-1,6.1.94-1,4.15.0-230.242,4.15.0-1174.187,5.4.0-1130.140~18.04.1,4.15.0-1182.197,5.4.0-1135.142~18.04.1,4.15.0-1167.184,5.4.0-1134.143~18.04.1,5.4.0-192.212~18.04.1,5.4.0-1077.82~18.04.1,4.15.0-1157.162,4.15.0-1136.147,5.4.0-1129.138~18.04.1,5.4.0-1114.126~18.04.1,5.4.0-192.212,5.4.0-1130.140,5.15.0-1069.75~20.04.1,5.4.0-1135.142,5.15.0-1072.81~20.04.1,5.4.0-1090.97,5.4.0-1134.143,5.15.0-1068.76~20.04.1,5.4.0-1097.101,5.15.0-1052.59~20.04.1,5.15.0-121.131~20.04.1,5.4.0-1077.82,5.15.0-1062.65~20.04.1,5.15.0-1064.70~20.04.1,5.4.0-1042.43,5.4.0-1118.125,5.15.0-1027.27~20.04.1,5.4.0-1129.138,5.15.0-1067.73~20.04.1,5.4.0-1114.126,5.15.0-1065.69~20.04.1,5.4.0-1049.53,6.8.0-44.44,6.8.0-1015.16,6.8.0-1014.16,6.8.0-1010.13,6.8.0-1012.12,6.8.0-44.44.1,6.8.0-1013.14,6.8.0-1013.14.1,6.8.0-1011.12,5.15.0-121.131,5.15.0-1069.75,6.8.0-1015.16~22.04.1,5.15.0-1072.81,6.8.0-1014.16~22.04.1,5.15.0-1072.81.1,5.15.0-1068.76,5.15.0-1066.72,5.15.0-1052.59,6.8.0-45.45~22.04.1,5.15.0-1062.65,6.8.0-1012.12~22.04.1,5.15.0-1064.70,5.15.0-1066.71,6.8.0-44.44.1~22.04.1,5.15.0-1064.65,6.8.0-1013.14~22.04.1,5.15.0-1026.26,5.15.0-1015.15,5.15.0-1067.73,5.15.0-1035.39,0:5.4.17-2136.334.6.el8,0:5.4.17-2136.334.6.el8uek,0:4.14.35-2047.543.3.el7uek,0:5.4.17-2136.334.6.el7,0:5.4.17-2136.334.6.el7uek,0:3.10.0-1160.119.1.0.3.el7,0:4.14.350-266.564.amzn2,0:1.0-0.amzn2,0:5.4.278-191.377.amzn2,0:5.10.219-208.866.amzn2,0:5.15.161-106.159.amzn2,0:6.1.94-99.176.amzn2023,0:1.0-0.amzn2023
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.