net: fec: only stop PTP if it was initialized
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 32cba57ba74be58589aeb4cb6496183e46a5e3e5 · < 1f9639caeece703012bdb23975ebedf70f426269| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: fec: only stop PTP if it was initialized
fec_ptp_init() is only called when fep->bufdesc_ex is available. However, fec_probe() unconditionally calls fec_ptp_stop() on the failed_init path, and fec_drv_remove() unconditionally calls fec_ptp_stop() during device removal.
Check fep->bufdesc_ex before calling fec_ptp_stop() in both paths to avoid stopping PTP when it was not initialized.
From the CVE record · Linux
The Linux kernel's fec driver can call fec_ptp_stop() during failed initialization or device removal even when PTP was not initialized. The input does not specify an attacker action, access requirement, user interaction, or resulting impact.
Engineers running Linux kernel versions with the affected fec driver should check their systems; affected versions are not specified.