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 6EFF015E5DC for ; Tue, 9 Dec 2025 00:03:34 +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=1765238614; cv=none; b=aCXzk3VmsU0qLPSI+DWbimf47+YwmAR3020gxXBYb1UXVoW9LQPnQyILiPbz6QoI19tQfkLgYsMMmpcTxkHanaWrY1zEO/bZDInm6ZmK1bcptzbJJTQ3rPGK+0HunNWvVfBjIE/+BAwJjeJ+VwZ3zd4MesRdki1Tvz1G4/WH/Fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238614; c=relaxed/simple; bh=yxTZVvtQ+Ac8u0svjo8d/xwBKqg/QO9evLRzDObLx7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tA3hOwdwpYU0TbTOxJ6Imcvm1+1WotzNiOowo/8r9I5TSuRu3gQqo+fpjqlVjVsdYAqKSn3OoYNhUnPQ3iFzaDi40kawfW+lFxHTgwBfLVUnuq6V89IgcmT63kJ9lSbV+YaXR5RFH/H4SPOm4XjrMAutPMcAD6hF1Izru3JxRAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VkYd8RjR; 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="VkYd8RjR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DAE6C4CEF1; Tue, 9 Dec 2025 00:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238614; bh=yxTZVvtQ+Ac8u0svjo8d/xwBKqg/QO9evLRzDObLx7U=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VkYd8RjRjwksz3UZGkaJy5uD1zMpv2ccxeHskijHdN1JGqIIdxa+JwtjlxKGXNQgE RK24GYL08eZC2j1wPJF+mStWq1szQgvTBwnot2L8tqudRWOdyxn7L68PchsbvIJ6dK sGX5cjdcA6b2NcxEUKBjJS9gijMQdcTdy2gUsr3Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53789: iommu/amd: Improve page fault error reporting Date: Tue, 9 Dec 2025 09:02:10 +0900 Message-ID: <2025120940-CVE-2023-53789-c5cb@gregkh> X-Mailer: git-send-email 2.52.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=2842; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=esrvtWkMcjDNXj+Z2F+QePYSWaY5rqjo56GNTs1r4Tg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaU+Kii5uZog9f+/rRc26POU8hhjd3vNODyz5s9RV/ 7+RM1zaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPx4WVYcG2TA+uL6edX6z/9 MWnOG38ZXuviHIb5rpL2tf4rU7wCUuy05udMPD3lpmsLAA== 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/amd: Improve page fault error reporting If IOMMU domain for device group is not setup properly then we may hit IOMMU page fault. Current page fault handler assumes that domain is always setup and it will hit NULL pointer derefence (see below sample log). Lets check whether domain is setup or not and log appropriate message. Sample log: ---------- amdgpu 0000:00:01.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 6 BUG: kernel NULL pointer dereference, address: 0000000000000058 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP NOPTI CPU: 2 PID: 56 Comm: irq/24-AMD-Vi Not tainted 6.2.0-rc2+ #89 Hardware name: xxx RIP: 0010:report_iommu_fault+0x11/0x90 [...] Call Trace: amd_iommu_int_thread+0x60c/0x760 ? __pfx_irq_thread_fn+0x10/0x10 irq_thread_fn+0x1f/0x60 irq_thread+0xea/0x1a0 ? preempt_count_add+0x6a/0xa0 ? __pfx_irq_thread_dtor+0x10/0x10 ? __pfx_irq_thread+0x10/0x10 kthread+0xe9/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x2c/0x50 [joro: Edit commit message] The Linux kernel CVE team has assigned CVE-2023-53789 to this issue. Affected and fixed versions =========================== Fixed in 6.1.16 with commit be8301e2d5a8b95c04ae8e35d7bfee7b0f03f83a Fixed in 6.2.3 with commit 446080b353f048b1fddaec1434cb3d27b5de7efe Fixed in 6.3 with commit 996d120b4de2b0d6b592bd9fbbe6e244b81ab3cc 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-2023-53789 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/amd/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/be8301e2d5a8b95c04ae8e35d7bfee7b0f03f83a https://git.kernel.org/stable/c/446080b353f048b1fddaec1434cb3d27b5de7efe https://git.kernel.org/stable/c/996d120b4de2b0d6b592bd9fbbe6e244b81ab3cc