Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8CA363F166A for ; Wed, 27 May 2026 12:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884728; cv=none; b=m2WDm1i2JDFh8ENSsW63GUkyB9BDM8tBFT61GYVXuKgg6YtNv9+sCiNU5Lt8XQVmM1D6eYiHX5xFzvqGrmC3TcLgF0kcv29TMsxU2xJbGW2OLuU2GFPGYJzODjyNHqXNJvxj5akFeNA/6gTseDzpm02XlcNt9hdX0O5yEQr2VtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884728; c=relaxed/simple; bh=iLcHZ81cTSun2LrjayjEi2IylXSMf3x+XELC5BfauZU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=IVPqtUJEnS1Pu6cAZPS8N8b7zYBAWFi6p/qCE/YWzGbqayfb+Rja5R4NNcLA/V4uQTBvGJLp0wpqANnaqaQMrWvqJ1DgxQkTolF6F2Ee6pPS7prsOivqinL5c6cR92Wa6RZFkdRbToj9aziQyF7aBrXc8loVPP7EthUwV7L0UjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ymp0RGtj; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ymp0RGtj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D987C1F000E9; Wed, 27 May 2026 12:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884727; bh=VGweoacrqBePcWUgGZjArQ5zAdVUHMT/ye0D3kwbKO4=; h=From:To:Cc:Subject:Date:Reply-To; b=Ymp0RGtjCrHoONSnRLzisi7x8gShTiY/STktxTh9a8a924C+F9e+3tHu3vTGu6sh5 TlYi8ni7r5p0GLmIryBOGzJ7DMqG4XzERjhk7uzuopdhOrWMrh2bWnlR1ibgfpHt5F 7bS5aZY9vpY3coFvf0i6wywPTD+BqIIKya54dbr4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45945: iommu/vt-d: Fix race condition during PASID entry replacement Date: Wed, 27 May 2026 14:19:47 +0200 Message-ID: <2026052730-CVE-2026-45945-6975@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YCU94OSR8rogkZNQhU7r8SuoPhxm7RERwb7oDyXb0Mk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD8WCL6ppqa06d7f8s0vAvZVn/wuz7fytwvVJ+OQ8x 4dmM6fZdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEtsQwzGbl7tzWOut5+aVq tV1fP5dMYDimsZVhwZwEn8R18z7qL6jZFsNZKnS8xjB1AwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Fix race condition during PASID entry replacement The Intel VT-d PASID table entry is 512 bits (64 bytes). When replacing an active PASID entry (e.g., during domain replacement), the current implementation calculates a new entry on the stack and copies it to the table using a single structure assignment. struct pasid_entry *pte, new_pte; pte = intel_pasid_get_entry(dev, pasid); pasid_pte_config_first_level(iommu, &new_pte, ...); *pte = new_pte; Because the hardware may fetch the 512-bit PASID entry in multiple 128-bit chunks, updating the entire entry while it is active (Present bit set) risks a "torn" read. In this scenario, the IOMMU hardware could observe an inconsistent state — partially new data and partially old data — leading to unpredictable behavior or spurious faults. Fix this by removing the unsafe "replace" helpers and following the "clear-then-update" flow, which ensures the Present bit is cleared and the required invalidation handshake is completed before the new configuration is applied. The Linux kernel CVE team has assigned CVE-2026-45945 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 7543ee63e8113aa34b07df3b16b3b9d2c5f73939 and fixed in 6.19.4 with commit 66a7aff480a82b8642b3991fed5fdc9780022157 Issue introduced in 6.13 with commit 7543ee63e8113aa34b07df3b16b3b9d2c5f73939 and fixed in 7.0 with commit c3b1edea3791fa91ab7032faa90355913ad9451b 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-2026-45945 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 drivers/iommu/intel/nested.c drivers/iommu/intel/pasid.c drivers/iommu/intel/pasid.h 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/66a7aff480a82b8642b3991fed5fdc9780022157 https://git.kernel.org/stable/c/c3b1edea3791fa91ab7032faa90355913ad9451b