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 C29EF31AF07 for ; Wed, 24 Dec 2025 10:58:17 +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=1766573897; cv=none; b=CSAAO8mmBmMpc15UWWDiCmPNs1isV0X7XGwWcV+JAVxjg6okdjRm0Qs4/O2hOU4JqhVcTvXbnXre43HsoJ2MUKuCTQkGc4H+nLxaQYfMcz7ptXD//EHWeLA+M6BSbmBe9PagLCz6vhz2FWBCgzHl7h3U7ruxgb54bIv3w+qyEzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573897; c=relaxed/simple; bh=1n4S54KoTQ1ZmFIZNW5bWw7/z2rWcjvD3RZSDYX3ALo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HlgRHsYLswUzvHQW4tswlprOIbCzxhhw+sRtF8h2uxnc4m41xqiS+x4Y37RfUvFndZHpAo7QuRgd+jH79/b8YqDtjDeL2eCCyAHP1MtI9jUKxq2hKfrXp17x5GQAsOfzkOl5ghs9cNKPUm2BRo9kfBjhgJNpFyX3JkLjwUTevJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eby5f4+v; 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="eby5f4+v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 040D0C4CEFB; Wed, 24 Dec 2025 10:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573897; bh=1n4S54KoTQ1ZmFIZNW5bWw7/z2rWcjvD3RZSDYX3ALo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=eby5f4+vPLz0Q94CCROdMwKHnms1MKfVTEiMGubnrRBloy/9lSSmqdx8iFsYiHCJ/ h1ahEwOWAZ8bGH4o4OidM83vHguZ1A0DIMooo4U2hJSTfte6GrJyHxpXlphpm7A0/h UUf9lu4Y1AExlzh3o6Xl14PqxNOdN2pqrtKq2UEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54007: vmci_host: fix a race condition in vmci_host_poll() causing GPF Date: Wed, 24 Dec 2025 11:56:51 +0100 Message-ID: <2025122429-CVE-2023-54007-89b1@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=5365; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EOS7vWsyLEk4qLUNNI1+NX/UFIw+Fr8wAhvN2K3pL20=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex+7mF+xRYF7XcJz7lKFEtoQAg+SmBfZRj68INhXdm lB+SDe0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSvJlhvpNfx3G216E8X8IL pNb8Ct/4odrhDcP8yL3Kf5YI/e24cMBEieFuacnedI2XAA== 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: vmci_host: fix a race condition in vmci_host_poll() causing GPF During fuzzing, a general protection fault is observed in vmci_host_poll(). general protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] RIP: 0010:__lock_acquire+0xf3/0x5e00 kernel/locking/lockdep.c:4926 <- omitting registers -> Call Trace: lock_acquire+0x1a4/0x4a0 kernel/locking/lockdep.c:5672 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb3/0x100 kernel/locking/spinlock.c:162 add_wait_queue+0x3d/0x260 kernel/sched/wait.c:22 poll_wait include/linux/poll.h:49 [inline] vmci_host_poll+0xf8/0x2b0 drivers/misc/vmw_vmci/vmci_host.c:174 vfs_poll include/linux/poll.h:88 [inline] do_pollfd fs/select.c:873 [inline] do_poll fs/select.c:921 [inline] do_sys_poll+0xc7c/0x1aa0 fs/select.c:1015 __do_sys_ppoll fs/select.c:1121 [inline] __se_sys_ppoll+0x2cc/0x330 fs/select.c:1101 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4e/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Example thread interleaving that causes the general protection fault is as follows: CPU1 (vmci_host_poll) CPU2 (vmci_host_do_init_context) ----- ----- // Read uninitialized context context = vmci_host_dev->context; // Initialize context vmci_host_dev->context = vmci_ctx_create(); vmci_host_dev->ct_type = VMCIOBJ_CONTEXT; if (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) { // Dereferencing the wrong pointer poll_wait(..., &context->host_context); } In this scenario, vmci_host_poll() reads vmci_host_dev->context first, and then reads vmci_host_dev->ct_type to check that vmci_host_dev->context is initialized. However, since these two reads are not atomically executed, there is a chance of a race condition as described above. To fix this race condition, read vmci_host_dev->context after checking the value of vmci_host_dev->ct_type so that vmci_host_poll() always reads an initialized context. The Linux kernel CVE team has assigned CVE-2023-54007 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 4.19.283 with commit 2053e93ac15519ed1f1fe6eba79a33a4963be4a3 Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 5.4.243 with commit ca0f4ad2b7a36c799213ef0a213eb977a51e03dc Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 5.10.180 with commit 85b4aa4eb2e3a0da111fd0a1cdbf00f986ac6b6b Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 5.15.111 with commit 770d30b1355c6c8879973dd054fca9168def182c Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 6.1.28 with commit d22b2a35729cb1de311cb650cd67518a24e13fc9 Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 6.2.15 with commit 67e35824f861a05b44b19d38e16a83f653bd9d92 Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 6.3.2 with commit ab64bd32b9fac27ff4737d63711b9db5e5462448 Issue introduced in 3.9 with commit 8bf503991f87e32ea42a7bd69b79ba084fddc5d7 and fixed in 6.4 with commit ae13381da5ff0e8e084c0323c3cc0a945e43e9c7 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-54007 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/misc/vmw_vmci/vmci_host.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/2053e93ac15519ed1f1fe6eba79a33a4963be4a3 https://git.kernel.org/stable/c/ca0f4ad2b7a36c799213ef0a213eb977a51e03dc https://git.kernel.org/stable/c/85b4aa4eb2e3a0da111fd0a1cdbf00f986ac6b6b https://git.kernel.org/stable/c/770d30b1355c6c8879973dd054fca9168def182c https://git.kernel.org/stable/c/d22b2a35729cb1de311cb650cd67518a24e13fc9 https://git.kernel.org/stable/c/67e35824f861a05b44b19d38e16a83f653bd9d92 https://git.kernel.org/stable/c/ab64bd32b9fac27ff4737d63711b9db5e5462448 https://git.kernel.org/stable/c/ae13381da5ff0e8e084c0323c3cc0a945e43e9c7