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

Published Jul 3, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

If the ptprate 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 Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=5.6<6.12.34
Linux Linux kernel>=6.13<6.15.3
Microsoft azl3 kernel 6.6.112.1-2
Microsoft cbl2 kernel 5.15.186.1-1
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.117.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the net: stmmac driver, add a check so that ptp_rate is not 0 before configuring EST to prevent division by 0.

    Linux kernel (net: stmmac) ptp_rate = ptp_rate != 0 before configuring EST

Event History

Jul 3, 2025
CVE Published
via MITRE·08:35 AM
Data Sourced
via MITRE·08:35 AM
Description
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·12:50 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:50 AM
SeverityAffected Software
Updated
via Microsoft·12:50 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-38125?

CVE-2025-38125 has a moderate severity level due to potential issues in the EST configuration that could arise from incorrect ptp_rate values.

2

How do I fix CVE-2025-38125?

To fix CVE-2025-38125, update your Linux kernel to the version containing the patch that validates ptp_rate before configuring EST.

3

What software is affected by CVE-2025-38125?

CVE-2025-38125 affects the Linux kernel, specifically the implementation related to the stmmac driver.

4

What is the impact of CVE-2025-38125?

The impact of CVE-2025-38125 may include misconfiguration of the EST that could lead to unexpected behavior in network time sensitive applications.

5

When was CVE-2025-38125 disclosed?

CVE-2025-38125 was disclosed as part of a series of patches for the Linux kernel addressing related vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203