{"id":"CVE-2026-139526","summary":"dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()\n\nswitchtec_dma_free_desc() frees swdma_chan-\u003ehw_sq, hw_cq, and every\ndesc_ring[] entry without clearing the pointers afterward. If\nswitchtec_dma_alloc_chan_resources() fails partway through and calls\nit during unwind, then a later retry of alloc_chan_resources() fails\nin switchtec_dma_alloc_desc() before reallocating one of those\npointers, its own failure path calls switchtec_dma_free_desc() again\nand frees the same, already-freed pointers a second time.\n\nNULL out each pointer as it's freed so a subsequent call is a no-op\nfor anything already released.","modified":"2026-12-01T21:02:38.686700375Z","published":"2026-11-30T13:35:34.085Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139526.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/8cba9a0fb162748b6d5c73628d1713a2f895c972"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdfd76514bd11301f4e67d150485ab696c26d83d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139526.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139526"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}