CVE-2024-35857

Source
https://cve.org/CVERecord?id=CVE-2024-35857
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35857.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35857
Downstream
Related
Published
2024-05-17T14:47:32.763Z
Modified
2026-05-28T03:54:42.172115587Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
icmp: prevent possible NULL dereferences from icmp_build_probe()
Details

In the Linux kernel, the following vulnerability has been resolved:

icmp: prevent possible NULL dereferences from icmpbuildprobe()

First problem is a double call to _indevgetrcu(), because the second one could return NULL.

if (__indevget_rcu(dev) && __indevgetrcu(dev)->ifalist)

Second problem is a read from dev->ip6_ptr with no NULL check:

if (!listempty(&rcudereference(dev->ip6ptr)->addrlist))

Use the correct RCU API to fix these.

v2: add missing include <net/addrconf.h>

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35857.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d329ea5bd8845f0b196bf41b18b6173340d6e0e4
Fixed
23b7ee4a8d559bf38eac7ce5bb2f6ebf76f9c401
Fixed
599c9ad5e1d43f5c12d869f5fd406ba5d8c55270
Fixed
d68dc711d84fdcf698e5d45308c3ddeede586350
Fixed
3e2979bf080c40da4f7c93aff8575ab8bc62b767
Fixed
c58e88d49097bd12dfcfef4f075b43f5d5830941

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35857.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.13.0
Fixed
5.15.158
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.90
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.30
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35857.json"