← CVE Intelligence

CVE-2025-21822

ptp: vmclock: Set driver data before its usage PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 20503272422693d793b84f88bf23fe4e955d3a33 before 6dbd8b91a065d1d8001446a28e72cd140f9acef0; affected 20503272422693d793b84f88bf23fe4e955d3a33 before f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce
Linux / Linuxaffected 6.13; unaffected 0 before 6.13; unaffected 6.13.4 through 6.13.*; unaffected 6.14 through *

CWE

No CWE identifiers supplied.

References