{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "30eba9df76adf1294e88214dbf9cea402fa7af37"
            },
            {
              "fixed": "01b4ef445a756b265f47768ddaf1f33db3990f88"
            },
            {
              "fixed": "fd39726ab7096840cc9c9dea6dfba23834fc81f0"
            }
          ],
          "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-139524.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: switchtec-dma: fix channel leak on registration failure\n\nswitchtec_dma_chans_release() is called in three places but the\nunderlying memory is not freed in all of those places. In order to\nclean this up, introduce a switchtec_dma_chans_free() helper that\nwill free the memory.\n\nEnsure each call to switchtec_dma_chans_release() has a corresponding\nswitchtec_dma_chans_free() call. (The release in switchtec_dma_remove()\npairs with the free in switchtec_dma_release()).\n\nswdma_dev-\u003echan_cnt is now set to the number of channels that succeeded\nwhen one fails to initialise, so switchtec_dma_chans_free() can still\nbe used if not all channels succeed in being allocated.\n\nswitchtec_dma_chans_free() also removes each channel from\ndma_dev-\u003echannels before freeing it, since the channel status ISR\nwalks that list and would otherwise dereference freed memory.",
  "id": "CVE-2026-139524",
  "modified": "2026-11-30T14:45:46.693156871Z",
  "published": "2026-11-30T13:35:32.960Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/01b4ef445a756b265f47768ddaf1f33db3990f88"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd39726ab7096840cc9c9dea6dfba23834fc81f0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139524.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139524"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "dmaengine: switchtec-dma: fix channel leak on registration failure"
}