CVE-2025-38054
ptp: ocp: Limit signal/freq counts in summary output functions
Check your servers for CVE-2025-38054
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38054 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 freq_in[] and signal_out[] arrays, causing NULL pointer dereferences and triggering a kernel Oops (page_fault_oops). This patch adds u8 fields (nr_freq_in, nr_signal_out) 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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, before 0b7d3e782027ac3b6fec56159e8e348042000aef affected from ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, before fcad74f894ac89790084cc2e1ec61b08220941d1 affected from ef61f5528fca6c3bbb2f8bc002fd1949c9d1f9b9, before c9e455581e2ba87ee38c126e8dc49a424b9df0cf
Other versions: unaffected
|
| Linux |
affected 6.9 unaffected before 6.9 unaffected from 6.12.31 up to and including 6.12.* unaffected from 6.14.9 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38054 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38054
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38054
trivy image --scanners vuln IMAGE | grep CVE-2025-38054
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0b7d3e782027ac3b6fec56159e8e348042000aef git.kernel.org
- https://git.kernel.org/stable/c/fcad74f894ac89790084cc2e1ec61b08220941d1 git.kernel.org
- https://git.kernel.org/stable/c/c9e455581e2ba87ee38c126e8dc49a424b9df0cf git.kernel.org
Source: the record CVE-2025-38054 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse