From mboxrd@z Thu Jan 1 00:00:00 1970 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 058F02C1A2 for ; Wed, 28 Feb 2024 08:17:37 +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=1709108257; cv=none; b=XGcw4+3BrbCe+8B5ayUniI0+A7JjyZaPfMiI6bInBuaK00PK7I6m8jl61bHohvWUVf3/1dX+ZIiBkz693YMa5QH2X6kEF6yH3i/3MK238HkkFs8b5y9YDKUnKL7JpQdmozRRAFk+fu7W2bh6lxlV+jb/3oOKv69ZA6Co4gQbHNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108257; c=relaxed/simple; bh=jfSSxnP58H1I12/AITX8T04iWLGQxsL+toXGQlLmysg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QftWMoGzjiE/rcpireVAL86425q9hzcusZ3t9Np/r2acpkxY+y5G4EM5tuexRRPSSX5jXygeAtmaXyC2mpyhN6L741di/36KC5QImnYQeEJDJV5gtQMACnIh7Ibys4F86p0hDZ1T7LCtugHe4FF7g2JtvA7mJ8OxZAloP6JOdlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ds1luqz2; 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="Ds1luqz2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A130C43394; Wed, 28 Feb 2024 08:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108256; bh=jfSSxnP58H1I12/AITX8T04iWLGQxsL+toXGQlLmysg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ds1luqz2rdYxUcOC0S+CnyFdW1l8buifoqwblvL2Ou0tWwv/1sNft3FRImGZoAVQk gHju6xmjuA16v4W3XGxklIhbpBl7WgfgS3YEZcHDp8Zoz6+ERD2koE01TBkJcu7A75 JNo+QmRnTlMo4XECV+I0arGSuTLFYJ/AE6fqFbSY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47035: iommu/vt-d: Remove WO permissions on second-level paging entries Date: Wed, 28 Feb 2024 09:15:23 +0100 Message-ID: <2024022836-CVE-2021-47035-e152@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=2722; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RMRWu/s6tS/VZBx4UDlFE6FSo/QPLFif+tzx82mB5Lw=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3Xue8d5ny4Ow6Pq7YQ7Mme+y578y1Q9tzzvo5pxb0y +seffuJpSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8kWXYX5ZqrB78MzZ6Rln Nsnu23fkeFPMuTqGBcvsL+54rBYwf8mSR4sWVTc2ym1KvwAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Remove WO permissions on second-level paging entries When the first level page table is used for IOVA translation, it only supports Read-Only and Read-Write permissions. The Write-Only permission is not supported as the PRESENT bit (implying Read permission) should always set. When using second level, we still give separate permissions that allows WriteOnly which seems inconsistent and awkward. We want to have consistent behavior. After moving to 1st level, we don't want things to work sometimes, and break if we use 2nd level for the same mappings. Hence remove this configuration. The Linux kernel CVE team has assigned CVE-2021-47035 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit b802d070a52a1 and fixed in 5.10.37 with commit c848416cc05a Issue introduced in 5.6 with commit b802d070a52a1 and fixed in 5.10.38 with commit 89bd62079870 Issue introduced in 5.6 with commit b802d070a52a1 and fixed in 5.11.21 with commit 25faff781389 Issue introduced in 5.6 with commit b802d070a52a1 and fixed in 5.12.4 with commit 66c24699f266 Issue introduced in 5.6 with commit b802d070a52a1 and fixed in 5.13 with commit eea53c581688 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-47035 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/iommu/intel/iommu.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/c848416cc05afc1589edba04fe00b85c2f797ee3 https://git.kernel.org/stable/c/89bd620798704a8805fc9db0d71d7f812cf5b3d2 https://git.kernel.org/stable/c/25faff78138933244c678c7fc78f7c0340fa04a0 https://git.kernel.org/stable/c/66c24699f266ff310381a9552d3576eea8ad6e20 https://git.kernel.org/stable/c/eea53c5816889ee8b64544fa2e9311a81184ff9c