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 39DE13043B8 for ; Wed, 12 Nov 2025 10:24:50 +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=1762943090; cv=none; b=qLDocZTS2a9wHlh6HMr32vefsSbKeNkwOm1hD/PLU+lf1z1uHUaHaetNymgjX/kRo6I3g0bLQSWfGgLJkaiRtiG04p9CG15xCQbxzj/d6Uj3EwHk9xASfAuI2GkUj63bMpLijV6gGyuQv7QOtzGa+pXG+QayiK//uH5wth/gqM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943090; c=relaxed/simple; bh=l/Yw/ReUVMFhsldYWYLlYJhE24CWlb3CAUI/MZQ9glc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Obl744X20Ov3cPmX8KRqxNN7I/oEDGW2laR6aE8QSwUqaWXXkxHGGxwsxmPGUSBP41EiatzWXypIElCBcmVrPUu3PK+1zCrp0XQXlUeTSANaV0z2J8yxcIOuESSK4uYCSoot2I0lcVZJd+ZxFmISPEB7oIOtkTmXdCEDo0Rc5H0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lqj+QUPq; 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="Lqj+QUPq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED937C19421; Wed, 12 Nov 2025 10:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943090; bh=l/Yw/ReUVMFhsldYWYLlYJhE24CWlb3CAUI/MZQ9glc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lqj+QUPqcdC2U3J8dmQn+7fISALdAR8EO6QptKbwKNz6RpjmsV3EiByIy84FTg/Nd h2MBNCvJ60ZzbMop1prbtfl/HIUKC4la/Ax9RP5EWCTAP4/bCoGnXSwdCDG6Myqz31 1eGJP/xq0PV/v9h3TiBSlKMznxeOK1/pnXILjC7w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40155: iommu/vt-d: debugfs: Fix legacy mode page table dump logic Date: Wed, 12 Nov 2025 19:24:31 +0900 Message-ID: <2025111258-CVE-2025-40155-5247@gregkh> X-Mailer: git-send-email 2.51.2 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=3309; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GF+VO/nD+S845xEU2C60Kk2prOdhbc20/z4aZNY6w/o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCXaXls5Zqq/R8CFm+r0bdz8c69JYq6T++VS4npV+3 xn1FP2CjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIqj/DgqajR07M/77nq/+M LaI3Fu/gnx6fac2wYO/rzd9CH208NeXz5eeVO++6v8l5nw8A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: debugfs: Fix legacy mode page table dump logic In legacy mode, SSPTPTR is ignored if TT is not 00b or 01b. SSPTPTR maybe uninitialized or zero in that case and may cause oops like: Oops: general protection fault, probably for non-canonical address 0xf00087d3f000f000: 0000 [#1] SMP NOPTI CPU: 2 UID: 0 PID: 786 Comm: cat Not tainted 6.16.0 #191 PREEMPT(voluntary) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.17.0-5.fc42 04/01/2014 RIP: 0010:pgtable_walk_level+0x98/0x150 RSP: 0018:ffffc90000f279c0 EFLAGS: 00010206 RAX: 0000000040000000 RBX: ffffc90000f27ab0 RCX: 000000000000001e RDX: 0000000000000003 RSI: f00087d3f000f000 RDI: f00087d3f0010000 RBP: ffffc90000f27a00 R08: ffffc90000f27a98 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000000 R12: f00087d3f000f000 R13: 0000000000000000 R14: 0000000040000000 R15: ffffc90000f27a98 FS: 0000764566dcb740(0000) GS:ffff8881f812c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000764566d44000 CR3: 0000000109d81003 CR4: 0000000000772ef0 PKRU: 55555554 Call Trace: pgtable_walk_level+0x88/0x150 domain_translation_struct_show.isra.0+0x2d9/0x300 dev_domain_translation_struct_show+0x20/0x40 seq_read_iter+0x12d/0x490 ... Avoid walking the page table if TT is not 00b or 01b. The Linux kernel CVE team has assigned CVE-2025-40155 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 2b437e80456654df3980706384065d444f4bb54d and fixed in 6.12.53 with commit d8cf7b59c49f9118fa875462e18686cb6b131bb5 Issue introduced in 6.7 with commit 2b437e80456654df3980706384065d444f4bb54d and fixed in 6.17.3 with commit df2bf759a0bdb71f13e327d7527260d09facc055 Issue introduced in 6.7 with commit 2b437e80456654df3980706384065d444f4bb54d and fixed in 6.18-rc1 with commit fbe6070c73badca726e4ff7877320e6c62339917 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-2025-40155 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/debugfs.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/d8cf7b59c49f9118fa875462e18686cb6b131bb5 https://git.kernel.org/stable/c/df2bf759a0bdb71f13e327d7527260d09facc055 https://git.kernel.org/stable/c/fbe6070c73badca726e4ff7877320e6c62339917