net: fec: don't save PTP state if PTP is unsupported
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 |
≥ 6.6.55 · < 6.6.57≥ 6.11.3 · < 6.11.4| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
net: fec: don't save PTP state if PTP is unsupported
Some platforms (such as i.MX25 and i.MX27) do not support PTP, so on these platforms fec_ptp_init() is not called and the related members in fep are not initialized. However, fec_ptp_save_state() is called unconditionally, which causes the kernel to panic. Therefore, add a condition so that fec_ptp_save_state() is not called if PTP is not supported.
From the CVE record · Linux
The Linux kernel's FEC driver can try to save uninitialized PTP state on platforms that do not support PTP, such as i.MX25 and i.MX27, causing a kernel panic. The input does not specify how an attacker could trigger this, or whether authentication or user interaction is required.
Engineers running Linux on platforms without PTP support should check their kernels; affected versions are not specified.