Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2024-36971

net: fix __dst_negative_advice() race
Back to all
CVE

CVE-2024-36971

net: fix __dst_negative_advice() race

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.8
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git, 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://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36971.json, https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html, https://nvd.nist.gov/vuln/detail/CVE-2024-36971, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-36971

Severity

7.8

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.8
EPSS Probability
0.00443%
EPSS Percentile
0.6283%
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:4.18.0-553.16.1.el8_10,0:1-1.el8_10,0:4.18.0-553.16.1.rt7.357.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,6.9.7-1,6.1.94-1,5.10.221-1,0:6.8.0-44.44,0:6.8.0-1015.16,0:6.8.0-1014.16,0:6.8.0-1010.13,0:6.8.0-1012.12,0:6.8.0-44.44.1,0:6.8.0-1013.14,0:6.8.0-1011.12,0:6.8.0-1013.14.1,0:6.8.0-2010.10,0:4.15.0-230.242,0:5.4.0-192.212~18.04.1,0:4.15.0-1157.162,0:4.15.0-1174.187,0:5.4.0-1130.140~18.04.1,0:4.15.0-1182.197,0:5.4.0-1135.142~18.04.1,0:4.15.0-1167.184,0:5.4.0-1134.143~18.04.1,0:5.4.0-1077.82~18.04.1,0:4.15.0-1136.147,0:5.4.0-1129.138~18.04.1,0:5.4.0-1114.126~18.04.1,0:5.15.0-121.131,0:5.15.0-1066.71,0:5.15.0-1069.75,0:5.15.0-1072.81,0:5.15.0-1072.81.1,0:5.15.0-1068.76,0:5.15.0-1066.72,0:5.15.0-1052.59,0:5.15.0-1062.65,0:5.15.0-1064.70,0:5.15.0-1064.65,0:5.15.0-1067.73,0:5.15.0-1035.39,0:6.8.0-1013.14~22.04.1,0:6.8.0-45.45~22.04.1,0:6.8.0-44.44.1~22.04.1,0:5.15.0-1063.65,0:6.8.0-1015.16~22.04.1,0:6.8.0-1014.16~22.04.1,0:6.8.0-1012.12~22.04.1,0:5.15.0-1026.26,0:5.15.0-1015.15,0:5.4.0-192.212,0:5.15.0-121.131~20.04.1,0:5.4.0-1118.125,0:5.4.0-1130.140,0:5.15.0-1069.75~20.04.1,0:5.4.0-1135.142,0:5.15.0-1072.81~20.04.1,0:5.4.0-1090.97,0:5.4.0-1134.143,0:5.15.0-1068.76~20.04.1,0:5.4.0-1097.101,0:5.15.0-1052.59~20.04.1,0:5.4.0-1077.82,0:5.15.0-1062.65~20.04.1,0:5.15.0-1064.70~20.04.1,0:5.4.0-1042.43,0:5.4.0-1129.138,0:5.15.0-1067.73~20.04.1,0:5.4.0-1114.126,0:5.4.0-1049.53,0:5.15.0-1027.27~20.04.1,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:5.4.17-2136.334.6.el8,0:5.4.17-2136.334.6.el8uek,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

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading