CVE-2025-21822
JSON

5.5medium

ptp: vmclock: Set driver data before its usage

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.13 before 6.13.4, 6.14NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ptp: vmclock: Establecer datos del controlador antes de su uso Si vmclock_ptp_register() falla durante el sondeo, se llama a vmclock_remove() para limpiar el reloj ptp y el dispositivo misceláneo. Utiliza dev_get_drvdata() para acceder al estado de vmclock. Sin embargo, los datos del controlador aún no están establecidos en este punto. Asigne los datos del controlador antes.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21822 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21822 changed 2026-06-17Public domain