ALSA: hda/ca0132: fixup buffer overrun at tuning_ctl_set()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 44f0c9782cc6ab71ea947f8f710a46f2078a151c · < 32854bc91ae7debcdefdc7ae881ed83385a04792| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/ca0132: fixup buffer overrun at tuning_ctl_set()
tuning_ctl_set() might have buffer overrun at (X) if it didn't break from loop by matching (A).
static int tuning_ctl_set(...) { for (i = 0; i < TUNING_CTLS_COUNT; i++) (A) if (nid == ca0132_tuning_ctls[i].nid) break;
snd_hda_power_up(...); (X) dspio_set_param(..., ca0132_tuning_ctls[i].mid, ...); snd_hda_power_down(...); ^
return 1; }
We will get below error by cppcheck
sound/pci/hda/patch_ca0132.c:4229:2: note: After for loop, i has value 12 for (i = 0; i < TUNING_CTLS_COUNT; i++) ^ sound/pci/hda/patch_ca0132.c:4234:43: note: Array index out of bounds dspio_set_param(codec, ca0132_tuning_ctls[i].mid, 0x20, ^ This patch cares non match case.
From the CVE record · Linux
The Linux kernel's ALSA hda/ca0132 tuning_ctl_set() can access an array out of bounds when no tuning control matches the requested nid. The input does not establish whether an attacker can trigger this condition, or specify access or user-interaction requirements.
Engineers running Linux kernels with the ALSA hda/ca0132 driver should check their versions; affected versions are not specified.