Linux
net: ravb: avoid dereferencing an invalid PTP clock
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < 29ffd972531f8e6e0edf4ea3496190acff9fc9c2
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < bf3308416a2be85dcc9965b614a745b40beeff14
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < fc710f89a644e030a7ca15343176ca862fd61b9d
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < 8d4d06d6e2b501cb8e30ed3b1924c470358e8052
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < 0aaa53936419cf0c19c670387fc6d431e042a1b6
- >= a0d2f20650e81407d8e51ad2cbdc492861c74e9c, < 1f77af0aaf277413ff32f6ff8c2c4282bd64c897
Fixed in 29ffd972531f8e6e0edf4ea3496190acff9fc9c2, bf3308416a2be85dcc9965b614a745b40beeff14, fc710f89a644e030a7ca15343176ca862fd61b9d, 8d4d06d6e2b501cb8e30ed3b1924c470358e8052, 0aaa53936419cf0c19c670387fc6d431e042a1b6, 1f77af0aaf277413ff32f6ff8c2c4282bd64c897
- 4.2
Fixed in 0, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 29ffd972531f8e6e0edf4ea3496190acff9fc9c2 or bf3308416a2be85dcc9965b614a745b40beeff14 or fc710f89a644e030a7ca15343176ca862fd61b9d or 8d4d06d6e2b501cb8e30ed3b1924c470358e8052 or 0aaa53936419cf0c19c670387fc6d431e042a1b6 or 1f77af0aaf277413ff32f6ff8c2c4282bd64c897 or later.
Upgrade Linux to 0 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.