Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14D713E3160 for ; Tue, 6 Oct 2026 10:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282540; cv=none; b=t720VIxRMndwJK9JQwbF01btsJM2gy6O7HPfY6e0RjyTGlIyfuC+DxcYwclcbdFVHy1aAQ6IRIIouyamAciQiW3OzW4s9l1vqVmW333ZtWlkYONh65mFYTloRvQbwa1NPMuHaGXLWj7gYVz5HSAVLOZ9U9xjDi5928PfhX4H0M0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282540; c=relaxed/simple; bh=/RY5D5algUtKioyT3qwTg9VRxFKwLE8lldELfuJMS58=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ifYsp4TLzl2Cd+zoTpCLAIYVsV6BTzZbF4UMrioyTCA/i97g8vWaiqOwusjI3Av8GSFs4Bht9Ws3PooCRLx9yShQxtOltIUXyNj3LiPcIp2zCGaAclRidesw9OXndKedxpdQa4xKiNxLbMWlm3dsWaT8ikiZBcxvHm3GqxaOfIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iD9b2+5R; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iD9b2+5R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 155231F00899; Tue, 6 Oct 2026 10:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282538; bh=07HIy/16EEWvTXAYSzLZw+k/YniFVWDjJQSFdYvyHkk=; h=From:To:Cc:Subject:Date:Reply-To; b=iD9b2+5R86R5ajtTQH4g0UK/yqRPDQkJRpQzq4bHXRQzNzln/rOVQAZe/J4Ndi9jG aWwlIKp4VTpOHUb0/XPNnZHQDYqEV1RlOTMPQsnVt4QcMR+XQn4we95k22Xeki8pF5 oBqEqcoSUP2Surx5tjBuG+BR7+Kyvddnpbu1RvWk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98342: dmaengine: wait for RCU readers before releasing dma_device Date: Tue, 6 Oct 2026 10:47:23 +0200 Message-ID: <2026100617-CVE-2026-98342-7975@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4380; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DNFKzP75K0azRPpcbEfI6IFk3avHelW07rQWML672XI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtspOvcMlydXaea/1ho1znXXUr90VWccvsd7c41XbH x6/L7ioI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaivZthvqMYU8Ox7evqBZOW TYplbtqXsf73bYYFXS8bVU4Z2SRffKr58+91t9VbFl30BgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: dmaengine: wait for RCU readers before releasing dma_device dma_issue_pending_all() walks the dma_device_list with list_for_each_entry_rcu() under rcu_read_lock(). dma_device_release() unlinks the device with list_del_rcu() and then calls device->device_release() (which in many drivers, such as plx_dma.c, directly calls kfree()). Because there is no grace period between unlinking the device and freeing it, concurrent RCU readers in dma_issue_pending_all() can access the device after it has been freed. The lockless walk originally relied on clients holding a dmaengine reference to pin the provider module, and therefore the device, for as long as they might traverse the list. Commit 8ad342a86359 ("dmaengine: Add reference counting to dma_device struct") decoupled the dma_device lifetime from the module reference, so the device can now be released while a reader is still walking the list. Add synchronize_rcu() before the device is freed, so RCU readers are guaranteed to have finished. Keep it unconditional: providers that do not implement device_release() free the device themselves once dma_async_device_unregister() returns. This call will delay for a grace period with dma_list_mutex held, which is safe and only teardown path is delayed. The Linux kernel CVE team has assigned CVE-2026-98342 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 5.10.271 with commit ac8ce9f89638d6d79875cca7d8ae42566a9bde15 Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 5.15.222 with commit 14578c78405d51fa92e4ada4502a45f537c0fcb8 Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 6.1.189 with commit cbb3310a5167e868a5e763e32b9a23b4d50669ee Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 6.6.158 with commit 8577a5ec4f7e00443015ef99f646def093121a1b Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 6.12.112 with commit 4448a539a0c39141cccc67be6cacde0f35024313 Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 6.18.54 with commit fc1f4884f1d46fc7a8cee6e2997ecc9e8d1c7f77 Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 7.2.8 with commit 4aed7e47a10b94ea3c5171e8d1382081accd2e03 Issue introduced in 2.6.29 with commit 2ba05622b8b143b0c95968ba59bddfbd6d2f2559 and fixed in 7.3-rc4 with commit dc750422170a563c7a81f6e49d36bb02c62ae37f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98342 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/dma/dmaengine.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ac8ce9f89638d6d79875cca7d8ae42566a9bde15 https://git.kernel.org/stable/c/14578c78405d51fa92e4ada4502a45f537c0fcb8 https://git.kernel.org/stable/c/cbb3310a5167e868a5e763e32b9a23b4d50669ee https://git.kernel.org/stable/c/8577a5ec4f7e00443015ef99f646def093121a1b https://git.kernel.org/stable/c/4448a539a0c39141cccc67be6cacde0f35024313 https://git.kernel.org/stable/c/fc1f4884f1d46fc7a8cee6e2997ecc9e8d1c7f77 https://git.kernel.org/stable/c/4aed7e47a10b94ea3c5171e8d1382081accd2e03 https://git.kernel.org/stable/c/dc750422170a563c7a81f6e49d36bb02c62ae37f