{"id":"CVE-2026-143374","state":"PUBLISHED","title":"ptp: unwind partially completed virtual clock creation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: unwind partially completed virtual clock creation\n\nn_vclocks_store() publishes the new clock count only after every child\nhas been registered. If a later registration fails, it returns without\nunregistering the children already created by that request. Those clocks\nare left out of n_vclocks, and a subsequent request can overwrite their\nindex entries without removing them.\n\nUnregister the newly created children in reverse order and clear their\nindex entries on failure. Leave the previously installed clocks and\ntheir count unchanged. The n_vclocks mutex serializes this rollback with\nother sysfs changes, and parent removal drains the store before walking\nthe children.\n\nThis was found by code inspection while adding initial PHC sample error\nhandling to virtual clock registration.","publishedAt":"2026-12-03T09:22:23.220Z","updatedAt":"2026-12-03T09:22:23.220Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"f09f86c83d1d2678dd143b42c7119297eaf0eb0f","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"0c465f41ccb158e7afe52df37256488071b997cb","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"adf81653ab2407769c49490c58d9ebec84e4a279","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"1e8b0d578dacb89064394b842894580d6eff470a","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"3dea778260e3dddf30651a6913d87a42861346a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","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_sysfs.c"]}],"references":["https://git.kernel.org/stable/c/f09f86c83d1d2678dd143b42c7119297eaf0eb0f","https://git.kernel.org/stable/c/0c465f41ccb158e7afe52df37256488071b997cb","https://git.kernel.org/stable/c/adf81653ab2407769c49490c58d9ebec84e4a279","https://git.kernel.org/stable/c/1e8b0d578dacb89064394b842894580d6eff470a","https://git.kernel.org/stable/c/3dea778260e3dddf30651a6913d87a42861346a2"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143374.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143374","state":"PUBLISHED","datePublished":"2026-12-03T09:22:23.220Z","dateUpdated":"2026-12-03T09:22:23.220Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.372Z"},"containers":{"cna":{"title":"ptp: unwind partially completed virtual clock creation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: unwind partially completed virtual clock creation\n\nn_vclocks_store() publishes the new clock count only after every child\nhas been registered. If a later registration fails, it returns without\nunregistering the children already created by that request. Those clocks\nare left out of n_vclocks, and a subsequent request can overwrite their\nindex entries without removing them.\n\nUnregister the newly created children in reverse order and clear their\nindex entries on failure. Leave the previously installed clocks and\ntheir count unchanged. The n_vclocks mutex serializes this rollback with\nother sysfs changes, and parent removal drains the store before walking\nthe children.\n\nThis was found by code inspection while adding initial PHC sample error\nhandling to virtual clock registration."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"f09f86c83d1d2678dd143b42c7119297eaf0eb0f","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"0c465f41ccb158e7afe52df37256488071b997cb","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"adf81653ab2407769c49490c58d9ebec84e4a279","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"1e8b0d578dacb89064394b842894580d6eff470a","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"3dea778260e3dddf30651a6913d87a42861346a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","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_sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f09f86c83d1d2678dd143b42c7119297eaf0eb0f"},{"url":"https://git.kernel.org/stable/c/0c465f41ccb158e7afe52df37256488071b997cb"},{"url":"https://git.kernel.org/stable/c/adf81653ab2407769c49490c58d9ebec84e4a279"},{"url":"https://git.kernel.org/stable/c/1e8b0d578dacb89064394b842894580d6eff470a"},{"url":"https://git.kernel.org/stable/c/3dea778260e3dddf30651a6913d87a42861346a2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:23.220Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}