CVE-2026-139526

Source
https://cve.org/CVERecord?id=CVE-2026-139526
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139526.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139526
Downstream
Published
2026-11-30T13:35:34Z
Modified
2026-12-01T21:02:38Z
Summary
dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139526.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
30eba9df76adf1294e88214dbf9cea402fa7af37
Fixed
8cba9a0fb162748b6d5c73628d1713a2f895c972
Fixed
bdfd76514bd11301f4e67d150485ab696c26d83d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139526.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139526.json"