net: micrel: Fix receiving the timestamp in the frame for lan8841
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's Micrel LAN8841 driver can crash when a port is brought up and then down while NETWORK_PHY_TIMESTAMPING is disabled. In that configuration, the PTP clock is not initialized, but the driver tries to access delayed work when stopping the port. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with the Micrel LAN8841 driver should check their systems; affected versions are not specified.