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 C547E52F7C for ; Tue, 27 Feb 2024 06:54:44 +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=1709016884; cv=none; b=IM3EjNqT4ceuNCDIkCQiH7kNunh3gKc+Ptp2FCVB4/PCUfqb2m94shJmxqmjpbV8jB+rAJjxsxnT4Ha5nHPJF38pf+chz4Lp9TSGQR9UILomrAZ9fNfj4CO4K/WA9lKmZFpk8Y8szTMGP1FvwY9AMSS6YjAJVVM16fEd5ZCRhAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016884; c=relaxed/simple; bh=alaKOTvg1gJKwq7m0RQPiEcDSq78ixtbicymwTQS61E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dTnJauf/4S4s4IAlyM2814JkFPD/js3njeGJIHtnmBg3hjPyGXQxMFmdrbcObEXTSLK+7Cp/apjHTtp/EXaafMMi/bZTn0vpvbL82HrQysAKNoOM/dB8JqbnonUi68sLUMrkaWJEZ714fNiCjFGkXxz27M5+bRldxKnrYLCqP1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SZQTEG5O; 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="SZQTEG5O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 532FEC433F1; Tue, 27 Feb 2024 06:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016884; bh=alaKOTvg1gJKwq7m0RQPiEcDSq78ixtbicymwTQS61E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SZQTEG5OLpUGCuoHa3tCUm/TaHzpX6dqW+0X3ebvA+Nn5KuMzgZShzdO9jQZRS2nG 5HNjAV0HBU0Shez+v358+Rs6NpTuUfRjj9t6x5LX5wIwvKUdlvoDrF2YYE3/W7VrBj 1CfQYNo7w4mjN2wMnuxmHF9BAwcBnMd0CEQ2aHHQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46919: dmaengine: idxd: fix wq size store permission state Date: Tue, 27 Feb 2024 07:54:11 +0100 Message-ID: <2024022710-CVE-2021-46919-950c@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=1986; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=alaKOTvg1gJKwq7m0RQPiEcDSq78ixtbicymwTQS61E=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl324Ub1oTY78+Y9IR5l8gOLpaCAvHbM7WDjlx4Lufm7 ROyLLG/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSnsQwV4ph5c/gb+8Wcp63 lanTu7nzgxvnMYZ5WiKtci92FzNfXbD7M7fwjIR73TtSAQ== 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 size store permission state WQ size can only be changed when the device is disabled. Current code allows change when device is enabled but wq is disabled. Change the check to detect device state. The Linux kernel CVE team has assigned CVE-2021-46919 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit c52ca478233c and fixed in 5.10.32 with commit 4ecf25595273 Issue introduced in 5.6 with commit c52ca478233c and fixed in 5.11.16 with commit 05b7791c4c4a Issue introduced in 5.6 with commit c52ca478233c and fixed in 5.12 with commit 0fff71c5a311 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-46919 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/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/4ecf25595273203010bc8318c4aee60ad64037ae https://git.kernel.org/stable/c/05b7791c4c4aa8304368fdc55ae911f6b34e7281 https://git.kernel.org/stable/c/0fff71c5a311e1264988179f7dcc217fda15fadd