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 5369B5339B for ; Tue, 27 Feb 2024 06:54:42 +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=1709016882; cv=none; b=IjflQemmk6XHbhcArc/+hWuknMzC+Urt6WxufB/89o0yemxsmeil73YQZywHOSbkD/5Mn8OpC4HdGIsZKTGgri6c8v37HXExopmftncDWtWIqGpQp6wTmgrH7V8yriRi8eKdyH4hXc9nvlwwaSlvxAm7xk/ourXoSRVsxFWZEPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016882; c=relaxed/simple; bh=CGAQlLcZL3Fkd4/i8VnZufRJOFDc1CCorX/apKFcR8k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yt1hNSGWcCN1hYHWyiQZRC3OCwlIWO4fHgLC0AujHp+rlf+BtDJoOQI9Lpdsrr+SxtBRQK2Mi1pCCuJiYhn7K1VfRFKgIiuPveHAmg7biLCPXecpVxCoxoYW9AYSwDjkXmIVfw1qRzO4kwvQziMqEFAwaFnhrkK1YJqdM30ntzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CfOzoFgv; 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="CfOzoFgv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AB7CC433C7; Tue, 27 Feb 2024 06:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016881; bh=CGAQlLcZL3Fkd4/i8VnZufRJOFDc1CCorX/apKFcR8k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CfOzoFgvnSKRBWgwMLEjy8a+DjBfflQsb8QDkxcZUQPZ6MwDe8ByAlbAiaRgHtXU9 PDYESmN9r5Z1WN6TI3Hr9b2VIsMUBfDu+RL9TescTRQnSgkXE8lZD9W3wWu1eihhou fqfEzpPtGTbRMYGYTZ6kEEOpVvHWCceSkgvzNCLA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46920: dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback Date: Tue, 27 Feb 2024 07:54:12 +0100 Message-ID: <2024022711-CVE-2021-46920-062e@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=2027; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CGAQlLcZL3Fkd4/i8VnZufRJOFDc1CCorX/apKFcR8k=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl324X3LpLiZDepD1cOehn7f6q8tmd6+y9J2Z9VMYVhf lyW/Jc6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCKaMxkWLNiSqOF37Irjv2U7 8k5HXa38kqBewrDg0pKFpUk7rzE7XjIrfR756YPwlN0WAA== 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 clobbering of SWERR overflow bit on writeback Current code blindly writes over the SWERR and the OVERFLOW bits. Write back the bits actually read instead so the driver avoids clobbering the OVERFLOW bit that comes after the register is read. The Linux kernel CVE team has assigned CVE-2021-46920 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit bfe1d56091c1 and fixed in 5.10.32 with commit a5ad12d5d69c Issue introduced in 5.6 with commit bfe1d56091c1 and fixed in 5.11.16 with commit 02981a44a0e4 Issue introduced in 5.6 with commit bfe1d56091c1 and fixed in 5.12 with commit ea941ac294d7 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-46920 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/irq.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/a5ad12d5d69c63af289a37f05187a0c6fe93553d https://git.kernel.org/stable/c/02981a44a0e402089775416371bd2e0c935685f8 https://git.kernel.org/stable/c/ea941ac294d75d0ace50797aebf0056f6f8f7a7f