CVE-2025-38054: ptp: ocp: Limit signal/freq counts in summary output functions

Published Jun 18, 2025
·
Updated

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

ptp: ocp: Limit signal/freq counts in summary output functions

The debugfs summary output could access uninitialized elements in the freqin[] and signalout[] arrays, causing NULL pointer dereferences and triggering a kernel Oops (pagefaultoops). This patch adds u8 fields (nrfreqin, nrsignalout) to track the number of initialized elements, with a maximum of 4 per array. The summary output functions are updated to respect these limits, preventing out-of-bounds access and ensuring safe array handling.

Widen the label variables because the change confuses GCC about max length of the strings.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.9<6.12.31
Linux Linux kernel>=6.13<6.14.9
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7

Event History

Jun 18, 2025
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38054?

CVE-2025-38054 has a severity rating that may impact the stability of the Linux kernel due to potential NULL pointer dereferences.

2

How do I fix CVE-2025-38054?

To fix CVE-2025-38054, it is recommended to update to the latest version of the Linux kernel that contains the patch.

3

What products are affected by CVE-2025-38054?

CVE-2025-38054 affects the Linux kernel across various distributions where the vulnerable versions are utilized.

4

What types of issues can CVE-2025-38054 cause?

CVE-2025-38054 can result in system crashes or instability due to uninitialized elements leading to NULL pointer dereferences.

5

Is there a workaround for CVE-2025-38054?

There is no specific workaround for CVE-2025-38054; patching the kernel is the recommended mitigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203