Bug 2348907 (CVE-2025-21822) - CVE-2025-21822 kernel: ptp: vmclock: Set driver data before its usage
Summary: CVE-2025-21822 kernel: ptp: vmclock: Set driver data before its usage
Keywords:
Status: NEW
Alias: CVE-2025-21822
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 21:02 UTC by OSIDB Bzimport
Modified: 2025-02-28 05:05 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 21:02:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

ptp: vmclock: Set driver data before its usage

If vmclock_ptp_register() fails during probing, vmclock_remove() is
called to clean up the ptp clock and misc device.
It uses dev_get_drvdata() to access the vmclock state.
However the driver data is not yet set at this point.

Assign the driver data earlier.

Comment 1 Avinash Hanwate 2025-02-28 04:57:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022707-CVE-2025-21822-88c0@gregkh/T


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