CVE-2024-35796 net: ll_temac: platform_get_resource replaced by wrong function

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel's ll_temac network driver can cause a system crash, requiring a kernel patch.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35796?

CVE-2024-35796 is a medium-severity vulnerability in Debian Debian Linux, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

net: ll_temac: platform_get_resource replaced by wrong function

The function platform_get_resource was replaced with devm_platform_ioremap_resource_byname and is called using 0 as name.

This eventually ends up in platform_get_resource_byname in the call stack, where it causes a null pointer in strcmp.

if (type == resource_type(r) && !strcmp(r->name, name))

It should have been replaced with devm_platform_ioremap_resource.

Weakness: CWE-476

Which versions are affected by CVE-2024-35796?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-35796?

Apply the vendor's patch.

Is CVE-2024-35796 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-35796, DEBIAN-CVE-2024-35796, GHSA-mr3m-f78x-6fhf, UBUNTU-CVE-2024-35796.

Is CVE-2024-35796 in your software?

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

Check your SBOMs for free