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

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139525?

CVE-2026-139525 is a vulnerability in Linux, published on 30 Nov 2026.

Official description

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

dmaengine: switchtec-dma: fix resource leak in alloc_chan_resources

switchtec_dma_alloc_chan_resources() returns directly on any later failure, without ever freeing the descriptor rings and coherent DMA memory it just allocated. The dmaengine core does not call device_free_chan_resources() when device_alloc_chan_resources() fails, so the driver has to unwind its own partial state.

The device-removed check also runs after ring_active and comp_ring_active have already been set true, so a failure there left the channel marked active despite alloc_chan_resources() reporting failure.

Add an error-unwind path that disables the channel and frees the descriptor rings on every failure after allocation. ring_active and comp_ring_active are cleared under the same locks switchtec_dma_free_chan_resources() already uses, since the completion tasklet checks comp_ring_active under complete_lock before touching the completion ring, and a stale IRQ can still be in flight when this unwind path runs.

Which versions are affected by CVE-2026-139525?

How do I fix CVE-2026-139525?

Upgrade to a fixed version.

Is CVE-2026-139525 being exploited?

There is no known exploitation of CVE-2026-139525 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-139525, GHSA-jhwp-994x-268h, UBUNTU-CVE-2026-139525.

Is CVE-2026-139525 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free