{"id":"CVE-2026-98344","aliases":["CVE-2026-98344"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: Fix device kref underflow in dma_chan_put()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: Fix device kref underflow in dma_chan_put()\n\ndma_chan_get() takes chan->device->ref only on the slow path:\n\n\t/* no kref on fast path */\n\tif (chan->client_count) {\n\t\t__module_get(owner);\n\t\tchan->client_count++;\n\t\treturn 0;\n\t}\n\tif (!try_module_get(owner))\n\t\treturn -ENODEV;\n\tif (!dma_device_get(chan->device)) { // calls kref_get_unless_zero()\n\ndma_chan_put() drops the ref unconditionally, so every fast-path\nget/put pair drops one extra device reference.\n\nThe bug fires when two conditions hold together: a non-private\nprovider has a persistent client holding chan->client_count > 0\nand another client cycles dmaengine_get()/dmaengine_put().\nWhen the kref hits zero, the subsequent dma_find_channel() returns\nNULL even though the provider module is still loaded.\n\nFix this by dropping device->ref only on the last put, matching the\nsingle slow-path get.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: Fix device kref underflow in dma_chan_put()\n\ndma_chan_get() takes chan->device->ref only on the slow path:\n\n\t/* no kref on fast path */\n\tif (chan->client_count) {\n\t\t__module_get(owner);\n\t\tchan->client_count++;\n\t\treturn 0;\n\t}\n\tif (!try_module_get(owner))\n\t\treturn -ENODEV;\n\tif (!dma_device_get(chan->device)) { // calls kref_get_unless_zero()\n\ndma_chan_put() drops the ref unconditionally, so every fast-path\nget/put pair drops one extra device reference.\n\nThe bug fires when two conditions hold together: a non-private\nprovider has a persistent client holding chan->client_count > 0\nand another client cycles dmaengine_get()/dmaengine_put().\nWhen the kref hits zero, the subsequent dma_find_channel() returns\nNULL even though the provider module is still loaded.\n\nFix this by dropping device->ref only on the last put, matching the\nsingle slow-path get.","source":"cvelist"}],"published":"2026-10-06T08:46:33.997Z","modified":"2026-10-19T10:18:36.827Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"036b527f92570206da4b8c40b38f8d689e29d0f3","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"5fb1797a8c9485e40e5492fa0338ab5c7d1f3fef","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"57f7f1c6827be7d8f80feca48d2125fb91c6f6ed","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"7c3f4ce651d43705f9ec7f778f642a90d5ff4fba","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"de2677e57d3161390d8a508f08cddec6ef7e4b23","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"1a0d9b406febf23054ad595fd47b29325e70fb2d","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"77906ac448d2fa81fa710ae26c0e591ebdc81154","status":"affected"},{"type":"git","introduced":"8ad342a863590b24ce77681b7e081363fb3333f7","fixed":"44dab659064eb5c10adb0306510eebe848ed592d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/036b527f92570206da4b8c40b38f8d689e29d0f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5fb1797a8c9485e40e5492fa0338ab5c7d1f3fef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57f7f1c6827be7d8f80feca48d2125fb91c6f6ed","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c3f4ce651d43705f9ec7f778f642a90d5ff4fba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de2677e57d3161390d8a508f08cddec6ef7e4b23","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a0d9b406febf23054ad595fd47b29325e70fb2d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77906ac448d2fa81fa710ae26c0e591ebdc81154","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44dab659064eb5c10adb0306510eebe848ed592d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98344","url":"https://www.cve.org/CVERecord?id=CVE-2026-98344","licence":"CVE Terms of Use","modified":"2026-10-19T09:17:55.263Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98344","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98344","licence":"Public domain","modified":"2026-10-19T10:18:36.827Z"}],"updatedAt":"2026-11-25T22:59:42.336Z","epss":{"score":0.00177,"percentile":0.07534,"date":"2026-12-01T12:00:22.000Z"}}