{"id":"CVE-2026-143369","state":"PUBLISHED","title":"ALSA: hda/core: Fix double free on stream page allocation failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/core: Fix double free on stream page allocation failure\n\nSince commit f16eaa38ea64 (\"ALSA: hda/core: add cleanup in\nsnd_hdac_bus_alloc_stream_pages()\"), snd_hdac_bus_alloc_stream_pages()\nfrees the BDL and position buffers it has already allocated when a\nlater allocation fails.  snd_dma_free_pages() doesn't clear dmab->area,\nso the freed buffers still look allocated to\nsnd_hdac_bus_free_stream_pages(), which the HDA controller drivers call\nfrom their destructors, and they are freed a second time when the\ndevice is removed.\n\nWith fault injection failing the CORB/RIRB buffer allocation of\nsnd-hda-intel on a QEMU ich9-intel-hda, unbinding the device then\ncrashes:\n\n  page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)\n  kernel BUG at include/linux/mm.h:1986!\n  Call Trace:\n   ___free_pages+0x9b/0xa0\n   free_pages_exact+0xa5/0xd0\n   snd_hdac_bus_free_stream_pages+0x43/0xb0 [snd_hda_core]\n   azx_free+0xb3/0x1b0 [snd_hda_intel]\n   azx_dev_free+0xd/0x20 [snd_hda_intel]\n\nClear the buffer pointers after freeing them in the error path.","publishedAt":"2026-12-03T09:22:20.045Z","updatedAt":"2026-12-03T09:22:20.045Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f16eaa38ea640884f66d24865c770c3f6c43bd42","status":"affected","lessThan":"ad35828e66b7bc6b3621056691333799d8a38ba4","versionType":"git"},{"version":"f16eaa38ea640884f66d24865c770c3f6c43bd42","status":"affected","lessThan":"1886b8132cd37edbc28b55f30a885011aa0bbe8a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/core/controller.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/core/controller.c"]}],"references":["https://git.kernel.org/stable/c/ad35828e66b7bc6b3621056691333799d8a38ba4","https://git.kernel.org/stable/c/1886b8132cd37edbc28b55f30a885011aa0bbe8a"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143369.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143369","state":"PUBLISHED","datePublished":"2026-12-03T09:22:20.045Z","dateUpdated":"2026-12-03T09:22:20.045Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.371Z"},"containers":{"cna":{"title":"ALSA: hda/core: Fix double free on stream page allocation failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/core: Fix double free on stream page allocation failure\n\nSince commit f16eaa38ea64 (\"ALSA: hda/core: add cleanup in\nsnd_hdac_bus_alloc_stream_pages()\"), snd_hdac_bus_alloc_stream_pages()\nfrees the BDL and position buffers it has already allocated when a\nlater allocation fails.  snd_dma_free_pages() doesn't clear dmab->area,\nso the freed buffers still look allocated to\nsnd_hdac_bus_free_stream_pages(), which the HDA controller drivers call\nfrom their destructors, and they are freed a second time when the\ndevice is removed.\n\nWith fault injection failing the CORB/RIRB buffer allocation of\nsnd-hda-intel on a QEMU ich9-intel-hda, unbinding the device then\ncrashes:\n\n  page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)\n  kernel BUG at include/linux/mm.h:1986!\n  Call Trace:\n   ___free_pages+0x9b/0xa0\n   free_pages_exact+0xa5/0xd0\n   snd_hdac_bus_free_stream_pages+0x43/0xb0 [snd_hda_core]\n   azx_free+0xb3/0x1b0 [snd_hda_intel]\n   azx_dev_free+0xd/0x20 [snd_hda_intel]\n\nClear the buffer pointers after freeing them in the error path."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f16eaa38ea640884f66d24865c770c3f6c43bd42","status":"affected","lessThan":"ad35828e66b7bc6b3621056691333799d8a38ba4","versionType":"git"},{"version":"f16eaa38ea640884f66d24865c770c3f6c43bd42","status":"affected","lessThan":"1886b8132cd37edbc28b55f30a885011aa0bbe8a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/core/controller.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/hda/core/controller.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ad35828e66b7bc6b3621056691333799d8a38ba4"},{"url":"https://git.kernel.org/stable/c/1886b8132cd37edbc28b55f30a885011aa0bbe8a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:20.045Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}