CVE-2025-21814

ptp: Ensure info->enable callback is always set

State
Published
Severity
Not scored
Published
Feb 27, 2025
Updated
Oct 15, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

Description

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: ptp_s390.c, ptp_vclock.c and ptp_mock.c.

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before fdc1e72487781dd7705bcbe30878bee7d5d1f3e8Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 9df3a9284f39bfd51a9f72a6a165c79e2aa5066bAffected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 1334c64a5d1de6666e0c9f984db6745083df1eb4Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 5d1041c76de656f9f8d5a192218039a9acf9bd00Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 81846070cba17125a866e8023c01d3465b153339Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 8441aea46445252df5d2eed6deb6d5246fc24002Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before 755caf4ee1c615ee5717862e427124370f46b1f3Affected
  • d94ba80ebbea17f036cecb104398fbcd788aa742 to before fd53aa40e65f518453115b6f56183b0c201db26bAffected
LinuxLinux
  • 3.0Affected
  • before 3.0Not affected
  • 5.4.291 through 5.4.*Not affected
  • 5.10.235 through 5.10.*Not affected
  • 5.15.179 through 5.15.*Not affected
  • 6.1.129 through 6.1.*Not affected
  • 6.6.78 through 6.6.*Not affected
  • 6.12.14 through 6.12.*Not affected
  • 6.13.3 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.