CVE-2025-21822

Source
https://cve.org/CVERecord?id=CVE-2025-21822
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21822.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-21822
Downstream
Published
2025-02-27T20:06:13.422Z
Modified
2026-04-02T12:45:15.233070Z
Summary
ptp: vmclock: Set driver data before its usage
Details

In the Linux kernel, the following vulnerability has been resolved:

ptp: vmclock: Set driver data before its usage

If vmclockptpregister() fails during probing, vmclockremove() is called to clean up the ptp clock and misc device. It uses devget_drvdata() to access the vmclock state. However the driver data is not yet set at this point.

Assign the driver data earlier.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21822.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
20503272422693d793b84f88bf23fe4e955d3a33
Fixed
6dbd8b91a065d1d8001446a28e72cd140f9acef0
Fixed
f7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21822.json"