{"id":"CVE-2026-98343","summary":"dmaengine: fix use-after-free in dma_chan_put() and dma_release_channel()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: fix use-after-free in dma_chan_put() and dma_release_channel()\n\nWhen dma_device_put() drops the last reference on chan-\u003edevice-\u003eref,\ndma_device_release() runs and may free the dma_device along with its\nchannels.\n\ndma_chan_put() then still reads chan-\u003edevice-\u003eowner via\ndma_chan_to_owner() for the trailing module_put(). KASAN catches it:\n\n\tslab-use-after-free in dma_chan_put+0x3e6/0x4c0\n\tRead of size 8 by task insmod/6319\n\tFreed by task 6319:\n\t  kfree+0x225/0x470\n\t  dma_chan_put+0x395/0x4c0\n\t  dmaengine_put+0xf8/0x160\n\nCache the module owner in dma_chan_put() before the put so the trailing\nmodule_put() does not need chan-\u003edevice.","modified":"2026-10-08T02:52:57.969051316Z","published":"2026-10-06T08:46:33.196Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98343.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02bd02c585293634b213b142cba63cbf77891f6b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/07eb075b60d565a5e465a1945a80cc62807492ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6cf31716b77a71c0d634106f4f3951377b8dc6dc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/855187a88bdf762c46b6849307597e3e02bfc1d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9319dd64d5cdef851841c091f30424faa2284c31"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b92c502595336a3cc5bb7a060170891366745a5d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9780b601438137494b407eb4301bb3de2587ac9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e873c74132f0c5f1452816cd9bb26208f0bba1e1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98343.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98343"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8ad342a863590b24ce77681b7e081363fb3333f7"},{"fixed":"b92c502595336a3cc5bb7a060170891366745a5d"},{"fixed":"855187a88bdf762c46b6849307597e3e02bfc1d9"},{"fixed":"c9780b601438137494b407eb4301bb3de2587ac9"},{"fixed":"07eb075b60d565a5e465a1945a80cc62807492ad"},{"fixed":"9319dd64d5cdef851841c091f30424faa2284c31"},{"fixed":"6cf31716b77a71c0d634106f4f3951377b8dc6dc"},{"fixed":"02bd02c585293634b213b142cba63cbf77891f6b"},{"fixed":"e873c74132f0c5f1452816cd9bb26208f0bba1e1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98343.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.6.0"},{"fixed":"5.10.271"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.189"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98343.json"}}],"schema_version":"1.9.0"}