CVE-2026-139329: ALSA: jack: Protect the index scan against control removal
ALSA: jack: Protect the index scan against control removal
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
Hold card->controls_rwsem for read across the jack-name index scan so control removal cannot free a control while the scan uses it.
Event History
Frequently Asked Questions
Which systems are exposed to this race condition?
Systems using the Linux kernel ALSA jack code with CONFIG_SND_CTL_FAST_LOOKUP enabled are exposed when multiple HDA codecs share a card. The described scenario requires jack controls from different codec owners to have matching generated names and indices.
What concurrent activity is required to trigger the issue?
One codec must create a jack and scan for an available control index while another codec on the same card is being unbound and removes an existing matching control. Codec-level device locks do not serialize these operations across different codecs.
How can the vulnerable lookup access removed memory?
During the index scan, the fast lookup path can load a raw control pointer from ctl_hash and dereference it while comparing the control ID. Because the scan does not hold card->controls_rwsem, another codec's unbind path can remove and free that control before the comparison finishes.