CVE-2024-46856 net: phy: dp83822: Fix NULL pointer dereference on DP83825 devices

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel's DP83825 PHY 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-46856?

CVE-2024-46856 is a medium-severity vulnerability in Linux kernel, published on 27 Sep 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: phy: dp83822: Fix NULL pointer dereference on DP83825 devices

The probe() function is only used for DP83822 and DP83826 PHY, leaving the private data pointer uninitialized for the DP83825 models which causes a NULL pointer dereference in the recently introduced/changed functions dp8382x_config_init() and dp83822_set_wol().

Add the dp8382x_probe() function, so all PHY models will have a valid private data pointer to fix this issue and also prevent similar issues in the future.

Weakness: CWE-476

Which versions are affected by CVE-2024-46856?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46856?

Apply the vendor's patch.

Is CVE-2024-46856 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46856, DEBIAN-CVE-2024-46856, GHSA-cv8x-m68j-4834, UBUNTU-CVE-2024-46856.

Is CVE-2024-46856 in your software?

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

Check your SBOMs for free