dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 30eba9df76adf1294e88214dbf9cea402fa7af37 to before 8cba9a0fb162748b6d5c73628d1713a2f895c972 Affected30eba9df76adf1294e88214dbf9cea402fa7af37 to before bdfd76514bd11301f4e67d150485ab696c26d83d Affected |
| Linux Linux | 7.1 Affectedbefore 7.1 Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.