CVE-2025-38462 Details
Description
In the Linux kernel, the following vulnerability has been resolved: vsock: Fix transport_{g2h,h2g} TOCTOU vsock_find_cid() and vsock_dev_do_ioctl() may race with module unload. transport_{g2h,h2g} may become NULL after the NULL check. Introduce vsock_transport_local_cid() to protect from a potential null-ptr-deref. KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsock_find_cid+0x47/0x90 Call Trace: __vsock_bind+0x4b2/0x720 vsock_bind+0x90/0xe0 __sys_bind+0x14d/0x1e0 __x64_sys_bind+0x6e/0xc0 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsock_dev_do_ioctl.isra.0+0x58/0xf0 Call Trace: __x64_sys_ioctl+0x12d/0x190 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53
A time-of-check to time-of-use (TOCTOU) race condition vulnerability has been identified in the Linux kernel's virtual socket (vsock) implementation. This issue arises in the 'vsock_find_cid()' and 'vsock_dev_do_ioctl()' functions, which can race with module unload operations. The vulnerability occurs because the transport callbacks 'g2h' and 'h2g' can become NULL after a NULL check, potentially leading to a null pointer dereference. The issue has been addressed by introducing the 'vsock_transport_local_cid()' function, which safely accesses the transport callbacks and prevents the null pointer dereference.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for updating the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/209fd720838aaf1420416494c5505096478156b4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3734d78210cceb2ee5615719a62a5c55ed381ff8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/401239811fa728fcdd53e360a91f157ffd23e1f4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6a1bcab67bea797d83aa9dd948a0ac6ed52d121d | kernel.org | Patch |
| https://git.kernel.org/stable/c/80d7dc15805a93d520a249ac6d13d4f4df161c1b | kernel.org | Patch |
| https://git.kernel.org/stable/c/c5496ee685c48ed1cc183cd4263602579bb4a615 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.5, < 5.10.240 >= 5.11, < 5.15.189 >= 5.16, < 6.1.146 >= 6.2, < 6.6.99 >= 6.7, < 6.12.39 >= 6.13, < 6.15.7 6.16 rc1 6.16 rc2 6.16 rc3 6.16 rc4 6.16 rc5 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 22, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 25, 2025 | New CVE Received | kernel.org |