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 D551E2DF158 for ; Tue, 16 Sep 2025 08:12:23 +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=1758010343; cv=none; b=JLLLpJwkw4N0eHR2W6G4BlR41CfIxo7zsZuxXd84P08zC4+0s5Mx5zNK3z2obnF8fGp/P/dwvq8h/mbYW9F0R4cSsbsM5ukCDew0V580XSPvMcC0pGXIcV26vVqskS/0f2Y2B9xLJbbmUxD5dRWY2RjiEVxGKCMYRFm81n7UDug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010343; c=relaxed/simple; bh=CyIoSMp0SltQofmfOgeQU2mlHTQEAMpAlPoKjtII4rI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fZu83aeJMU4UzKNlid4/W/+uXUUrczlilWk46tvcZ/k1UeJ4325nlWKWJlGKE/2n144lQTHrKK6/Q+/0CUkUowWZPG9E+yCYWBmhAApyQt+Zszj+PlM17/S76u6CTNsOa6CbaaH24s0d65VRQhmtKbEJjcO5QJMj7TKYJV5QrqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nGjhPIgt; 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="nGjhPIgt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA39AC4CEEB; Tue, 16 Sep 2025 08:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010343; bh=CyIoSMp0SltQofmfOgeQU2mlHTQEAMpAlPoKjtII4rI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nGjhPIgtaHOIy31AOeXAcNtPpoh9l2GmnJuBDzD4QG9iuerQATWlItlXgVPyILZB/ ikVVMxYgaVjXsKyBP/hUadJV5KGM7zqt/y7np3puXQ8cRRuKaojqB9nlXNlToofg29 xnW1fszNI5n3FyrATK8Yw0a9P52PX/Jb6f0fLEXQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53283: xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent Date: Tue, 16 Sep 2025 10:11:33 +0200 Message-ID: <2025091624-CVE-2023-53283-674c@gregkh> X-Mailer: git-send-email 2.51.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=5068; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r2pvls47mvc5gM3EWIRGB/VhscRPPYWOTZ0Gfzb6pMg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpdd2T6qXvlT9/Kstv+ylR3EWTAsU98o9PHd7xT+pT zOv5dYxdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3lxjmGc6T+OQFtfDuV0N 32s3Trju5/5XuINhfsUyDpeS01MsavQeM/9leK9Y1FapCAA= 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: xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent When attempting to run Xen on a QEMU/KVM virtual machine with virtio devices (all x86_64), function xen_dt_get_node() crashes on accessing bus->bridge->parent->of_node because a bridge of the PCI root bus has no parent set: [ 1.694192][ T1] BUG: kernel NULL pointer dereference, address: 0000000000000288 [ 1.695688][ T1] #PF: supervisor read access in kernel mode [ 1.696297][ T1] #PF: error_code(0x0000) - not-present page [ 1.696297][ T1] PGD 0 P4D 0 [ 1.696297][ T1] Oops: 0000 [#1] PREEMPT SMP NOPTI [ 1.696297][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.3.7-1-default #1 openSUSE Tumbleweed a577eae57964bb7e83477b5a5645a1781df990f0 [ 1.696297][ T1] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.15.0-0-g2dd4b9b-rebuilt.opensuse.org 04/01/2014 [ 1.696297][ T1] RIP: e030:xen_virtio_restricted_mem_acc+0xd9/0x1c0 [ 1.696297][ T1] Code: 45 0c 83 e8 c9 a3 ea ff 31 c0 eb d7 48 8b 87 40 ff ff ff 48 89 c2 48 8b 40 10 48 85 c0 75 f4 48 8b 82 10 01 00 00 48 8b 40 40 <48> 83 b8 88 02 00 00 00 0f 84 45 ff ff ff 66 90 31 c0 eb a5 48 89 [ 1.696297][ T1] RSP: e02b:ffffc90040013cc8 EFLAGS: 00010246 [ 1.696297][ T1] RAX: 0000000000000000 RBX: ffff888006c75000 RCX: 0000000000000029 [ 1.696297][ T1] RDX: ffff888005ed1000 RSI: ffffc900400f100c RDI: ffff888005ee30d0 [ 1.696297][ T1] RBP: ffff888006c75010 R08: 0000000000000001 R09: 0000000330000006 [ 1.696297][ T1] R10: ffff888005850028 R11: 0000000000000002 R12: ffffffff830439a0 [ 1.696297][ T1] R13: 0000000000000000 R14: ffff888005657900 R15: ffff888006e3e1e8 [ 1.696297][ T1] FS: 0000000000000000(0000) GS:ffff88804a000000(0000) knlGS:0000000000000000 [ 1.696297][ T1] CS: e030 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.696297][ T1] CR2: 0000000000000288 CR3: 0000000002e36000 CR4: 0000000000050660 [ 1.696297][ T1] Call Trace: [ 1.696297][ T1] [ 1.696297][ T1] virtio_features_ok+0x1b/0xd0 [ 1.696297][ T1] virtio_dev_probe+0x19c/0x270 [ 1.696297][ T1] really_probe+0x19b/0x3e0 [ 1.696297][ T1] __driver_probe_device+0x78/0x160 [ 1.696297][ T1] driver_probe_device+0x1f/0x90 [ 1.696297][ T1] __driver_attach+0xd2/0x1c0 [ 1.696297][ T1] bus_for_each_dev+0x74/0xc0 [ 1.696297][ T1] bus_add_driver+0x116/0x220 [ 1.696297][ T1] driver_register+0x59/0x100 [ 1.696297][ T1] virtio_console_init+0x7f/0x110 [ 1.696297][ T1] do_one_initcall+0x47/0x220 [ 1.696297][ T1] kernel_init_freeable+0x328/0x480 [ 1.696297][ T1] kernel_init+0x1a/0x1c0 [ 1.696297][ T1] ret_from_fork+0x29/0x50 [ 1.696297][ T1] [ 1.696297][ T1] Modules linked in: [ 1.696297][ T1] CR2: 0000000000000288 [ 1.696297][ T1] ---[ end trace 0000000000000000 ]--- The PCI root bus is in this case created from ACPI description via acpi_pci_root_add() -> pci_acpi_scan_root() -> acpi_pci_root_create() -> pci_create_root_bus() where the last function is called with parent=NULL. It indicates that no parent is present and then bus->bridge->parent is NULL too. Fix the problem by checking bus->bridge->parent in xen_dt_get_node() for NULL first. The Linux kernel CVE team has assigned CVE-2023-53283 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit ef8ae384b4c9ccefecf4754f34644bd9fb0105b7 and fixed in 6.4.5 with commit 9c1c1cc08b880752947f52c3e18cebb46e0d9c51 Issue introduced in 6.2 with commit ef8ae384b4c9ccefecf4754f34644bd9fb0105b7 and fixed in 6.5 with commit 21a235bce12361e64adfc2ef97e4ae2e51ad63d4 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-53283 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/xen/grant-dma-ops.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/9c1c1cc08b880752947f52c3e18cebb46e0d9c51 https://git.kernel.org/stable/c/21a235bce12361e64adfc2ef97e4ae2e51ad63d4