CVE-2025-37889

MEDIUM

Linux Kernel - Integer Overflow in ASoC Volume Control via platform_max Interpretation

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: ops: Consistently treat platform_max as control value This reverts commit 9bdd10d57a88 ("ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min"), and makes some additional related updates. There are two ways the platform_max could be interpreted; the maximum register value, or the maximum value the control can be set to. The patch moved from treating the value as a control value to a register one. When the patch was applied it was technically correct as snd_soc_limit_volume() also used the register interpretation. However, even then most of the other usages treated platform_max as a control value, and snd_soc_limit_volume() has since been updated to also do so in commit fb9ad24485087 ("ASoC: ops: add correct range check for limiting volume"). That patch however, missed updating snd_soc_put_volsw() back to the control interpretation, and fixing snd_soc_info_volsw_range(). The control interpretation makes more sense as limiting is typically done from the machine driver, so it is appropriate to use the customer facing representation rather than the internal codec representation. Update all the code to consistently use this interpretation of platform_max. Finally, also add some comments to the soc_mixer_control struct to hopefully avoid further patches switching between the two approaches.

Scores

CVSS v3 5.5
EPSS 0.0007
EPSS Percentile 21.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (25)
debian/debian_linux 11.0
linux/Kernel < 5.15.180linux
linux/Kernel 5.16.0 - 6.1.132linux
linux/Kernel 6.2.0 - 6.6.84linux
linux/Kernel 6.7.0 - 6.13.8linux
Linux/Linux < 6.7
Linux/Linux 395e52b7a1ad01e1b51adb09854a0aa5347428de - 544055329560d4b64fe204fc6be325ebc24c72ca
Linux/Linux 5.15.148 - 5.15.180
Linux/Linux 5.15.180 - 5.15.*
Linux/Linux 6.1.132 - 6.1.*
... and 15 more
Published May 09, 2025
Tracked Since Feb 18, 2026