AZL-117148: CVE-2026-139453 affecting package kernel 6.6.161.1-1
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, hdacodecdriverremove() calls the codec's remove callback that releases the driver resources, followed by sndhdacodeccleanupforunbind(). Meanwhile, the unsolicited events are processed asynchronously in bus->unsolwork, and sndhdacbusprocessunsolevents() checks only codec->registered flag before calling the driver's unsolevent callback without the lock. Since codec->registered is cleared only in sndhdacodeccleanupforunbind(), 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 unsoldisabled to hdacdevice, to be checked it in the unsol event worker, while a new helper sndhdacdevicedisableunsol() sets this flag and flushes the pending unsol work. The helper is called at hdacodecdriverremove() together with the cancel of jackpollwork 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 Software
Event History
Frequently Asked Questions
When can the use-after-free race occur?
The race can occur while an HDA codec driver is being unbound. Unsolicited codec events or jack polling work may run concurrently with the driver's remove callback, after driver resources have been released.
What components are involved in the race?
The issue involves ALSA HDA codec unbinding, asynchronous unsolicited-event processing in bus->unsol_work, and jack polling work. The unsafe path is the driver's unsolicited-event callback running during codec driver removal.
What does the fix change?
The fix adds an unsol_disabled flag that prevents unsolicited-event handling during unbind, flushes pending unsolicited-event work, and cancels jack polling before the codec driver's remove callback. This prevents those asynchronous paths from accessing resources released by removal.