ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()
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 |
|
06.0.166.1.26.2In the Linux kernel, the following vulnerability has been resolved:
ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()
sof_es8336_remove() calls cancel_delayed_work(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free.
Fix by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself.
From the CVE record · Linux
The Linux kernel's sof_es8336 driver can use freed memory during driver removal because cancel_delayed_work() does not wait for a running callback to finish. The input does not specify an attack path, required access, or user interaction.
Anyone running a Linux kernel with the sof_es8336 driver should check whether their kernel includes the fix; affected versions are not specified.