Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139453

ALSA: hda: Stop unsol events and jack polling before codec unbind

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d4e76b7b6f533462280cdfa9a3e5e2213ea42c42affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e651c7dea72ba4b2c90769022eaf9694d784739daffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f3607b6952ca9a5638eeef4f301daa7933ce24b1affected
  • 0 to < 6.18.65affected
  • 0 to < 7.3.6affected

Linux Linux

Default version status: affected

  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References