CVE-2026-143370
NVD
Vulnerability Summary
In the Linux kernel, the following vulnerability has been resolved:
ALSA: memalloc: Free the new pages when WC DMA mapping fails
snd_dma_wc_alloc() keeps the newly allocated pages in a local variable,
and snd_dma_alloc_dir_pages() stores them in dmab->area only after
->alloc() returns. If dma_map_single() fails, the error path passes
dmab->area to do_free_pages() instead, and that is still NULL at this
point for the usual callers.
The pages are then leaked with their write-combining attribute still
set, set_memory_wb() warns about the zero address, and for buffers
larger than a page free_pages_exact() goes on to free the struct pages
of the bogus addresses 4096, 8192 and so on. With CONFIG_DEBUG_VM that
hits the VM_BUG_ON() in free_pages():
kernel BUG at mm/page_alloc.c:5600!
RIP: 0010:free_pages_exact+0xcb/0xd0
Call Trace:
snd_dma_wc_alloc+0x14f/0x160 [snd_pcm]
snd_dma_alloc_dir_pages+0x4f/0x80 [snd_pcm]
This was reproduced on an x86 guest without swiotlb by allocating
SNDRV_DMA_TYPE_DEV_WC buffers for a device with a 24-bit streaming DMA
mask, so that dma_map_single() fails.
Free the pages that were just allocated.
ALSA: memalloc: Free the new pages when WC DMA mapping fails
snd_dma_wc_alloc() keeps the newly allocated pages in a local variable,
and snd_dma_alloc_dir_pages() stores them in dmab->area only after
->alloc() returns. If dma_map_single() fails, the error path passes
dmab->area to do_free_pages() instead, and that is still NULL at this
point for the usual callers.
The pages are then leaked with their write-combining attribute still
set, set_memory_wb() warns about the zero address, and for buffers
larger than a page free_pages_exact() goes on to free the struct pages
of the bogus addresses 4096, 8192 and so on. With CONFIG_DEBUG_VM that
hits the VM_BUG_ON() in free_pages():
kernel BUG at mm/page_alloc.c:5600!
RIP: 0010:free_pages_exact+0xcb/0xd0
Call Trace:
snd_dma_wc_alloc+0x14f/0x160 [snd_pcm]
snd_dma_alloc_dir_pages+0x4f/0x80 [snd_pcm]
This was reproduced on an x86 guest without swiotlb by allocating
SNDRV_DMA_TYPE_DEV_WC buffers for a device with a 24-bit streaming DMA
mask, so that dma_map_single() fails.
Free the pages that were just allocated.
Affected & Patched Versions
- Linux >= c880a5146642e9d35f88aaa353ae98ffd4fc3f99 and < 21c0f420ded667ee644f78b901fc739fe0f12810
- Linux >= c880a5146642e9d35f88aaa353ae98ffd4fc3f99 and < ca2477af20443184f685b747f38a05b27ccb0b68
- Linux >= c880a5146642e9d35f88aaa353ae98ffd4fc3f99 and < f733176cb4c68ca03297f47f1a5acc7a9501b0b6
- Linux >= c880a5146642e9d35f88aaa353ae98ffd4fc3f99 and < 016fe9695e6dc1322ddfe8c7dbc7b973483b4a24
- Linux 6.12
- Linux 21c0f420ded667ee644f78b901fc739fe0f12810
- Linux ca2477af20443184f685b747f38a05b27ccb0b68
- Linux f733176cb4c68ca03297f47f1a5acc7a9501b0b6
- Linux 016fe9695e6dc1322ddfe8c7dbc7b973483b4a24
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Linux and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Dec 3, 2026Published
- Dec 3, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Linux CVEsYou are reading CVE-2026-143370. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://git.kernel.org/stable/c/016fe9695e6dc1322ddfe8c7dbc7b973483b4a24
- Referencehttps://git.kernel.org/stable/c/21c0f420ded667ee644f78b901fc739fe0f12810
- Referencehttps://git.kernel.org/stable/c/ca2477af20443184f685b747f38a05b27ccb0b68
- Referencehttps://git.kernel.org/stable/c/f733176cb4c68ca03297f47f1a5acc7a9501b0b6
Data last checked: Dec 3, 2026 22:14 UTC