Re: CVE-2025-39751: ALSA: hda/ca0132: Fix buffer overflow in add_tuning_control
From: Siddh Raman Pant
Date: Mon Oct 06 2025 - 03:07:13 EST
On Thu, 11 Sep 2025 18:52:52 +0200, Greg Kroah-Hartman wrote:
> ALSA: hda/ca0132: Fix buffer overflow in add_tuning_control
>
> The 'sprintf' call in 'add_tuning_control' may exceed the 44-byte
> buffer if either string argument is too long. This triggers a compiler
> warning.
> Replaced 'sprintf' with 'snprintf' to limit string lengths to prevent
> overflow.
>
> The Linux kernel CVE team has assigned CVE-2025-39751 to this issue.
While the change is good for defensive reasons, there isn't actually
any buffer overflow as it is to "fix".
The largest string possible is "Wedge Angle Playback Volume", whose
length is less than 44.
Thanks,
Siddh
Attachment:
signature.asc
Description: This is a digitally signed message part