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

VectorAV: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

Weakness Enumeration

Related Identifiers

AZL-64484
AZL-72722
BDU:2025-09823
CVE-2025-38126
DLA-4328-1
DSA-5973-1
ECHO-CC03-504E-0BAC
MGASA-2025-0218
MGASA-2025-0219
SUSE-SU-2025:02846-1
SUSE-SU-2025:02853-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:02969-1
SUSE-SU-2025:02996-1
SUSE-SU-2025:02997-1
SUSE-SU-2025:03011-1
SUSE-SU-2025:03023-1
SUSE-SU-2025:20577-1
SUSE-SU-2025:20586-1
SUSE-SU-2025:20601-1
SUSE-SU-2025:20602-1
SUSE-SU-2025_02846-1
SUSE-SU-2025_02853-1
SUSE-SU-2025_02969-1
SUSE-SU-2025_02996-1
SUSE-SU-2025_02997-1
SUSE-SU-2025_03011-1
SUSE-SU-2025_03023-1
USN-7769-1
USN-7769-2
USN-7769-3
USN-7770-1
USN-7771-1
USN-7789-1
USN-7789-2
USN-8028-1
USN-8028-2
USN-8028-3
USN-8028-4
USN-8028-5
USN-8028-6
USN-8028-7
USN-8028-8
USN-8031-1
USN-8031-2
USN-8031-3
USN-8052-1
USN-8052-2
USN-8074-1
USN-8074-2
USN-8126-1

Affected Products

Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu