CVE-2026-139525: dmaengine: switchtec-dma: fix resource leak in alloc_chan_resources

Published Nov 30, 2026
·
Updated

dmaengine: switchtec-dma: fix resource leak in allocchanresources

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.1.0<7.3.6
7.3.6
debian/linux<7.3.6-1
7.3.6-1
debian/linux
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7.3.6
  2. Upgrade

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

    Fixed in 7.3.6-1
  3. Compensating control

    In switchtec_dma_alloc_chan_resources(), add an error-unwind path for failures after allocation: disable the channel, free the descriptor rings and coherent DMA memory, and clear ring_active and comp_ring_active under the same locks used by switchtec_dma_free_chan_resources() so the completion tasklet and any in-flight IRQ cannot access the completion ring.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which deployments are affected?

The issue applies to Linux kernel deployments using the switchtec-dma driver. It occurs when channel-resource allocation fails after descriptor rings and coherent DMA memory have been allocated, including when the device-removed check fails at that stage.

2

Why is normal dmaengine cleanup insufficient here?

The dmaengine core does not call device_free_chan_resources() when device_alloc_chan_resources() fails. The driver therefore must release its own partially allocated resources during the failure path.

3

What incorrect state can remain after a failed allocation?

Before the fix, descriptor rings and coherent DMA memory could remain allocated, and ring_active and comp_ring_active could remain set despite allocation reporting failure. A stale interrupt could still be in flight, so the active flags must be cleared using the locks used by normal channel-resource cleanup.

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