ALSA: cmipci: check snd_ctl_new1() return value
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f2f312ad88c68a7f4a7789b9269ae33af3c7c7e9 · < c205bd1b28fb7e5f1061a4e78813fad7d315cb3e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: cmipci: check snd_ctl_new1() return value
snd_ctl_new1() can return NULL when memory allocation fails. snd_cmipci_spdif_controls() does not check the return value before dereferencing kctl->id.device, which can lead to a NULL pointer dereference.
Add NULL checks after snd_ctl_new1() calls and return -ENOMEM if any fails.
From the CVE record · Linux
The Linux kernel's ALSA cmipci code dereferences a control pointer without checking whether memory allocation failed. This can cause a NULL pointer dereference when snd_ctl_new1() returns NULL. The input does not establish how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.