Bug 2348216 (CVE-2022-49229) - CVE-2022-49229 kernel: ptp: unregister virtual clocks when unregistering physical clock.
Summary: CVE-2022-49229 kernel: ptp: unregister virtual clocks when unregistering phys...
Keywords:
Status: NEW
Alias: CVE-2022-49229
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:21 UTC by OSIDB Bzimport
Modified: 2025-02-28 09:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:21:40 UTC
In the Linux kernel, the following vulnerability has been resolved:

ptp: unregister virtual clocks when unregistering physical clock.

When unregistering a physical clock which has some virtual clocks,
unregister the virtual clocks with it.

This fixes the following oops, which can be triggered by unloading
a driver providing a PTP clock when it has enabled virtual clocks:

BUG: unable to handle page fault for address: ffffffffc04fc4d8
Oops: 0000 [#1] PREEMPT SMP NOPTI
RIP: 0010:ptp_vclock_read+0x31/0xb0
Call Trace:
 timecounter_read+0xf/0x50
 ptp_vclock_refresh+0x2c/0x50
 ? ptp_clock_release+0x40/0x40
 ptp_aux_kworker+0x17/0x30
 kthread_worker_fn+0x9b/0x240
 ? kthread_should_park+0x30/0x30
 kthread+0xe2/0x110
 ? kthread_complete_and_exit+0x20/0x20
 ret_from_fork+0x22/0x30

Comment 1 Avinash Hanwate 2025-02-26 12:11:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022622-CVE-2022-49229-2c2e@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 16:38:25 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022622-CVE-2022-49229-2c2e@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.