Bug 2348917 (CVE-2025-21814) - CVE-2025-21814 kernel: ptp: Ensure info->enable callback is always set
Summary: CVE-2025-21814 kernel: ptp: Ensure info->enable callback is always set
Keywords:
Status: NEW
Alias: CVE-2025-21814
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 21:03 UTC by OSIDB Bzimport
Modified: 2025-02-28 04:23 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 21:03:03 UTC
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.

Comment 1 Avinash Hanwate 2025-02-28 04:18:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022709-CVE-2025-21814-d723@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.