CVE-2026-139526
publisheddmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux30eba9df76adf1294e88214dbf9cea402fa7af37 to < 8cba9a0fb162748b6d5c73628d1713a2f895c972 · 30eba9df76adf1294e88214dbf9cea402fa7af37 to < bdfd76514bd11301f4e67d150485ab696c26d83d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 30eba9df76adf1294e88214dbf9cea402fa7af37 to < 8cba9a0fb162748b6d5c73628d1713a2f895c972 (affected · git)30eba9df76adf1294e88214dbf9cea402fa7af37 to < bdfd76514bd11301f4e67d150485ab696c26d83d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a639296aabdeacfe5c7f49d1da1772b4edef5f1da25224991910aed4b1cd379c
- Ingested
- 30 Nov 2026, 13:42:24 UTC
- Source record
- Official CVE record