CVE-2024-35857 icmp: prevent possible NULL dereferences from icmp_build_probe()

High 7.5 Published Updated

A NULL pointer dereference in the Linux kernel's ICMP probe function can cause a system crash, requiring a kernel patch.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35857?

CVE-2024-35857 is a high-severity vulnerability in Linux kernel, published on 17 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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>

Weakness: CWE-476

Which versions are affected by CVE-2024-35857?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35857?

Apply the vendor's patch.

Is CVE-2024-35857 being exploited?

There is no known exploitation of CVE-2024-35857 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-42117, BELL-CVE-2024-35857, DEBIAN-CVE-2024-35857, GHSA-fpgv-fc8m-fmmm, UBUNTU-CVE-2024-35857.

Is CVE-2024-35857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free