vsock: Fix transport_* TOCTOU
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c0cfa2d8a788fcf45df5bf4070ab2474c88d543a · < 7b73bddf54777fb62d4d8c7729d0affe6df04477| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vsock: Fix transport_* TOCTOU
Transport assignment may race with module unload. Protect new_transport from becoming a stale pointer.
This also takes care of an insecure call in vsock_use_local_transport(); add a lockdep assert.
BUG: unable to handle page fault for address: fffffbfff8056000 Oops: Oops: 0000 [#1] SMP KASAN RIP: 0010:vsock_assign_transport+0x366/0x600 Call Trace: vsock_connect+0x59c/0xc40 __sys_connect+0xe8/0x100 __x64_sys_connect+0x6e/0xc0 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53
From the CVE record · Linux
The Linux kernel’s vsock transport assignment has a time-of-check/time-of-use race with module unload that can leave a stale pointer. The reported failure is a kernel page fault during a local vsock connect call; the input does not establish authentication requirements or whether additional user interaction is needed.
Engineers running Linux kernels with vsock should check their kernel vendor’s advisory for affected versions.