{"id":"CVE-2026-139524","aliases":["CVE-2026-139524"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: switchtec-dma: fix channel leak on registration failure","summary":"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->chan_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->channels before freeing it, since the channel status ISR\nwalks that list and would otherwise dereference freed memory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->chan_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->channels before freeing it, since the channel status ISR\nwalks that list and would otherwise dereference freed memory.","source":"cvelist"}],"published":"2026-11-30T13:35:32.960Z","modified":"2026-11-30T14:19:28.783Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"30eba9df76adf1294e88214dbf9cea402fa7af37","fixed":"01b4ef445a756b265f47768ddaf1f33db3990f88","status":"affected"},{"type":"git","introduced":"30eba9df76adf1294e88214dbf9cea402fa7af37","fixed":"fd39726ab7096840cc9c9dea6dfba23834fc81f0","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/01b4ef445a756b265f47768ddaf1f33db3990f88","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd39726ab7096840cc9c9dea6dfba23834fc81f0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139524","url":"https://www.cve.org/CVERecord?id=CVE-2026-139524","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:32.960Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139524","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139524","licence":"Public domain","modified":"2026-11-30T14:19:28.783Z"}],"updatedAt":"2026-11-30T14:33:25.300Z","epss":{"score":0.0019,"percentile":0.09066,"date":"2026-12-01T12:00:22.000Z"}}