Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E8ED9537F3 for ; Tue, 27 Feb 2024 06:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016874; cv=none; b=bNEo58QhCwIsrkfTtCpHW/pzzKvg8MUcrjbFKM4wrZuVjYCo3krEAAn0owaePqg0dA+km0deRRZhQukskZw3VmsWFPegxDLgAs/CUFJne2nwdopxVrD6wWN5JDBKp4cum/qx26TX7URyar/vUATCIsYzthBtf0H24UCosTxTkro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016874; c=relaxed/simple; bh=UIQTlxrV4JWba5428ynWwYvSf4lwc5yhRCV7ibL6aR4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tB58Aw4NzRUHQ3FkO8lrDmOYgAUCpC7NsiKbvVYE4n6MH6u49J+BZfJXv115cPzwNoZEDvgzvH2qLJS+5oQ9v6vDQAybOeiIbj+8WaJObqj6g1kYra2ERH/sOPq54tGFwmHiaf64HvTSp76lsrLn20ByaWTl0mePuXi08TifGE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nTaW7264; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nTaW7264" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E818C433F1; Tue, 27 Feb 2024 06:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016873; bh=UIQTlxrV4JWba5428ynWwYvSf4lwc5yhRCV7ibL6aR4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nTaW7264f498/9AZNa8+ksK06Pg2og7+R0lJIamjN3/snfGL0O4XffftEcIk+pfjE jBFii/9IJNSjfLZ1ZHuznFQ+tKYqUb2p6TD/UxaHInwlCf26vPrxlb8CQYjw95rAZR pvnhlKnsHspLRnjwFSyl9GQB1ZLwBt7awkcJwXq8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46917: dmaengine: idxd: fix wq cleanup of WQCFG registers Date: Tue, 27 Feb 2024 07:54:11 +0100 Message-ID: <2024022710-CVE-2021-46917-99a4@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2121; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UIQTlxrV4JWba5428ynWwYvSf4lwc5yhRCV7ibL6aR4=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl324XeS89eqnr/CUPF5rvtIrFmH+WXfj14ZVVhhpZ2w dWs7wu5OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJh8Z5qexZIaddnAWv866 7Intlu2O8ZflGBjmqXD3vdzhfZFxq+fcjoaofWaTJp3KBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: fix wq cleanup of WQCFG registers A pre-release silicon erratum workaround where wq reset does not clear WQCFG registers was leaked into upstream code. Use wq reset command instead of blasting the MMIO region. This also address an issue where we clobber registers in future devices. The Linux kernel CVE team has assigned CVE-2021-46917 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit da32b28c95a7 and fixed in 5.10.32 with commit e5eb9757fe4c Issue introduced in 5.8 with commit da32b28c95a7 and fixed in 5.11.16 with commit f7dc8f561916 Issue introduced in 5.8 with commit da32b28c95a7 and fixed in 5.12 with commit ea9aadc06a9f Please see https://www.kernel.org or 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-2021-46917 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/idxd/device.c drivers/dma/idxd/idxd.h drivers/dma/idxd/sysfs.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/e5eb9757fe4c2392e069246ae78badc573af1833 https://git.kernel.org/stable/c/f7dc8f5619165e1fa3383d0c2519f502d9e2a1a9 https://git.kernel.org/stable/c/ea9aadc06a9f10ad20a90edc0a484f1147d88a7a