ptp: drain virtual clock sysfs operations before unregistering children
- CVE-2026-143375
- GHSA-rjgc-363x-78xw
- EUVD-2026-143025
Description
In the Linux kernel, the following vulnerability has been resolved: ptp: drain virtual clock sysfs operations before unregistering children Parent clock removal walks its virtual clocks before removing the n_vclocks sysfs attribute. The mutex taken by ptp_vclock_in_use() is released before that walk, so a concurrent sysfs deletion can pick the same child and unregister and free its ptp_vclock a second time. A reference held by the device iterator does not protect that separately allocated virtual clock. Remove n_vclocks before walking the children. Removing the attribute prevents new stores and drains stores already running, without holding n_vclocks_mux across a callback that needs that mutex. Skip virtual clocks, which do not have this attribute. This race was found by code inspection of virtual-clock registration failure cleanup and parent removal.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version from 5.16.19 to before 5.17update to 5.17 or laterMinor version change: check the release notes
- If you run 5.15.xupdate to 5.15.227 or laterPatch update: breaking changes are unlikely
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 5.16.19 to before 5.17 5.17 from 5.15.33 to before 5.15.227 5.15.227 from 5.17.2 to before 5.18 none stated 5.18 none stated before 5.18: not affected none stated from 5.15.227 up to 5.15.*: not affected none stated from 6.12.120 up to 6.12.*: not affected none stated from 6.18.66 up to 6.18.*: not affected none stated and 2 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.