CVE-2026-139479: ALSA: hda: Fix potential UAF for gating jack
ALSA: hda: Fix potential UAF for gating jack
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - 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
Event History
Frequently Asked Questions
What condition triggers the use-after-free?
The issue can occur when snd_hda_jack_set_gating_jack() obtains one jack-table entry and then a subsequent snd_hda_jack_tbl_get() call reallocates the jack table. That reallocation can invalidate the first saved pointer before it is used.
What does the fix change?
The fix separates the operation into two phases: it first creates both required jack-table entries, then retrieves their pointers only after creation is complete. This prevents table relocation from invalidating a previously retrieved pointer.