ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: tlv320aic32x4: Prevent division by zero in divider callbacks

A zero rate requested through clk_set_rate() or clk_round_rate() reaches clk_aic32x4_div_determine_rate() when the minimum rate is zero. Clamping the requested rate to the allowed range leaves it unchanged, causing division by zero when calculating the divisor.

A zero parent rate can also cause division by zero in determine_rate(). For example, if reading a parent divider's register fails, clk_aic32x4_div_recalc_rate() returns zero, which the clock framework caches as the parent's rate. A subsequent rate request for a child divider receives this value in best_parent_rate. With a nonzero requested rate, the calculated divisor is zero. It passes the existing upper-bound check and causes division by zero in the resulting rate calculation.

The set_rate callback can receive a zero rate when an ancestor's rate changes. clk_calc_subtree() calculates descendant rates through recalc_rate() without calling their determine_rate callbacks. If reading a descendant divider's register fails, clk_aic32x4_div_recalc_rate() returns zero. This becomes the descendant's new_rate, which clk_change_rate() passes to clk_aic32x4_div_set_rate(), causing division by zero.

Reject zero rates in both callbacks and reject a zero divisor in clk_aic32x4_div_determine_rate().

Found by Linux Verification Center (linuxtesting.org) with SVACE.

ProductVersions
Linux Linuxa51b50062091619915c5155085bbe13a7aca6903 to before 03ad686ff8963bd3db9b66cd26909cc07e618d22 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before 57ee418189f2ac4283e9f94c7d1c2f82d2e0cc1d Affecteda51b50062091619915c5155085bbe13a7aca6903 to before ab0ab09f18dbd3f4b62ae557bd6723ff936e71f1 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before ea0fbd5d0d0f532de2fad1bd342b02671bbdb580 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before eb2ce3e13f344b6916ab0e26100012453bc5f2d3 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before 0a71f66c8f3ee1f1592268d75766489e96c37525 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before bef087dd545340aaa4e8db619b48573e268fee94 Affecteda51b50062091619915c5155085bbe13a7aca6903 to before 8cf9607d2d855629260fc78e6b54ea7a98525708 Affected
Linux Linux5.2 Affectedbefore 5.2 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.