PT-2025-27712 · Linux+6 · Linux Kernel+6
Published
2025-05-29
·
Updated
2026-05-26
·
CVE-2025-38126
CVSS v2.0
6.0
Medium
| Vector | AV:L/AC:H/Au:S/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions:
Linux kernel versions prior to 6.12.30
Description:
A division by zero error can occur in the Linux kernel when the
ptp rate is 0, leading to a kernel crash. This issue arises when the stmmac platform drivers do not properly handle the clk ptp rate value retrieved from the device-tree, resulting in a 0 value that propagates to PTP initialization. The error occurs in the stmmac init tstamp counter function, which is called during interface setup.Recommendations:
For Linux kernel versions prior to 6.12.30, update to a version that includes the fix for the
ptp rate check to prevent division by zero errors. As a temporary workaround, consider disabling the stmmac init tstamp counter function until a patch is available. Restrict access to the stmmac module to minimize the risk of exploitation. Avoid using the clk ptp rate value in the affected kernel functions until the issue is resolved.Exploit
Fix
DoS
Divide By Zero
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu