CVE-2024-38593 net: micrel: Fix receiving the timestamp in the frame for lan8841

Medium 5.5 Published Updated

A null pointer dereference in the Micrel LAN8841 driver causes a kernel crash when a network port is toggled without PTP timestamping enabled.

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-38593?

CVE-2024-38593 is a medium-severity vulnerability in Linux kernel, published on 19 Jun 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: micrel: Fix receiving the timestamp in the frame for lan8841

The blamed commit started to use the ptp workqueue to get the second part of the timestamp. And when the port was set down, then this workqueue is stopped. But if the config option NETWORK_PHY_TIMESTAMPING is not enabled, then the ptp_clock is not initialized so then it would crash when it would try to access the delayed work. So then basically by setting up and then down the port, it would crash. The fix consists in checking if the ptp_clock is initialized and only then cancel the delayed work.

Weakness: CWE-908

Which versions are affected by CVE-2024-38593?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-38593?

Apply the vendor's patch.

Is CVE-2024-38593 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-38593, DEBIAN-CVE-2024-38593, GHSA-hmmc-gg67-83cw, UBUNTU-CVE-2024-38593.

Is CVE-2024-38593 in your software?

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

Check your SBOMs for free