{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "30eba9df76adf1294e88214dbf9cea402fa7af37"
            },
            {
              "fixed": "8cba9a0fb162748b6d5c73628d1713a2f895c972"
            },
            {
              "fixed": "bdfd76514bd11301f4e67d150485ab696c26d83d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.1.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139526.json"
  },
  "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.",
  "id": "CVE-2026-139526",
  "modified": "2026-12-01T20:45:42.345576077Z",
  "published": "2026-11-30T13:35:34.085Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "dmaengine: switchtec-dma: fix double-free in switchtec_dma_free_desc()"
}