What’s Vulnerable › Vulnerabilities
CVE-2025-21822: ptp: vmclock: Set driver data before its usage
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-27 · updated 2026-06-17
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.
Affected products
- Linux kernel: from 6.13 before 6.13.4; 6.14-rc1, 6.14-rc2 — fixed in 6.13.4
How to fix
Upgrade to a fixed version: Linux kernel 6.13.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/6dbd8b91a065d1d8001446a28e72cd140f9acef0
- https://git.kernel.org/stable/c/f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce
Get alerted when CVE-2025-21822 or the next vulnerability affects your stack