{"id":"CVE-2022-49229","summary":"ptp: unregister virtual clocks when unregistering physical clock.","details":"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","modified":"2026-04-02T08:27:25.128353Z","published":"2025-02-26T01:55:57.155Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49229.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/9c796a57cbb5daf124a665689f0b2bc9262e0ced"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2dea2a696d09163da4cd33cb598ce1f73e86597"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfcbb76b0f595ea9ede9f7a218086fef85242f10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c49eafe6249f844c26f9866886cc6719d81762df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49229.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49229"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76"},{"fixed":"b2dea2a696d09163da4cd33cb598ce1f73e86597"},{"fixed":"9c796a57cbb5daf124a665689f0b2bc9262e0ced"},{"fixed":"c49eafe6249f844c26f9866886cc6719d81762df"},{"fixed":"bfcbb76b0f595ea9ede9f7a218086fef85242f10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49229.json"}}],"schema_version":"1.7.5"}