ptp: Ensure info->enable callback is always set
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d94ba80ebbea17f036cecb104398fbcd788aa742 · < 8441aea46445252df5d2eed6deb6d5246fc24002| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ptp: Ensure info->enable callback is always set
The ioctl and sysfs handlers unconditionally call the ->enable callback. Not all drivers implement that callback, leading to NULL dereferences. Example of affected drivers: ptp_s390.c, ptp_vclock.c and ptp_mock.c.
Instead use a dummy callback if no better was specified by the driver.
From the CVE record · Linux
Linux kernel PTP ioctl and sysfs handlers call an enable callback that some drivers do not implement. If a handler is invoked for one of those drivers, the missing callback can cause a NULL dereference. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with PTP drivers that lack an enable callback, including ptp_s390.c, ptp_vclock.c, and ptp_mock.c, should check their systems; affected versions were not provided.