CVE-2023-54007

Source
https://cve.org/CVERecord?id=CVE-2023-54007
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54007.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54007
Downstream
Related
Published
2025-12-24T10:55:41.281Z
Modified
2026-03-20T12:33:23.807982Z
Summary
vmci_host: fix a race condition in vmci_host_poll() causing GPF
Details

In the Linux kernel, the following vulnerability has been resolved:

vmcihost: fix a race condition in vmcihost_poll() causing GPF

During fuzzing, a general protection fault is observed in vmcihostpoll().

general protection fault, probably for non-canonical address 0xdffffc0000000019: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000c8-0x00000000000000cf] RIP: 0010:__lockacquire+0xf3/0x5e00 kernel/locking/lockdep.c:4926 <- omitting registers -> Call Trace: <TASK> lockacquire+0x1a4/0x4a0 kernel/locking/lockdep.c:5672 __rawspinlockirqsave include/linux/spinlockapismp.h:110 [inline] rawspinlockirqsave+0xb3/0x100 kernel/locking/spinlock.c:162 addwaitqueue+0x3d/0x260 kernel/sched/wait.c:22 pollwait include/linux/poll.h:49 [inline] vmcihostpoll+0xf8/0x2b0 drivers/misc/vmwvmci/vmcihost.c:174 vfspoll include/linux/poll.h:88 [inline] dopollfd fs/select.c:873 [inline] dopoll fs/select.c:921 [inline] dosys_poll+0xc7c/0x1aa0 fs/select.c:1015 __dosysppoll fs/select.c:1121 [inline] __sesysppoll+0x2cc/0x330 fs/select.c:1101 dosyscallx64 arch/x86/entry/common.c:51 [inline] dosyscall64+0x4e/0xa0 arch/x86/entry/common.c:82 entrySYSCALL64afterhwframe+0x46/0xb0

Example thread interleaving that causes the general protection fault is as follows:

CPU1 (vmcihostpoll) CPU2 (vmcihostdoinitcontext) ----- ----- // Read uninitialized context context = vmcihostdev->context; // Initialize context vmcihostdev->context = vmcictxcreate(); vmcihostdev->cttype = VMCIOBJCONTEXT;

if (vmcihostdev->cttype == VMCIOBJCONTEXT) { // Dereferencing the wrong pointer pollwait(..., &context->hostcontext); }

In this scenario, vmcihostpoll() reads vmcihostdev->context first, and then reads vmcihostdev->cttype to check that vmcihost_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 vmcihostdev->context after checking the value of vmcihostdev->cttype so that vmcihost_poll() always reads an initialized context.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54007.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8bf503991f87e32ea42a7bd69b79ba084fddc5d7
Fixed
2053e93ac15519ed1f1fe6eba79a33a4963be4a3
Fixed
ca0f4ad2b7a36c799213ef0a213eb977a51e03dc
Fixed
85b4aa4eb2e3a0da111fd0a1cdbf00f986ac6b6b
Fixed
770d30b1355c6c8879973dd054fca9168def182c
Fixed
d22b2a35729cb1de311cb650cd67518a24e13fc9
Fixed
67e35824f861a05b44b19d38e16a83f653bd9d92
Fixed
ab64bd32b9fac27ff4737d63711b9db5e5462448
Fixed
ae13381da5ff0e8e084c0323c3cc0a945e43e9c7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54007.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.9.0
Fixed
4.19.283
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.243
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.180
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.111
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.28
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.15
Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.3.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54007.json"