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 B1F04516162 for ; Thu, 17 Sep 2026 16:21:40 +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=1789662101; cv=none; b=VEAYLoA5UQnjuMrUbnGi5/IHDxVDebxHgQk8mWVvQiBuHr3CbpwKzJXvb/Tj1EOccD5WjlsUfD6Tcw6AKA7Dk6+HkvHJIghAykPFgCGLzuZckbeAwaNrPftMIn/++ze4R9mkcieuV8+s663d9asdX8PaZjUGYVG5p3QamDVD1eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662101; c=relaxed/simple; bh=Mo+SdpbQfw3CJIo+Py6/Sre+utsxlgfakz1DSdXY2MA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WIaVpB0xmGSnDNNQeBIDy1tf9z/AjyhVLu+hsKurSmJ48oL0nUpfyNb6iJwGHEnAMlBhEVmRekbUUu9RvyK/KRnnzVr/2+LGlX/9tP1C26+wp+4CzH7+HkoJo+yunpgg5q98MzicHwqsGFC6IQyivv1fsVYSi/dp4eloIQim2H4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XdYWetp6; 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="XdYWetp6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14E491F000FF; Thu, 17 Sep 2026 16:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662100; bh=mlmqKTsF7wUUMs2f2UoH28nNQ52FHE2AXw8G1GedprA=; h=From:To:Cc:Subject:Date:Reply-To; b=XdYWetp6/WvnpV55d+ErHZzjIBai3xFnBB1ro8jvXqa81aGBXjGjh9/J8AdjT6szM NR9Nle0vTC99hCg7IlxdiGt9NGbmd+HFQYfHect+PcIxNgyzHpZXTAp/Jufv6x1zwY hU2+KRXviMYkJ8UTswBdr9w+Jzj65PW3c7CzwbKU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90240: iommu/vt-d: Flush context cache with correct SID when tearing down aliases Date: Thu, 17 Sep 2026 17:11:10 +0100 Message-ID: <2026091742-CVE-2026-90240-0371@gregkh> X-Mailer: git-send-email 2.55.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=3029; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xjsL3CWMYBc/m8DdmcA0dYce+yFU10EYwGS5RV26lKU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBLqk+p79lmd90XRIJ2nVcdZOloci3yNV3sY1L5k/R fWba9KMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIbyfDPPuEtabXnoct9DkZ y7E6uppfff7sqwwLdu62q0pJ3e+1ry5IxUo6bf7J00GBAA== 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: Flush context cache with correct SID when tearing down aliases domain_context_clear_one() and device_pasid_table_teardown() are both invoked once per DMA alias of a device. Each function locates the context entry using the bus/devfn pair provided by the pci_for_each_dma_alias() callback, then calls intel_context_flush_no_pasid(), which constructs a device-selective context-cache invalidation from info->bus and info->devfn (that is, always the requester ID of the device itself). As a result, for every alias other than the device’s own RID, the context entry that was just cleared in memory is never invalidated in the context cache. Hardware may continue using that stale cached entry. In the scalable-mode teardown path, intel_pasid_free_table() can then free the PASID directory still referenced by that stale entry, allowing the IOMMU to walk freed memory. Fix this by passing the source ID of the entry being torn down to intel_context_flush_no_pasid(), instead of deriving it from @info. The Linux kernel CVE team has assigned CVE-2026-90240 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 6.18.52 with commit a803141597d61dc0511f7cd849625e17d042ca8a Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 7.2.6 with commit 5baddf100b3be730912485648cbaae5e3a251923 Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 7.3-rc1 with commit c54e4ae971b98e8d650400137d332cee56c03f55 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-90240 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/iommu.h drivers/iommu/intel/pasid.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/a803141597d61dc0511f7cd849625e17d042ca8a https://git.kernel.org/stable/c/5baddf100b3be730912485648cbaae5e3a251923 https://git.kernel.org/stable/c/c54e4ae971b98e8d650400137d332cee56c03f55