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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:31.176Z
- Modified: 2026-11-10T13:17:45.677Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before b92ec4a848728460f181def33735605f154d438f; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before 451ee661d0f6272017fa012f99617101aa8ddf2c; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before d5e3bfdba0dc419499b801937128957f77503761; from 8572aec3d0dc43045254fd1bf581fb980bfdbc4b before cbefe2ffa7784525ec5d008ba87c7add19ec631a; 5.6 (not affected: before 5.6; from 5.15.199 up to 5.15.*; from 6.1.162 up to 6.1.*; from 6.6.120 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 5.6 before 6.12.34; from 6.13 before 6.15.3

## References

- <https://git.kernel.org/stable/c/b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b> (patch)
- <https://git.kernel.org/stable/c/d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74> (patch)
- <https://git.kernel.org/stable/c/b92ec4a848728460f181def33735605f154d438f> (patch)
- <https://git.kernel.org/stable/c/451ee661d0f6272017fa012f99617101aa8ddf2c> (patch)
- <https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761> (patch)
- <https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-38125](https://www.cve.org/CVERecord?id=CVE-2025-38125), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-38125](https://nvd.nist.gov/vuln/detail/CVE-2025-38125), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-38125 · Whole record: https://cve.day/CVE-2025-38125.json · Rebuilt by cve.day 2026-11-25T22:59:00.523Z
