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 58B6D1DD0EC for ; Tue, 5 Nov 2024 17:07:56 +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=1730826476; cv=none; b=STHKO9Q5ndEA3Ynaj/H1uS/8HHjIBeFBikjMnJUhDA1wVameaPxHIm7ppx6vIRBlS+6DW3Dq+ccTjhACS4/YhV5Xc3Rsz3blWftdln6v9TWHfLeRSeZas6wD8foiHspZu9fB+cBoBU0layf35VX4OAkY+X7z2B6VXrwCzMVLus4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826476; c=relaxed/simple; bh=QC7vfCB2ZthuCrRnJ9LOiVnGc1sE+FJHWipuzR3iZa8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cmoc6vIu4AHqeUliJUIa55rIWFoMX4i/XPpbW+K+QEJ6mP3n6kJykDM7FequoyphHew8Q24rKx9PFv9BOIwHY3NB60b8wwkp5ipaXZJMISHibwltBhBN8JdXjp5EmJIEcOmwHysq+YTmAmcIiV40wRZMIo+sCQ4eyGhw3hQLpaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JWR1oog9; 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="JWR1oog9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C054EC4CECF; Tue, 5 Nov 2024 17:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826476; bh=QC7vfCB2ZthuCrRnJ9LOiVnGc1sE+FJHWipuzR3iZa8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JWR1oog93OKuz4PZPZX7j7MHGvkI+HtchlWplggxaI2HJxQbfoXyYn83AsErJSzWS pVUxFu18Y3NuQEGQMIK+q8KjEVIVGqVd6s7mynVucBmltQph8WBI32bI2Ae2Aj4lS1 YUGuxvAmFCKko/oOnsi9pl8p8qDOr2zl17oQms3w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50101: iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices Date: Tue, 5 Nov 2024 18:07:30 +0100 Message-ID: <2024110526-CVE-2024-50101-d1bb@gregkh> X-Mailer: git-send-email 2.47.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=2538; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QC7vfCB2ZthuCrRnJ9LOiVnGc1sE+FJHWipuzR3iZa8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlaAefsnRwseQ6XtapyvVH4O+dy3gqnqZnrb0WutYqf+ Pe4X/icjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI7BuGeUonD2rcOL5KscCj ftPF/67r6pJ+BzHMUxdNNDoTLeWg23f1qZ6Mc3TiFOt5AA== 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: iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices Previously, the domain_context_clear() function incorrectly called pci_for_each_dma_alias() to set up context entries for non-PCI devices. This could lead to kernel hangs or other unexpected behavior. Add a check to only call pci_for_each_dma_alias() for PCI devices. For non-PCI devices, domain_context_clear_one() is called directly. The Linux kernel CVE team has assigned CVE-2024-50101 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.142 with commit 9807860f6ad4 and fixed in 5.15.169 with commit 0bd9a30c22af Issue introduced in 6.1.66 with commit 59862b869275 and fixed in 6.1.114 with commit cbfa3a83eba0 Issue introduced in 6.6.5 with commit 48f2183a4f9d and fixed in 6.6.58 with commit fe2e0b6cd00a Issue introduced in 6.7 with commit 9a16ab9d6402 and fixed in 6.11.5 with commit 04d6826ba7ba Issue introduced in 6.7 with commit 9a16ab9d6402 and fixed in 6.12-rc4 with commit 6e02a277f1db Please see https://www.kernel.org for 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-2024-50101 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/0bd9a30c22afb5da203386b811ec31429d2caa78 https://git.kernel.org/stable/c/cbfa3a83eba05240ce37839ed48280a05e8e8f6c https://git.kernel.org/stable/c/fe2e0b6cd00abea3efac66de1da22d844364c1b0 https://git.kernel.org/stable/c/04d6826ba7ba81213422276e96c90c6565169e1c https://git.kernel.org/stable/c/6e02a277f1db24fa039e23783c8921c7b0e5b1b3