CVE-2026-143369: ALSA: hda/core: Fix double free on stream page allocation failure
In the Linux kernel, the following vulnerability has been resolved:
ALSA: hda/core: Fix double free on stream page allocation failure
Since commit f16eaa38ea64 ("ALSA: hda/core: add cleanup in sndhdacbusallocstreampages()"), sndhdacbusallocstreampages() frees the BDL and position buffers it has already allocated when a later allocation fails. snddmafreepages() doesn't clear dmab->area, so the freed buffers still look allocated to sndhdacbusfreestreampages(), which the HDA controller drivers call from their destructors, and they are freed a second time when the device is removed.
With fault injection failing the CORB/RIRB buffer allocation of snd-hda-intel on a QEMU ich9-intel-hda, unbinding the device then crashes:
page dumped because: VMBUGONPAGE(pagerefcount(page) == 0) kernel BUG at include/linux/mm.h:1986! Call Trace: freepages+0x9b/0xa0 freepagesexact+0xa5/0xd0 sndhdacbusfreestreampages+0x43/0xb0 [sndhdacore] azxfree+0xb3/0x1b0 [sndhdaintel] azxdevfree+0xd/0x20 [sndhdaintel]
Clear the buffer pointers after freeing them in the error path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Clear the buffer pointers after freeing them in the error path.
Event History
Frequently Asked Questions
Under what conditions can this double free be triggered?
A stream-page allocation must fail after the BDL and position buffers have already been allocated, and the HDA device must later be removed or unbound. The described reproduction uses fault injection to fail CORB/RIRB buffer allocation for snd-hda-intel on a QEMU ich9-intel-hda device.
What is the likely impact if the issue is triggered?
Removing or unbinding the affected HDA device can cause a kernel crash due to freeing already-freed pages. The reported failure includes a VM_BUG_ON_PAGE assertion in the page-freeing path.
How can I determine whether a system has encountered this issue?
Look for kernel crashes during HDA device removal or unbinding, particularly stack traces involving snd_hdac_bus_free_stream_pages, azx_free, snd_hda_intel, and ___free_pages. The reported signature includes a VM_BUG_ON_PAGE(page_ref_count(page) == 0) failure.