CVE-2025-38125

net: stmmac: make sure that ptp_rate is not 0 before configuring EST

State
Published
Severity
Not scored
Published
Jul 3, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before b15c9a21950e1af6d440ce5a8edfa8a94b9acb9bAffected
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74Affected
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before b92ec4a848728460f181def33735605f154d438fAffected
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before 451ee661d0f6272017fa012f99617101aa8ddf2cAffected
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before d5e3bfdba0dc419499b801937128957f77503761Affected
  • 8572aec3d0dc43045254fd1bf581fb980bfdbc4b to before cbefe2ffa7784525ec5d008ba87c7add19ec631aAffected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 5.15.199 through 5.15.*Not affected
  • 6.1.162 through 6.1.*Not affected
  • 6.6.120 through 6.6.*Not affected
  • 6.12.34 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.