CVE-2025-21814

Source
https://cve.org/CVERecord?id=CVE-2025-21814
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21814.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21814
Downstream
Related
Published
2025-02-27T20:04:14.089Z
Modified
2026-05-28T03:53:10.970862984Z
Summary
ptp: Ensure info->enable callback is always set
Details

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

ptp: Ensure info->enable callback is always set

The ioctl and sysfs handlers unconditionally call the ->enable callback. Not all drivers implement that callback, leading to NULL dereferences. Example of affected drivers: ptps390.c, ptpvclock.c and ptp_mock.c.

Instead use a dummy callback if no better was specified by the driver.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21814.json",
    "cna_assigner": "Linux"
}
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
d94ba80ebbea17f036cecb104398fbcd788aa742
Fixed
fdc1e72487781dd7705bcbe30878bee7d5d1f3e8
Fixed
9df3a9284f39bfd51a9f72a6a165c79e2aa5066b
Fixed
1334c64a5d1de6666e0c9f984db6745083df1eb4
Fixed
5d1041c76de656f9f8d5a192218039a9acf9bd00
Fixed
81846070cba17125a866e8023c01d3465b153339
Fixed
8441aea46445252df5d2eed6deb6d5246fc24002
Fixed
755caf4ee1c615ee5717862e427124370f46b1f3
Fixed
fd53aa40e65f518453115b6f56183b0c201db26b

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
5.4.291
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.235
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.179
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.129
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.78
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.14
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.3

Database specific

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