{"id":"CVE-2023-54007","aliases":["CVE-2023-54007"],"related":[],"kind":"vulnerability","state":"published","title":"vmci_host: fix a race condition in vmci_host_poll() causing GPF","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvmci_host: fix a race condition in vmci_host_poll() causing GPF\n\nDuring fuzzing, a general protection fault is observed in\nvmci_host_poll().\n\ngeneral protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN\nKASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf]\nRIP: 0010:__lock_acquire+0xf3/0x5e00 kernel/locking/lockdep.c:4926\n<- omitting registers ->\nCall Trace:\n <TASK>\n lock_acquire+0x1a4/0x4a0 kernel/locking/lockdep.c:5672\n __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]\n _raw_spin_lock_irqsave+0xb3/0x100 kernel/locking/spinlock.c:162\n add_wait_queue+0x3d/0x260 kernel/sched/wait.c:22\n poll_wait include/linux/poll.h:49 [inline]\n vmci_host_poll+0xf8/0x2b0 drivers/misc/vmw_vmci/vmci_host.c:174\n vfs_poll include/linux/poll.h:88 [inline]\n do_pollfd fs/select.c:873 [inline]\n do_poll fs/select.c:921 [inline]\n do_sys_poll+0xc7c/0x1aa0 fs/select.c:1015\n __do_sys_ppoll fs/select.c:1121 [inline]\n __se_sys_ppoll+0x2cc/0x330 fs/select.c:1101\n do_syscall_x64 arch/x86/entry/common.c:51 [inline]\n do_syscall_64+0x4e/0xa0 arch/x86/entry/common.c:82\n entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\nExample thread interleaving that causes the general protection fault\nis as follows:\n\nCPU1 (vmci_host_poll)               CPU2 (vmci_host_do_init_context)\n-----                               -----\n// Read uninitialized context\ncontext = vmci_host_dev->context;\n                                    // Initialize context\n                                    vmci_host_dev->context = vmci_ctx_create();\n                                    vmci_host_dev->ct_type = VMCIOBJ_CONTEXT;\n\nif (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) {\n    // Dereferencing the wrong pointer\n    poll_wait(..., &context->host_context);\n}\n\nIn this scenario, vmci_host_poll() reads vmci_host_dev->context first,\nand then reads vmci_host_dev->ct_type to check that\nvmci_host_dev->context is initialized. However, since these two reads\nare not atomically executed, there is a chance of a race condition as\ndescribed above.\n\nTo fix this race condition, read vmci_host_dev->context after checking\nthe value of vmci_host_dev->ct_type so that vmci_host_poll() always\nreads an initialized context.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvmci_host: fix a race condition in vmci_host_poll() causing GPF\n\nDuring fuzzing, a general protection fault is observed in\nvmci_host_poll().\n\ngeneral protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN\nKASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf]\nRIP: 0010:__lock_acquire+0xf3/0x5e00 kernel/locking/lockdep.c:4926\n<- omitting registers ->\nCall Trace:\n <TASK>\n lock_acquire+0x1a4/0x4a0 kernel/locking/lockdep.c:5672\n __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]\n _raw_spin_lock_irqsave+0xb3/0x100 kernel/locking/spinlock.c:162\n add_wait_queue+0x3d/0x260 kernel/sched/wait.c:22\n poll_wait include/linux/poll.h:49 [inline]\n vmci_host_poll+0xf8/0x2b0 drivers/misc/vmw_vmci/vmci_host.c:174\n vfs_poll include/linux/poll.h:88 [inline]\n do_pollfd fs/select.c:873 [inline]\n do_poll fs/select.c:921 [inline]\n do_sys_poll+0xc7c/0x1aa0 fs/select.c:1015\n __do_sys_ppoll fs/select.c:1121 [inline]\n __se_sys_ppoll+0x2cc/0x330 fs/select.c:1101\n do_syscall_x64 arch/x86/entry/common.c:51 [inline]\n do_syscall_64+0x4e/0xa0 arch/x86/entry/common.c:82\n entry_SYSCALL_64_after_hwframe+0x46/0xb0\n\nExample thread interleaving that causes the general protection fault\nis as follows:\n\nCPU1 (vmci_host_poll)               CPU2 (vmci_host_do_init_context)\n-----                               -----\n// Read uninitialized context\ncontext = vmci_host_dev->context;\n                                    // Initialize context\n                                    vmci_host_dev->context = vmci_ctx_create();\n                                    vmci_host_dev->ct_type = VMCIOBJ_CONTEXT;\n\nif (vmci_host_dev->ct_type == VMCIOBJ_CONTEXT) {\n    // Dereferencing the wrong pointer\n    poll_wait(..., &context->host_context);\n}\n\nIn this scenario, vmci_host_poll() reads vmci_host_dev->context first,\nand then reads vmci_host_dev->ct_type to check that\nvmci_host_dev->context is initialized. However, since these two reads\nare not atomically executed, there is a chance of a race condition as\ndescribed above.\n\nTo fix this race condition, read vmci_host_dev->context after checking\nthe value of vmci_host_dev->ct_type so that vmci_host_poll() always\nreads an initialized context.","source":"cvelist"}],"published":"2025-12-24T10:55:41.281Z","modified":"2026-06-17T06:46:31.600Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"2053e93ac15519ed1f1fe6eba79a33a4963be4a3","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"ca0f4ad2b7a36c799213ef0a213eb977a51e03dc","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"85b4aa4eb2e3a0da111fd0a1cdbf00f986ac6b6b","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"770d30b1355c6c8879973dd054fca9168def182c","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"d22b2a35729cb1de311cb650cd67518a24e13fc9","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"67e35824f861a05b44b19d38e16a83f653bd9d92","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"ab64bd32b9fac27ff4737d63711b9db5e5462448","status":"affected"},{"type":"git","introduced":"8bf503991f87e32ea42a7bd69b79ba084fddc5d7","fixed":"ae13381da5ff0e8e084c0323c3cc0a945e43e9c7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"4.19.283","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.243","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.180","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.111","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.28","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.15","lastAffected":"6.2.*","status":"unaffected"},{"type":"semver","introduced":"6.3.2","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2053e93ac15519ed1f1fe6eba79a33a4963be4a3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca0f4ad2b7a36c799213ef0a213eb977a51e03dc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85b4aa4eb2e3a0da111fd0a1cdbf00f986ac6b6b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/770d30b1355c6c8879973dd054fca9168def182c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d22b2a35729cb1de311cb650cd67518a24e13fc9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67e35824f861a05b44b19d38e16a83f653bd9d92","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab64bd32b9fac27ff4737d63711b9db5e5462448","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae13381da5ff0e8e084c0323c3cc0a945e43e9c7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54007","url":"https://www.cve.org/CVERecord?id=CVE-2023-54007","licence":"CVE Terms of Use","modified":"2026-05-11T19:53:29.294Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54007","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54007","licence":"Public domain","modified":"2026-06-17T06:46:31.600Z"}],"updatedAt":"2026-11-25T22:58:35.139Z","epss":{"score":0.00236,"percentile":0.15575,"date":"2026-12-02T12:00:21.000Z"}}