Commit 6042ea9
committed
ALSA: hda/ca0132: Fix buffer overflow in add_tuning_control
jira VULN-152893
cve CVE-2025-39751
commit-author Lucy Thrun <[email protected]>
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Lucy Thrun <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
(cherry picked from commit a409c60)
Signed-off-by: Brett Mastbergen <[email protected]>1 parent 42afea6 commit 6042ea9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4017 | 4017 | | |
4018 | 4018 | | |
4019 | 4019 | | |
4020 | | - | |
| 4020 | + | |
4021 | 4021 | | |
4022 | 4022 | | |
4023 | 4023 | | |
| |||
0 commit comments