CVE-2025-37850 json
pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
published 2025-05-09 18 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-14142
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
With CONFIG_COMPILE_TEST && !CONFIG_HAVE_CLK, pwm_mediatek_config() has a divide-by-zero in the following line:
do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm]));
due to the fact that the !CONFIG_HAVE_CLK version of clk_get_rate() returns zero.
This is presumably just a theoretical problem: COMPILE_TEST overrides the dependency on RALINK which would select COMMON_CLK. Regardless it's a good idea to check for the error explicitly to avoid divide-by-zero.
Fixes the following warning:
drivers/pwm/pwm-mediatek.o: warning: objtool: .text: unexpected end of section
[ukleinek: s/CONFIG_CLK/CONFIG_HAVE_CLK/]
Patch / fix
- Linux Linux 5.4.293, 5.10.237, 5.15.181, 6.1.135, 6.6.88, 6.12.24, 6.13.12, 6.14.3, 6.15
- linux Debian 12 6.1.135-1
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-37850
- linux Ubuntu 22.04 LTS 5.15.0-144.157
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1088.95
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1087.96
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1085.91
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-37850
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-syms-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-coco_debug SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-source-coco SLE Module for Confidential Computing Technical Preview 15 SP6 6.4.0-15061.28.coco15sp6.1
- kernel-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-syms-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-source-rt Real Time Module 15 SP7 6.4.0-150700.7.8.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.6.1
suse advisories SUSE-SU-2025:02923-1SUSE-SU-2025:02333-1SUSE-SU-2025:02307-1SUSE-SU-2025:02254-1SUSE-SU-2025:02000-1SUSE-SU-2025:20413-1
- git.kernel.org/stable/c/8b9f60725d74b72c238e4437c957d0217746b506 commit
- git.kernel.org/stable/c/e1206d8e1651c9f62e5640b69b14d925b1a0a00a commit
- git.kernel.org/stable/c/e3cf0c38d3ce754ad63005102fcfeb0b7ff3290b commit
- git.kernel.org/stable/c/f3e9cf266c2c103cf071e15d7a17e2c699fff3c5 commit
- git.kernel.org/stable/c/8ddbec73ea2598d8414e8f7103241b55cf877010 commit
- git.kernel.org/stable/c/4cb15042b5f3ec0474e91cf379120cc597625dbb commit
- git.kernel.org/stable/c/c343856ff2689ce0afef823592732fc178ef4aac commit
- git.kernel.org/stable/c/77fb96dbe350e8a5ae4965ff9f6e7049f3966a6b commit
- git.kernel.org/stable/c/7ca59947b5fcf94e7ea4029d1bd0f7c41500a161 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-37850 updated cvss 5.5
kernel: pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-369 Divide By Zero
- Technology feeds
References
-
git.kernel.org
/stable/c/8b9f60725d74b72c238e4437c957d0217746b506
patch
-
git.kernel.org
/stable/c/e1206d8e1651c9f62e5640b69b14d925b1a0a00a
patch
-
git.kernel.org
/stable/c/e3cf0c38d3ce754ad63005102fcfeb0b7ff3290b
patch
-
git.kernel.org
/stable/c/f3e9cf266c2c103cf071e15d7a17e2c699fff3c5
patch
-
git.kernel.org
/stable/c/8ddbec73ea2598d8414e8f7103241b55cf877010
patch
-
git.kernel.org
/stable/c/4cb15042b5f3ec0474e91cf379120cc597625dbb
patch
-
git.kernel.org
/stable/c/c343856ff2689ce0afef823592732fc178ef4aac
patch
-
git.kernel.org
/stable/c/77fb96dbe350e8a5ae4965ff9f6e7049f3966a6b
patch
-
git.kernel.org
/stable/c/7ca59947b5fcf94e7ea4029d1bd0f7c41500a161
patch
-
lists.debian.org
/debian-lts-announce/2025/05/msg00045.html
mailing-list
-
lists.debian.org
/debian-lts-announce/2025/05/msg00030.html
mailing-list
Sources
- CVE List CVE-2025-37850
- NVD CVE-2025-37850
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.