# CVE-2025-21822: ptp: vmclock: Set driver data before its usage

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-02-27T20:06:13.422Z
- Modified: 2026-06-17T08:44:22.850Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 20503272422693d793b84f88bf23fe4e955d3a33 before 6dbd8b91a065d1d8001446a28e72cd140f9acef0; from 20503272422693d793b84f88bf23fe4e955d3a33 before f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce; 6.13 (not affected: before 6.13; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.13 before 6.13.4; 6.14

## References

- <https://git.kernel.org/stable/c/6dbd8b91a065d1d8001446a28e72cd140f9acef0> (patch)
- <https://git.kernel.org/stable/c/f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce> (patch)

## Sources

- CVE List: [CVE-2025-21822](https://www.cve.org/CVERecord?id=CVE-2025-21822), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21822](https://nvd.nist.gov/vuln/detail/CVE-2025-21822), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21822 · Whole record: https://cve.day/CVE-2025-21822.json · Rebuilt by cve.day 2026-11-25T22:58:54.625Z
