CVE-2026-143370: ALSA: memalloc: Free the new pages when WC DMA mapping fails

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ALSA: memalloc: Free the new pages when WC DMA mapping fails

snddmawcalloc() keeps the newly allocated pages in a local variable, and snddmaallocdirpages() stores them in dmab->area only after ->alloc() returns. If dmamapsingle() fails, the error path passes dmab->area to dofreepages() 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, setmemorywb() warns about the zero address, and for buffers larger than a page freepagesexact() goes on to free the struct pages of the bogus addresses 4096, 8192 and so on. With CONFIGDEBUGVM that hits the VMBUGON() in freepages():

kernel BUG at mm/pagealloc.c:5600! RIP: 0010:freepagesexact+0xcb/0xd0 Call Trace: snddmawcalloc+0x14f/0x160 [sndpcm] snddmaallocdirpages+0x4f/0x80 [sndpcm]

This was reproduced on an x86 guest without swiotlb by allocating SNDRVDMATYPEDEVWC buffers for a device with a 24-bit streaming DMA mask, so that dmamapsingle() fails.

Free the pages that were just allocated.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.12.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  4. Compensating control

    In snd_dma_wc_alloc(), free the newly allocated pages when dma_map_single() fails.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

What conditions are needed to trigger this issue?

A caller must allocate an ALSA SNDRV_DMA_TYPE_DEV_WC buffer for a device whose DMA mapping fails in snd_dma_wc_alloc(). The reported reproduction used an x86 guest without swiotlb and a device with a 24-bit streaming DMA mask.

2

What is the practical impact when the DMA mapping fails?

The newly allocated pages can be leaked while retaining their write-combining attribute. The cleanup path may also call set_memory_wb() on a zero address and, for buffers larger than one page, attempt to free bogus addresses; with CONFIG_DEBUG_VM this can trigger a kernel BUG.

3

How can an administrator identify a possible occurrence?

Look for DMA mapping failures during ALSA write-combining DMA buffer allocation, followed by warnings related to set_memory_wb() and, on CONFIG_DEBUG_VM kernels, a VM_BUG_ON() in free_pages() with a stack trace involving free_pages_exact, snd_dma_wc_alloc, and snd_dma_alloc_dir_pages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203