net: stmmac: make sure that ptp_rate is not 0 before configuring EST
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.199, 6.1.162, 6.12.34, 6.15.3, 6.6.120
- CVEs
- CVE-2025-38125
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 12:43 UTC · Revision 1
Source evidence
net: stmmac: make sure that ptp_rate is not 0 before configuring EST
core-osv · Original sourcePublished 3 Jul 2025, 08:35 UTC
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.
osv:CVE-2025-38125
Kernel
Fixed versions: 5.15.199, 6.1.162, 6.6.120, 6.12.34, 6.15.3
Complete source record
{
"id": "f13c62daa7a775ad13457c57c6347b26da0bdaf90e2ea81931a3488ec9101ca8",
"url": "https://osv.dev/vulnerability/CVE-2025-38125",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: stmmac: make sure that ptp_rate is not 0 before configuring EST",
"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 to EST configuration, where it will trigger a division by 0. Prevent this division by 0 by adding the corresponding check and error code.",
"evidence": "osv:CVE-2025-38125",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.199",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.162",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.120",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.34",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38125",
"aliases": [
"CVE-2025-38125"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8572aec3d0dc43045254fd1bf581fb980bfdbc4b"
},
{
"fixed": "b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b"
},
{
"fixed": "d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74"
},
{
"fixed": "b92ec4a848728460f181def33735605f154d438f"
},
{
"fixed": "451ee661d0f6272017fa012f99617101aa8ddf2c"
},
{
"fixed": "d5e3bfdba0dc419499b801937128957f77503761"
},
{
"fixed": "cbefe2ffa7784525ec5d008ba87c7add19ec631a"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38125.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.6.0"
},
{
"fixed": "5.15.199"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.162"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.120"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.34"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.15.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38125.json"
}
}
],
"modified": "2026-10-28T02:30:29.059423132Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
"https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
"https://git.kernel.org/stable/c/451ee661d0f6272017fa012f99617101aa8ddf2c",
"https://git.kernel.org/stable/c/b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b",
"https://git.kernel.org/stable/c/b92ec4a848728460f181def33735605f154d438f",
"https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a",
"https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761",
"https://git.kernel.org/stable/c/d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38125.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38125",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38125.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38125",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 495529,
"published_at": "2025-07-03T08:35:31.176+00:00"
}