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 9C4C2537FA for ; Tue, 27 Feb 2024 06:54:36 +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=1709016876; cv=none; b=IKfp+cjY1phb5I4uX3MrN8eKHOCU4+dc0C9qZa/62OdpFG1O4uT6buwH7vqKqHOZ92e79kcWEQMDA38BGIxE8TIJ0eA6v9PBbVmt246cgfBw2G7ImWzYfiquXgqgBX9LJuie//uaizpfuuC/NzzMcRG5QSkENOcc7gepsLrU+IY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016876; c=relaxed/simple; bh=w0guXP0RsBcxKly5WJ9k9rlxE84Lq7vAq2PgtSX0x6M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V3r9qLw9WNUutDmzMzwSUNNGmvvP67PVLEIRAxBQ0VULYtWAcqOLr2Emyv65rNMjGBlAvsIOLuFcfvXU1HLdXY7aJLWrxbyw2kUIx1Qo+HoMCWYM/O02JsT6wrb5NnqPaPMUxabJlq0BX2a8cKNbXvt1EiUCJgXLvqjFbub0fJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ge82EBzn; 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="Ge82EBzn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2258EC433C7; Tue, 27 Feb 2024 06:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016876; bh=w0guXP0RsBcxKly5WJ9k9rlxE84Lq7vAq2PgtSX0x6M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ge82EBznrOvpJNBkS5DtR/pyUK7qI5b/4+dBwSG9iyq08/Y1f79VWEa29PDQZAuHs h2gsdHFg6ijqcS31JmuXigGiNx90fjpWv2JRbIKGkjTiHZd2JhumVJZzKNa3AOjvCn S1cdU8h4lYhM2aQi8TiXxXk+HHQaVdVWYnCFfuds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46918: dmaengine: idxd: clear MSIX permission entry on shutdown Date: Tue, 27 Feb 2024 07:54:11 +0100 Message-ID: <2024022710-CVE-2021-46918-1dd0@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=1922; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w0guXP0RsBcxKly5WJ9k9rlxE84Lq7vAq2PgtSX0x6M=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl324V2rZ78+J9/54GVIduf8knH9j11Vfp75/o903rt+ StE773X7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5CsyzA86mcrvvej2dq9L TqHHXobp/eYS2sow37/w2iStzbFbkgIsjglGagQyPuC3BAA= 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: clear MSIX permission entry on shutdown Add disabling/clearing of MSIX permission entries on device shutdown to mirror the enabling of the MSIX entries on probe. Current code left the MSIX enabled and the pasid entries still programmed at device shutdown. The Linux kernel CVE team has assigned CVE-2021-46918 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 8e50d392652f and fixed in 5.11.16 with commit c84b8982d7aa Issue introduced in 5.11 with commit 8e50d392652f and fixed in 5.12 with commit 6df0e6c57dfc 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-46918 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/init.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/c84b8982d7aa9b4717dc36a1c6cbc93ee153b500 https://git.kernel.org/stable/c/6df0e6c57dfc064af330071f372f11aa8c584997