{"id":"CVE-2025-38125","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:\n\nnet: stmmac: make sure that ptp_rate is not 0 before configuring EST\n\nIf the ptp_rate recorded earlier in the driver happens to be 0, this\nbogus value will propagate up to EST configuration, where it will\ntrigger a division by 0.\n\nPrevent this division by 0 by adding the corresponding check and error\ncode.","modified":"2026-04-02T12:47:49.084579Z","published":"2025-07-03T08:35:31.176Z","related":["SUSE-SU-2025:03272-1","SUSE-SU-2025:03290-1","SUSE-SU-2025:03301-1","SUSE-SU-2025:03382-1","SUSE-SU-2025:03602-1","SUSE-SU-2025:03633-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20653-1","SUSE-SU-2025:20669-1","SUSE-SU-2025:20739-1","SUSE-SU-2025:20756-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38125.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/451ee661d0f6272017fa012f99617101aa8ddf2c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b15c9a21950e1af6d440ce5a8edfa8a94b9acb9b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b92ec4a848728460f181def33735605f154d438f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cbefe2ffa7784525ec5d008ba87c7add19ec631a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d5e3bfdba0dc419499b801937128957f77503761"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d6b0f7ed3e9b6c5e2e3a006c8f72c95aa4ac4b74"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38125.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38125"},{"type":"PACKAGE","url":"https://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/cve-osv-conversion/osv-output/CVE-2025-38125.json"}}],"schema_version":"1.7.5"}