{"id":"CVE-2026-139526","aliases":["CVE-2026-139526"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()","summary":"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->hw_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->hw_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.","source":"cvelist"}],"published":"2026-11-30T13:35:34.085Z","modified":"2026-11-30T14:19:29.007Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"30eba9df76adf1294e88214dbf9cea402fa7af37","fixed":"8cba9a0fb162748b6d5c73628d1713a2f895c972","status":"affected"},{"type":"git","introduced":"30eba9df76adf1294e88214dbf9cea402fa7af37","fixed":"bdfd76514bd11301f4e67d150485ab696c26d83d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8cba9a0fb162748b6d5c73628d1713a2f895c972","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bdfd76514bd11301f4e67d150485ab696c26d83d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139526","url":"https://www.cve.org/CVERecord?id=CVE-2026-139526","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:34.085Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139526","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139526","licence":"Public domain","modified":"2026-11-30T14:19:29.007Z"}],"updatedAt":"2026-11-30T14:33:38.463Z","epss":{"score":0.0019,"percentile":0.09063,"date":"2026-12-01T12:00:22.000Z"}}