CVE-2025-21822

ptp: vmclock: Set driver data before its usage

published February 27, 2025

CVSS
—
EPSS
0%
Percentile
6.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00176 · 6.7th percentile
Published
2025-02-27T20:06Z
EPSS history
Timeline
  • 27 FEB 20:06Z
    ptp: vmclock: Set driver data before its usage
    cvelistv5