CVE-2025-37850: Linux kernel · pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 13 Nov 2026, 19:22 UTC
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 9 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 13 Nov 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel source to explicitly check for zero before performing the division, preventing the divide-by-zero error. Users should apply the official kernel update containing this fix. Since this is a kernel-level issue, updating to a patched kernel version is the recommended remediation.
Description
CVE-2025-37850 is a medium-severity vulnerability in the Linux kernel's Mediatek PWM driver where a divide-by-zero error can occur in the pwm_mediatek_config() function under specific kernel configuration conditions. This happens when CONFIG_COMPILE_TEST is enabled and CONFIG_HAVE_CLK is disabled, causing clk_get_rate() to return zero and leading to a divide-by-zero operation. The issue is mostly theoretical due to configuration dependencies but has been addressed to prevent potential runtime errors and related warnings during compilation.
References
- nvd.nist.gov/vuln/detail/CVE-2025-37850 (opens in a new tab)
- git.kernel.org/stable/c/4cb15042b5f3ec0474e91cf379120cc597625dbb (opens in a new tab)
- git.kernel.org/stable/c/77fb96dbe350e8a5ae4965ff9f6e7049f3966a6b (opens in a new tab)
- git.kernel.org/stable/c/7ca59947b5fcf94e7ea4029d1bd0f7c41500a161 (opens in a new tab)
- git.kernel.org/stable/c/8b9f60725d74b72c238e4437c957d0217746b506 (opens in a new tab)
- git.kernel.org/stable/c/8ddbec73ea2598d8414e8f7103241b55cf877010 (opens in a new tab)
- git.kernel.org/stable/c/c343856ff2689ce0afef823592732fc178ef4aac (opens in a new tab)
- git.kernel.org/stable/c/e1206d8e1651c9f62e5640b69b14d925b1a0a00a (opens in a new tab)
- git.kernel.org/stable/c/e3cf0c38d3ce754ad63005102fcfeb0b7ff3290b (opens in a new tab)
- git.kernel.org/stable/c/f3e9cf266c2c103cf071e15d7a17e2c699fff3c5 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)