CVE-2025-38125

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

MEDIUM
5.5
CVSS Score
Published: July 3, 2025 at 08:35 AM UTC
Updated: October 15, 2026 at 02:17 AM UTC
4 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions5.6 ≤ v < 6.12.346.13 ≤ v < 6.15.35.68572aec3d0dc43045254fd1bf581fb980bfdbc4b
Vendor states this is fixed in 451ee661d0f6272017fa012f99617101aa8ddf2c (fixed)
Vendor states this is fixed in b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b (fixed)
Vendor states this is fixed in b92ec4a848728460f181def33735605f154d438f (fixed)
Vendor states this is fixed in cbefe2ffa7784525ec5d008ba87c7add19ec631a (fixed)
Vendor states this is fixed in d5e3bfdba0dc419499b801937128957f77503761 (fixed)
Vendor states this is fixed in d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74 (fixed)
Vendor states this is fixed in 5.15.199 (unaffected)
Vendor states this is fixed in 5.6 (unaffected)
Vendor states this is fixed in 6.1.162 (unaffected)
Vendor states this is fixed in 6.12.34 (unaffected)
Vendor states this is fixed in 6.15.3 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.120 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card