NULL pointer dereference in Linux
CVE-2024-35857
- CVSS v3
- 7.5 High
- Public exploits
- None known
- EPSS
- 0.010 · 62.9th percentile
- Published
- 2024-05-17
In the Linux kernel, the following vulnerability has been resolved:
icmp: prevent possible NULL dereferences from icmp_build_probe()
First problem is a double call to __in_dev_get_rcu(), because
the second one could return NULL.
if (__in_dev_get_rcu(dev) && __in_dev_get_rcu(dev)->ifa_list)
Second problem is a read from dev->ip6_ptr with no NULL check:
if (!list_empty(&rcu_dereference(dev->ip6_ptr)->addr_list))
Use the correct RCU API to fix these.
v2: add missing include <net/addrconf.h>
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.010, 62.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions d329ea5bd8845f0b196bf41b18b6173340d6e0e4, 5.13, 0
- Linux Kernel — versions 6.9
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/23b7ee4a8d559bf38eac7ce5bb2f6ebf76f9c401 (Patch)
- git.kernel.org/stable/c/599c9ad5e1d43f5c12d869f5fd406ba5d8c55270 (Patch)
- git.kernel.org/stable/c/d68dc711d84fdcf698e5d45308c3ddeede586350 (Patch)
- git.kernel.org/stable/c/3e2979bf080c40da4f7c93aff8575ab8bc62b767 (Patch)
- git.kernel.org/stable/c/c58e88d49097bd12dfcfef4f075b43f5d5830941 (Patch)