{"id":"CVE-2026-143375","state":"PUBLISHED","title":"ptp: drain virtual clock sysfs operations before unregistering children","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: drain virtual clock sysfs operations before unregistering children\n\nParent clock removal walks its virtual clocks before removing the\nn_vclocks sysfs attribute. The mutex taken by ptp_vclock_in_use() is\nreleased before that walk, so a concurrent sysfs deletion can pick the\nsame child and unregister and free its ptp_vclock a second time. A\nreference held by the device iterator does not protect that separately\nallocated virtual clock.\n\nRemove n_vclocks before walking the children. Removing the attribute\nprevents new stores and drains stores already running, without holding\nn_vclocks_mux across a callback that needs that mutex. Skip virtual\nclocks, which do not have this attribute.\n\nThis race was found by code inspection of virtual-clock registration\nfailure cleanup and parent removal.","publishedAt":"2026-12-03T09:22:23.847Z","updatedAt":"2026-12-03T09:22:23.847Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2dea2a696d09163da4cd33cb598ce1f73e86597","status":"affected","lessThan":"5d37fcb1d079790731917ad710ec62f09ecb7b12","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"db6ce2f5ed107da301237b0d5cb7647ad3d6040f","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"36231d7dfb5204991d72731b49687db2b5968c79","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"33a0670e85b57ea1331ab5fe183b93725c821826","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"0e4a135aebc7686286d87e286499ce55e5bd5aad","versionType":"git"},{"version":"9c796a57cbb5daf124a665689f0b2bc9262e0ced","status":"affected","versionType":"git"},{"version":"c49eafe6249f844c26f9866886cc6719d81762df","status":"affected","versionType":"git"},{"version":"5.15.33","status":"affected","lessThan":"5.15.227","versionType":"semver"},{"version":"5.16.19","status":"affected","lessThan":"5.17","versionType":"semver"},{"version":"5.17.2","status":"affected","lessThan":"5.18","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.c","drivers/ptp/ptp_private.h","drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.c","drivers/ptp/ptp_private.h","drivers/ptp/ptp_sysfs.c"]}],"references":["https://git.kernel.org/stable/c/5d37fcb1d079790731917ad710ec62f09ecb7b12","https://git.kernel.org/stable/c/db6ce2f5ed107da301237b0d5cb7647ad3d6040f","https://git.kernel.org/stable/c/36231d7dfb5204991d72731b49687db2b5968c79","https://git.kernel.org/stable/c/33a0670e85b57ea1331ab5fe183b93725c821826","https://git.kernel.org/stable/c/0e4a135aebc7686286d87e286499ce55e5bd5aad"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143375.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143375","state":"PUBLISHED","datePublished":"2026-12-03T09:22:23.847Z","dateUpdated":"2026-12-03T09:22:23.847Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.372Z"},"containers":{"cna":{"title":"ptp: drain virtual clock sysfs operations before unregistering children","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: drain virtual clock sysfs operations before unregistering children\n\nParent clock removal walks its virtual clocks before removing the\nn_vclocks sysfs attribute. The mutex taken by ptp_vclock_in_use() is\nreleased before that walk, so a concurrent sysfs deletion can pick the\nsame child and unregister and free its ptp_vclock a second time. A\nreference held by the device iterator does not protect that separately\nallocated virtual clock.\n\nRemove n_vclocks before walking the children. Removing the attribute\nprevents new stores and drains stores already running, without holding\nn_vclocks_mux across a callback that needs that mutex. Skip virtual\nclocks, which do not have this attribute.\n\nThis race was found by code inspection of virtual-clock registration\nfailure cleanup and parent removal."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2dea2a696d09163da4cd33cb598ce1f73e86597","status":"affected","lessThan":"5d37fcb1d079790731917ad710ec62f09ecb7b12","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"db6ce2f5ed107da301237b0d5cb7647ad3d6040f","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"36231d7dfb5204991d72731b49687db2b5968c79","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"33a0670e85b57ea1331ab5fe183b93725c821826","versionType":"git"},{"version":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","status":"affected","lessThan":"0e4a135aebc7686286d87e286499ce55e5bd5aad","versionType":"git"},{"version":"9c796a57cbb5daf124a665689f0b2bc9262e0ced","status":"affected","versionType":"git"},{"version":"c49eafe6249f844c26f9866886cc6719d81762df","status":"affected","versionType":"git"},{"version":"5.15.33","status":"affected","lessThan":"5.15.227","versionType":"semver"},{"version":"5.16.19","status":"affected","lessThan":"5.17","versionType":"semver"},{"version":"5.17.2","status":"affected","lessThan":"5.18","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.c","drivers/ptp/ptp_private.h","drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.c","drivers/ptp/ptp_private.h","drivers/ptp/ptp_sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5d37fcb1d079790731917ad710ec62f09ecb7b12"},{"url":"https://git.kernel.org/stable/c/db6ce2f5ed107da301237b0d5cb7647ad3d6040f"},{"url":"https://git.kernel.org/stable/c/36231d7dfb5204991d72731b49687db2b5968c79"},{"url":"https://git.kernel.org/stable/c/33a0670e85b57ea1331ab5fe183b93725c821826"},{"url":"https://git.kernel.org/stable/c/0e4a135aebc7686286d87e286499ce55e5bd5aad"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:23.847Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.33","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.4-rc2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}