---
id: CVE-2025-38125
title: |-
  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…
summary: |-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.6, < 6.12.34'
  - 'linux_kernel >= 6.13, < 6.15.3'
patched:
  - linux_kernel 6.15.3
published: '2025-07-03'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:17:51.467'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-38125'
references:
  - url: 'https://git.kernel.org/stable/c/451ee661d0f6272017fa012f99617101aa8ddf2c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b92ec4a848728460f181def33735605f154d438f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-019113.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-457936.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00192
epssPercentile: 0.08741
ingestedAt: '2026-09-08T15:33:26.997Z'
---

## Overview

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

- `linux_kernel >= 5.6, < 6.12.34`
- `linux_kernel >= 6.13, < 6.15.3`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.15.3`
