ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations
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.12.286.14.66.15In the Linux kernel, the following vulnerability has been resolved:
ptp: ocp: Fix NULL dereference in Adva board SMA sysfs operations
On Adva boards, SMA sysfs store/get operations can call __handle_signal_outputs() or __handle_signal_inputs() while the `irig` and `dcf` pointers are uninitialized, leading to a NULL pointer dereference in __handle_signal() and causing a kernel crash. Adva boards don't use `irig` or `dcf` functionality, so add Adva-specific callbacks `ptp_ocp_sma_adva_set_outputs()` and `ptp_ocp_sma_adva_set_inputs()` that avoid invoking `irig` or `dcf` input/output routines.
From the CVE record · Linux
On Adva boards, SMA sysfs store/get operations can dereference uninitialized `irig` or `dcf` pointers in the Linux kernel's ptp ocp driver. Performing these operations can crash the kernel; the input does not specify authentication requirements.
Operators running the Linux kernel on Adva boards should check their affected versions; no version range is provided.