ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup
Use the control private_free callback to free the associated data block. This ensures that the memory won't leak, whatever way the control gets destroyed.
The original implementation didn't actually remove the ALSA controls in hda_cs_dsp_control_remove(). It only freed the internal tracking structure. This meant it was possible to remove/unload the amp driver while leaving its ALSA controls still present in the soundcard. Obviously attempting to access them could cause segfaults or at least dereferencing stale pointers.
From the CVE record · Linux
The Linux kernel's ALSA hda/cs_dsp_ctl cleanup can leak memory and leave controls present after the amp driver is removed or unloaded. Accessing those controls afterward can cause a segmentation fault or dereference stale pointers. The input does not specify an attacker, authentication requirement, or remote attack path.
Engineers running Linux systems that use the affected ALSA hda/cs_dsp_ctl component should check their kernel; affected versions are not specified.