net: phy: mscc: Fix memory leak when using one step timestamping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7d272e63e0979d38a6256108adbe462d621c26c5 · < 846992645b25ec4253167e3f931e4597eb84af56| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: phy: mscc: Fix memory leak when using one step timestamping
Fix memory leak when running one-step timestamping. When running one-step sync timestamping, the HW is configured to insert the TX time into the frame, so there is no reason to keep the skb anymore. As in this case the HW will never generate an interrupt to say that the frame was timestamped, then the frame will never released. Fix this by freeing the frame in case of one-step timestamping.
From the CVE record · Linux
The Linux kernel's mscc PHY driver leaks frame memory when one-step sync timestamping is used. The hardware does not generate a timestamp interrupt in this mode, so the frame is never released. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels that use the mscc PHY driver with one-step sync timestamping should check their systems; affected versions are not specified.