CVE-2025-38125

Source
https://cve.org/CVERecord?id=CVE-2025-38125
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38125.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38125
Downstream
Related
Published
2025-07-03T08:35:31.176Z
Modified
2026-03-12T02:18:46.661965Z
Summary
net: stmmac: make sure that ptp_rate is not 0 before configuring EST
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38125.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8572aec3d0dc43045254fd1bf581fb980bfdbc4b
Fixed
b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b
Fixed
d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74
Fixed
b92ec4a848728460f181def33735605f154d438f
Fixed
451ee661d0f6272017fa012f99617101aa8ddf2c
Fixed
d5e3bfdba0dc419499b801937128957f77503761
Fixed
cbefe2ffa7784525ec5d008ba87c7add19ec631a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38125.json"