Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143375

ptp: drain virtual clock sysfs operations before unregistering children

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • b2dea2a696d09163da4cd33cb598ce1f73e86597 to < 5d37fcb1d079790731917ad710ec62f09ecb7b12affected
  • bfcbb76b0f595ea9ede9f7a218086fef85242f10 to < db6ce2f5ed107da301237b0d5cb7647ad3d6040faffected
  • bfcbb76b0f595ea9ede9f7a218086fef85242f10 to < 36231d7dfb5204991d72731b49687db2b5968c79affected
  • bfcbb76b0f595ea9ede9f7a218086fef85242f10 to < 33a0670e85b57ea1331ab5fe183b93725c821826affected
  • bfcbb76b0f595ea9ede9f7a218086fef85242f10 to < 0e4a135aebc7686286d87e286499ce55e5bd5aadaffected
  • 9c796a57cbb5daf124a665689f0b2bc9262e0cedaffected
  • c49eafe6249f844c26f9866886cc6719d81762dfaffected
  • 5.15.33 to < 5.15.227affected
  • 5.16.19 to < 5.17affected
  • 5.17.2 to < 5.18affected

Linux Linux

Default version status: affected

  • 5.18affected
  • 0 to < 5.18unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc2 to ≤ *unaffected

References