CVE-2025-38126: Linux kernel · net: stmmac: make sure that ptp_rate is not 0 before configuring timestamping
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 6.8.0-1046.49~22.04.1 : update Linux kernel when convenient.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.8.0-1046.49~22.04.1, 6.8.0-1051.57~22.04.1, 6.8.0-1047.50~22.04.2 +30
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 3 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde@6.17.0-1017.17?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux@6.8.0-100.100?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws@6.8.0-1046.49?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-aws-6.14pkg:deb/ubuntu/linux-aws-6.14@6.14.0-1013.13~24.04.1?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure@6.8.0-1046.52?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11@6.11.0-1018.18~24.04.1?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available that adds an explicit check to ensure ptp_rate is not zero before configuring timestamping, preventing the division by zero error. Users should apply the updated Linux kernel versions containing this fix. The vendor advisory confirms the issue has been resolved.
Description
A vulnerability in the Linux kernel's stmmac network driver could cause a division by zero error during PTP timestamping initialization if the ptp_rate value is zero. This occurs because clk_get_rate may return zero, which propagates to the PTP initialization code. The issue has been resolved by adding an explicit check to prevent division by zero and logging an error if ptp_rate is zero.
References
- ubuntu.com/security/CVE-2025-38126 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-38126 (opens in a new tab)
- git.kernel.org/linus/030ce919e114a111e83b7976ecb3597cefd33f26 (opens in a new tab)
- git.kernel.org/stable/c/030ce919e114a111e83b7976ecb3597cefd33f26 (opens in a new tab)
- git.kernel.org/stable/c/32af9c289234990752281c805500dfe03c5b2b8f (opens in a new tab)
- git.kernel.org/stable/c/379cd990dfe752b38fcf46034698a9a150626c7a (opens in a new tab)
- git.kernel.org/stable/c/b263088ee8ab14563817a8be3519af8e25225793 (opens in a new tab)
- git.kernel.org/stable/c/bb033c6781ce1b0264c3993b767b4aa9021959c2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7769-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7770-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7771-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7769-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7769-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7789-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7789-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8028-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8028-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8031-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8028-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8028-4 (opens in a new tab)