CVE-2025-38126
BaseFortify
Publication date: 2025-07-03
Last updated on: 2025-12-17
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 4.5 (inc) to 6.1.142 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.94 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.34 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.15.3 (exc) |
| debian | debian_linux | 11.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-369 | The product divides a value by zero. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a division by zero error in the Linux kernel's stmmac platform driver. It occurs because the ptp_rate value, which is used for timestamping, can be zero if the driver retrieves a zero rate from the device-tree or clk_get_rate function. When the system tries to initialize the Precision Time Protocol (PTP) with this zero value, it causes a division by zero, leading to a kernel crash or instability. The fix involves adding a check to ensure ptp_rate is not zero before using it, preventing the division by zero.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash or become unstable due to a division by zero error during network interface initialization. This can lead to system downtime, loss of availability, and potential disruption of services relying on the affected network interface.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, ensure that the Linux kernel version you are using includes the fix that adds an explicit check to prevent division by zero in the stmmac driver. This involves updating your kernel to a version that contains the patch preventing ptp_rate from being zero before configuring timestamping. Additionally, monitor kernel logs for error messages related to ptp_rate or stmmac initialization failures.