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>
Metrics
Affected Vendors & Products
References
History
Thu, 07 Nov 2024 22:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-476 | |
Metrics |
cvssV3_1
|
ssvc
|
MITRE
Status: PUBLISHED
Assigner: Linux
Published: 2024-05-17T14:47:32.763Z
Updated: 2024-11-07T21:12:11.212Z
Reserved: 2024-05-17T13:50:33.106Z
Link: CVE-2024-35857
Vulnrichment
Updated: 2024-08-02T03:21:47.567Z
NVD
Status : Awaiting Analysis
Published: 2024-05-17T15:15:23.090
Modified: 2024-11-21T09:21:03.753
Link: CVE-2024-35857
Redhat