Linux Kernel Mediatek PWM Driver Divide-By-Zero Vulnerability

Vulnerability

A divide-by-zero vulnerability has been identified in the Linux kernel's Mediatek PWM driver. This issue arises in the 'pwm_mediatek_config()' function when the 'CONFIG_COMPILE_TEST' option is enabled but 'CONFIG_HAVE_CLK' is not. In this scenario, the 'clk_get_rate()' function returns zero, leading to a divide-by-zero error. Although this vulnerability is largely theoretical, as the 'COMPILE_TEST' option would typically require 'COMMON_CLK' support, it is still advisable to implement a check to prevent the divide-by-zero condition.

Impact

Exploitation of this vulnerability could lead to a divide-by-zero error, causing a potential denial of service by disrupting normal driver operations.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.