net: ravb: avoid dereferencing an invalid PTP clock
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a0d2f20650e81407d8e51ad2cbdc492861c74e9c · < 1f77af0aaf277413ff32f6ff8c2c4282bd64c897| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ravb: avoid dereferencing an invalid PTP clock
The PTP clock is unavailable before the first open, so querying its index can dereference a NULL pointer. Registration failures can also leave an error pointer in priv->ptp.clock.
Cache the PHC index separately and report -1 while no clock is registered. Normalize registration errors to NULL and preserve the static timestamping capabilities.
From the CVE record · Linux
The Linux kernel's ravb driver can dereference an invalid PTP clock pointer when its index is queried before the first open or after clock registration fails. This can cause a kernel crash. The input does not specify how an attacker could trigger the query or whether authentication or user interaction is required.
Engineers running Linux kernels with the ravb driver should check their versions; affected versions are not specified.