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 66B704B7A41 for ; Thu, 17 Sep 2026 16:34:06 +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=1789662847; cv=none; b=tjZwFFgyB1w51lCo6NtHkiG6YVS7/jmwwY0NLvY0NwNgJ7//iUInUWtQtn5pTpEpmQZ00b1KloEZW/klvssPtc2tLB3jiZF07UXqpRPPI5uWqEVGxW0+jv2zIIlHSRlwPICh544rcTxdTBLi0dWUVMdmhKSVv7S9FAW6f4vDBzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662847; c=relaxed/simple; bh=TictW0rCXIQuxbk/Zu/ysH+mWDq46zewVa1nGByZLEc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ji8ONjQMGnUQICnpgqrLRW7Tb3Crmr49DwTqJiXjKd+pAgoJzKPH1iH4GZtrEG35S3Utjxu8yZm90ZkdrjgyHZ1RAOcVh0LltdK/BLqCKsTxpyoioS/OanZ65w+4vG77uDh0ZhOu9dULMpG3syD7YMdw3mryJCCEhckxJWGaNh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KSYcD8kz; 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="KSYcD8kz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC8991F000FF; Thu, 17 Sep 2026 16:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662846; bh=ASRKQZ7udaVzd+seFyoFHy5iiO54gKms8d3NCkKYPYc=; h=From:To:Cc:Subject:Date:Reply-To; b=KSYcD8kzBTWQ4fCfT+yfnVSCEM1C4TD1PCzmMAOjFyxcrNd8revIovmZyhC0ZZEhy zRgXYAoMEDKcFEm71uizLxEMUzyMpxy8EfKiwCPMOU1h5PntX1P0M0pt4dt0TFz2OE U2wzd+wwDCtZbUisjJIJhsN23hR9HBbX0ywVSMgc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93042: dmaengine: dw-edma: Terminate all descriptors without callbacks Date: Thu, 17 Sep 2026 17:15:21 +0100 Message-ID: <2026091733-CVE-2026-93042-6ba3@gregkh> X-Mailer: git-send-email 2.55.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=3646; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RotvsYTZ7yjlofZthiLoX3MqcqCr2vRAWFpBSrxQx38=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBPZusGl9/UnIc/fHjAVL1Hfe4Hf/ZcQ/x66c4/r0V cvYjiSLdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHOIZFtzUXJEmJrSJsfdL dpfTYW3juepFcxgWnJshcDKrVu9yF09slt7bPssz2xasAwA= 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: dw-edma: Terminate all descriptors without callbacks The DMA Engine client documentation says in the "Terminate APIs" section of Documentation/driver-api/dmaengine/client.rst: "No callback functions will be called for any incomplete transfers." dw-edma instead calls vchan_cookie_complete() when a deferred STOP reaches the interrupt handler. This schedules a callback for the active descriptor and leaves other issued or submitted descriptors queued. A late callback after dmaengine_terminate_sync() can dereference client state that has already been freed, while leftover descriptors may later restart into reused buffers or leak. Move all issued and submitted descriptors to the terminated list whenever termination completes. For a pending STOP, do this from both the DONE and ABORT paths. Complete their cookies in order without scheduling callbacks. A STOP can remain pending until the running transfer raises an interrupt. Make device_synchronize() wait for such a pending STOP to complete before releasing terminated descriptors. Reuse it from free_chan_resources(), then release the remaining virt-dma resources. Sleep instead of busy-polling while waiting, and warn if the existing timeout expires. The Linux kernel CVE team has assigned CVE-2026-93042 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.6.157 with commit 65e387b95d3855aa894ac729e1778e5bcb9083cb Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.12.110 with commit 4793f9099a1cadf4e37f3a03d524af6bce88a0ea Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.18.52 with commit be87d86537de7ea6fd025f41033d2faff880973f Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 7.2.6 with commit f3ec6702a1d216be61f692cc0a983d6c8fb5ebf7 Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 7.3-rc1 with commit 99109a51efd28c9a661fbfb9469b023c517b31d1 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-93042 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/dw-edma/dw-edma-core.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/65e387b95d3855aa894ac729e1778e5bcb9083cb https://git.kernel.org/stable/c/4793f9099a1cadf4e37f3a03d524af6bce88a0ea https://git.kernel.org/stable/c/be87d86537de7ea6fd025f41033d2faff880973f https://git.kernel.org/stable/c/f3ec6702a1d216be61f692cc0a983d6c8fb5ebf7 https://git.kernel.org/stable/c/99109a51efd28c9a661fbfb9469b023c517b31d1