# CVE-2026-139526: dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:34.085Z
- Modified: 2026-11-30T14:19:29.007Z
- Assigned by: Linux

## Description

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

dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()

switchtec_dma_free_desc() frees swdma_chan->hw_sq, hw_cq, and every
desc_ring[] entry without clearing the pointers afterward. If
switchtec_dma_alloc_chan_resources() fails partway through and calls
it during unwind, then a later retry of alloc_chan_resources() fails
in switchtec_dma_alloc_desc() before reallocating one of those
pointers, its own failure path calls switchtec_dma_free_desc() again
and frees the same, already-freed pointers a second time.

NULL out each pointer as it's freed so a subsequent call is a no-op
for anything already released.

(As written by CVE List.)

## Affected

- Linux Linux: from 30eba9df76adf1294e88214dbf9cea402fa7af37 before 8cba9a0fb162748b6d5c73628d1713a2f895c972; from 30eba9df76adf1294e88214dbf9cea402fa7af37 before bdfd76514bd11301f4e67d150485ab696c26d83d; 7.1 (not affected: before 7.1; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8cba9a0fb162748b6d5c73628d1713a2f895c972>
- <https://git.kernel.org/stable/c/bdfd76514bd11301f4e67d150485ab696c26d83d>

## Sources

- CVE List: [CVE-2026-139526](https://www.cve.org/CVERecord?id=CVE-2026-139526), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139526](https://nvd.nist.gov/vuln/detail/CVE-2026-139526), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139526 · Whole record: https://cve.day/CVE-2026-139526.json · Rebuilt by cve.day 2026-11-30T14:33:38.463Z
