CVE-2026-143370

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143371In the Linux kernel, the following vulnerability has been resolved: net: ipa: Fix double free of the interrupt structure on config error SCVE-2026-143372In the Linux kernel, the following vulnerability has been resolved: tipc: reject attaching bearer of different media to the same occupied dCVE-2026-143373In the Linux kernel, the following vulnerability has been resolved: scsi: target: Validate REGISTER AND MOVE TransportID length REGISTER ACVE-2026-143374In the Linux kernel, the following vulnerability has been resolved: ptp: unwind partially completed virtual clock creation n_vclocks_storeCVE-2026-143375In the Linux kernel, the following vulnerability has been resolved: ptp: drain virtual clock sysfs operations before unregistering childrenCVE-2026-143376In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mtk_wed: free up rings during detach During __mtk_wed_dCVE-2026-143377In the Linux kernel, the following vulnerability has been resolved: bpf: Drop percpu_counter from the htab element count The element countCVE-2026-143378In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix double free of bitmaps on clone failure btrfs_clone_CVE-2026-143379In the Linux kernel, the following vulnerability has been resolved: btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is CVE-2026-143380In the Linux kernel, the following vulnerability has been resolved: btrfs: scrub: fix lost error return value when scrubbing raid56 parity CVE-2026-143381In the Linux kernel, the following vulnerability has been resolved: x86/ftrace: Mark jmp mode by clearing bit 63 of trampoline address SinCVE-2026-143382In the Linux kernel, the following vulnerability has been resolved: seg6: fix transport header for inner IPv4 with IP options The End.DT4,
CVE-2026-143370: Unscored | Vulnix