CVE-2024-35857CWE-476

CVE-2024-35857

High · published May 17, 2024

CVSS v3.1
7.5
EPSS
1%
Percentile
62.0
In the wild
Unconfirmed
What it is

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>

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00983 · 62.0th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2024-05-17T19:15Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel≥ 5.13, < 5.15.1585.15.158
linux/linux_kernel≥ 5.16, < 6.1.906.1.90
linux/linux_kernel≥ 6.2, < 6.6.306.6.30
linux/linux_kernel≥ 6.7, < 6.8.96.8.9
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (10)
EPSS history
Timeline
  • 17 MAY 14:47Z
    icmp: prevent possible NULL dereferences from icmp_build_probe()
    cvelistv5