CVE-2026-139526
not scored yetdmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
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.
- Published
- 30 Nov 2026
- Last modified
- 30 Nov 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= 30eba9df76adf1294e88214dbf9cea402fa7af37, < 8cba9a0fb162748b6d5c73628d1713a2f895c972; >= 30eba9df76adf1294e88214dbf9cea402fa7af37, < bdfd76514bd11301f4e67d150485ab696c26d83d | 8cba9a0fb162748b6d5c73628d1713a2f895c972, bdfd76514bd11301f4e67d150485ab696c26d83d |
| CVE List | Linux | Linux | = 7.1 |
References
- https://git.kernel.org/stable/c/8cba9a0fb162748b6d5c73628d1713a2f895c972
- https://git.kernel.org/stable/c/bdfd76514bd11301f4e67d150485ab696c26d83d
History
- 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)