Not scored
ALSA: hda: Stop unsol events and jack polling before codec unbind
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: Stop unsol events and jack polling before codec unbind At unbinding a codec driver, hda_codec_driver_remove() calls the codec's remove callback that releases the driver resources, followed by snd_hda_codec_cleanup_for_unbind(). Meanwhile, the unsolicited events are processed asynchronously in bus->unsol_work, and snd_hdac_bus_process_unsol_events() checks only codec->registered flag before calling the driver's unsol_event callback without the lock. Since codec->registered is cleared only in snd_hda_codec_cleanup_for_unbind(), and there is no flush of the unsol work at unbinding, the unsol event handler may run concurrently during the running remove callback, which may lead to a UAF. The same problem applies to the jack polling work, which is canceled only after the remove callback. For addressing those races, introduce a new flag unsol_disabled to hdac_device, to be checked it in the unsol event worker, while a new helper snd_hdac_device_disable_unsol() sets this flag and flushes the pending unsol work. The helper is called at hda_codec_driver_remove() together with the cancel of jackpoll_work to assure that no asynchronous jack handling can run. The flag is cleared again at probing the codec driver, while the events are still blocked by the registered flag until the codec gets registered.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d4e76b7b6f533462280cdfa9a3e5e2213ea42c42, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e651c7dea72ba4b2c90769022eaf9694d784739d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f3607b6952ca9a5638eeef4f301daa7933ce24b1, before 6.18.65, before 7.3.6 Not affected: from 6.18.65 up to 6.18.*, from 7.3.6 up to 7.3.*, from 7.4-rc1 up to * | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139453 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-139453 changed 2026-11-30 | Public domain |