First published: Fri May 09 2025(Updated: )
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/]
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-37850 is classified as a moderate severity vulnerability impacting the Linux kernel.
To fix CVE-2025-37850, users should update their Linux kernel to a version that includes the patch addressing the divide-by-zero issue.
CVE-2025-37850 affects systems running the Linux kernel with CONFIG_COMPILE_TEST and without CONFIG_HAVE_CLK.
CVE-2025-37850 is a divide-by-zero vulnerability related to the pwm_mediatek_config() function in the Linux kernel.
Yes, CVE-2025-37850 was disclosed publicly and has been addressed in updated Linux kernel releases.