CVE-2025-21822

ptp: vmclock: Set driver data before its usage

State
Published
Severity
Not scored
Published
Feb 27, 2025
Updated
May 11, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 20503272422693d793b84f88bf23fe4e955d3a33 to before 6dbd8b91a065d1d8001446a28e72cd140f9acef0Affected
  • 20503272422693d793b84f88bf23fe4e955d3a33 to before f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fceAffected
LinuxLinux
  • 6.13Affected
  • before 6.13Not affected
  • 6.13.4 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.