ALSA: gus: check snd_ctl_new1() return value
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c5ae57b1bb99bd6f50b90428fabde397c2aeba0f · < c7fa99d30c7a166a5e5db5a585ce7501ff68326b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: gus: check snd_ctl_new1() return value
snd_ctl_new1() can return NULL when memory allocation fails. snd_gf1_pcm_volume_control() does not check the return value before dereferencing kctl->id.index, which can lead to a NULL pointer dereference.
Add a NULL check after snd_ctl_new1() and return -ENOMEM if it fails.
From the CVE record · Linux
The ALSA gus code in the Linux kernel dereferences a control pointer without checking whether allocation failed. If snd_ctl_new1() returns NULL, this can cause a NULL pointer dereference. The input does not specify whether an attacker can trigger the condition or what access or interaction would be required.
Engineers running Linux kernels with ALSA gus should check whether their kernel is affected; affected versions are not specified.