Junglewise Threat Intelligence

CVE-2025-21814: Linux Kernel NULL pointer dereference in PTP subsystem

CVE-2025-21814 · Severity: medium · CVSS 5.5 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's Precision Time Protocol (PTP) subsystem could allow a local user to crash the system. The issue occurs because certain time-keeping drivers do not properly handle specific configuration requests, leading to a system failure (NULL pointer dereference). This impacts system availability but does not directly expose sensitive data.

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel's PTP (Precision Time Protocol) subsystem. The root cause is that ioctl and sysfs handlers unconditionally call the 'enable' callback function without verifying if the underlying driver has implemented it. Local attackers with access to these interfaces can trigger the dereference in drivers that lack this callback (such as ptp_s390, ptp_vclock, and ptp_mock), resulting in a kernel panic. The fix introduces a dummy callback to safely handle these calls when a driver-specific implementation is missing.

Affected products

  • Linux Linux Kernel versions before 6.13.3, 6.12.14, 6.6.78, 6.1.129

Timeline

  • 2025-01-23: other: Patch authored
  • 2025-02-27: disclosed: CVE published
  • 2025-02-27: advisory

References

Related threats