{"id":"CVE-2022-49229","state":"PUBLISHED","title":"ptp: unregister virtual clocks when unregistering physical clock.","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: unregister virtual clocks when unregistering physical clock.\n\nWhen unregistering a physical clock which has some virtual clocks,\nunregister the virtual clocks with it.\n\nThis fixes the following oops, which can be triggered by unloading\na driver providing a PTP clock when it has enabled virtual clocks:\n\nBUG: unable to handle page fault for address: ffffffffc04fc4d8\nOops: 0000 [#1] PREEMPT SMP NOPTI\nRIP: 0010:ptp_vclock_read+0x31/0xb0\nCall Trace:\n timecounter_read+0xf/0x50\n ptp_vclock_refresh+0x2c/0x50\n ? ptp_clock_release+0x40/0x40\n ptp_aux_kworker+0x17/0x30\n kthread_worker_fn+0x9b/0x240\n ? kthread_should_park+0x30/0x30\n kthread+0xe2/0x110\n ? kthread_complete_and_exit+0x20/0x20\n ret_from_fork+0x22/0x30","publishedAt":"2025-02-26T01:55:57.155Z","updatedAt":"2026-05-11T18:55:38.756Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"b2dea2a696d09163da4cd33cb598ce1f73e86597","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"9c796a57cbb5daf124a665689f0b2bc9262e0ced","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"c49eafe6249f844c26f9866886cc6719d81762df","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.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.33","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.19","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.2","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","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"]}],"references":["https://git.kernel.org/stable/c/b2dea2a696d09163da4cd33cb598ce1f73e86597","https://git.kernel.org/stable/c/9c796a57cbb5daf124a665689f0b2bc9262e0ced","https://git.kernel.org/stable/c/c49eafe6249f844c26f9866886cc6719d81762df","https://git.kernel.org/stable/c/bfcbb76b0f595ea9ede9f7a218086fef85242f10"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49229.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49229","state":"PUBLISHED","datePublished":"2025-02-26T01:55:57.155Z","dateUpdated":"2026-05-11T18:55:38.756Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T01:49:39.293Z"},"containers":{"cna":{"title":"ptp: unregister virtual clocks when unregistering physical clock.","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: unregister virtual clocks when unregistering physical clock.\n\nWhen unregistering a physical clock which has some virtual clocks,\nunregister the virtual clocks with it.\n\nThis fixes the following oops, which can be triggered by unloading\na driver providing a PTP clock when it has enabled virtual clocks:\n\nBUG: unable to handle page fault for address: ffffffffc04fc4d8\nOops: 0000 [#1] PREEMPT SMP NOPTI\nRIP: 0010:ptp_vclock_read+0x31/0xb0\nCall Trace:\n timecounter_read+0xf/0x50\n ptp_vclock_refresh+0x2c/0x50\n ? ptp_clock_release+0x40/0x40\n ptp_aux_kworker+0x17/0x30\n kthread_worker_fn+0x9b/0x240\n ? kthread_should_park+0x30/0x30\n kthread+0xe2/0x110\n ? kthread_complete_and_exit+0x20/0x20\n ret_from_fork+0x22/0x30"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"b2dea2a696d09163da4cd33cb598ce1f73e86597","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"9c796a57cbb5daf124a665689f0b2bc9262e0ced","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"c49eafe6249f844c26f9866886cc6719d81762df","versionType":"git"},{"version":"73f37068d540eba5f93ba3a0019bf479d35ebd76","status":"affected","lessThan":"bfcbb76b0f595ea9ede9f7a218086fef85242f10","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_clock.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.33","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.19","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.2","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","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"]}],"references":[{"url":"https://git.kernel.org/stable/c/b2dea2a696d09163da4cd33cb598ce1f73e86597"},{"url":"https://git.kernel.org/stable/c/9c796a57cbb5daf124a665689f0b2bc9262e0ced"},{"url":"https://git.kernel.org/stable/c/c49eafe6249f844c26f9866886cc6719d81762df"},{"url":"https://git.kernel.org/stable/c/bfcbb76b0f595ea9ede9f7a218086fef85242f10"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:55:38.756Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.16.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.17.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}