CVE-2022-49229

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49229
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49229.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49229
Downstream
Published
2025-02-26T01:55:57Z
Modified
2025-10-21T10:17:15.034304Z
Summary
ptp: unregister virtual clocks when unregistering physical clock.
Details

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:ptpvclockread+0x31/0xb0 Call Trace: timecounterread+0xf/0x50 ptpvclockrefresh+0x2c/0x50 ? ptpclockrelease+0x40/0x40 ptpauxkworker+0x17/0x30 kthreadworkerfn+0x9b/0x240 ? kthreadshouldpark+0x30/0x30 kthread+0xe2/0x110 ? kthreadcompleteandexit+0x20/0x20 retfromfork+0x22/0x30

References

Affected packages

Git / 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
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
73f37068d540eba5f93ba3a0019bf479d35ebd76
Fixed
9c796a57cbb5daf124a665689f0b2bc9262e0ced
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
73f37068d540eba5f93ba3a0019bf479d35ebd76
Fixed
c49eafe6249f844c26f9866886cc6719d81762df
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
73f37068d540eba5f93ba3a0019bf479d35ebd76
Fixed
bfcbb76b0f595ea9ede9f7a218086fef85242f10

Affected versions

v5.*

v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.16.1
v5.16.10
v5.16.11
v5.16.12
v5.16.13
v5.16.14
v5.16.15
v5.16.16
v5.16.17
v5.16.18
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.17.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.0
Fixed
5.15.33
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.19
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2