ALSA: hda/cs35l41: Fix firmware load work teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 47ceabd99a28399f8971f4ca0a37ebc0a21dd2a8 · < b65020d5398f499c09498c9786dba6d67ae57664| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/cs35l41: Fix firmware load work teardown
cs35l41_hda creates ALSA controls whose private data points at the cs35l41_hda object. The firmware load control can also queue fw_load_work.
Those controls are not removed on component unbind, and device remove only cancels fw_load_work through cs35l41_remove_dsp(). That helper is skipped when halo_initialized is false. With firmware_autostart disabled, a firmware load can be requested before the DSP has been initialized. If the component or device is removed before the queued work runs, the worker can run after teardown and dereference driver state that is no longer valid.
Track the created controls and remove them on unbind so no new control callback can reach the driver data or queue more work. Then cancel fw_load_work to drain any request that was already queued. Also cancel the work unconditionally during device remove before runtime PM teardown.
From the CVE record · Linux
The Linux kernel’s ALSA hda/cs35l41 driver can run queued firmware-load work after driver state has been torn down, causing a use-after-free. This can occur when firmware_autostart is disabled, a firmware load is requested before DSP initialization, and the component or device is removed before the work runs. The input does not establish whether an attacker can trigger these conditions or what access would be needed.
Engineers running Linux kernels with the ALSA hda/cs35l41 driver should check their kernel vendor’s advisory; affected versions are not specified.