ALSA: ctxfi: Fix potential OOB access in audio mixer handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8cc72361481f00253f1e468ade5795427386d593 · < 873e2360d247eeee642878fcc3398babff7e387c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ctxfi: Fix potential OOB access in audio mixer handling
In the audio mixer handling code of ctxfi driver, the conf field is used as a kind of loop index, and it's referred in the index callbacks (amixer_index() and sum_index()).
As spotted recently by fuzzers, the current code causes OOB access at those functions. | UBSAN: array-index-out-of-bounds in /build/reproducible-path/linux-6.17.8/sound/pci/ctxfi/ctamixer.c:347:48 | index 8 is out of range for type 'unsigned char [8]'
After the analysis, the cause was found to be the lack of the proper (re-)initialization of conj field.
This patch addresses those OOB accesses by adding the proper initializations of the loop indices.
From the CVE record · Linux
The Linux kernel’s ALSA ctxfi audio mixer can access an array out of bounds because a loop-index field is not properly reinitialized. Fuzzers triggered the issue; the input does not specify an attacker path or whether network access, authentication, or user interaction is required.
Teams running Linux kernels with the ALSA ctxfi driver should check whether their kernel includes the fix; affected versions are not specified.