Commit 8bc6736
committed
ALSA: hda/ca0132: Fix buffer overflow in add_tuning_control
jira VULN-152896
jira VULN-152895
cve CVE-2025-39751
commit-author Lucy Thrun <lucy.thrun@digital-rabbithole.de>
commit a409c60
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.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506100642.95jpuMY1-lkp@intel.com/
Signed-off-by: Lucy Thrun <lucy.thrun@digital-rabbithole.de>
Link: https://patch.msgid.link/20250610175012.918-3-lucy.thrun@digital-rabbithole.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit a409c60)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 2be65f1 commit 8bc6736
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4399 | 4399 | | |
4400 | 4400 | | |
4401 | 4401 | | |
4402 | | - | |
| 4402 | + | |
4403 | 4403 | | |
4404 | 4404 | | |
4405 | 4405 | | |
| |||
0 commit comments