CVE-2025-38462: vsock: Fix transport_{g2h,h2g} TOCTOU
In the Linux kernel, the following vulnerability has been resolved:
vsock: Fix transport{g2h,h2g} TOCTOU
vsockfindcid() and vsockdevdoioctl() may race with module unload. transport{g2h,h2g} may become NULL after the NULL check.
Introduce vsocktransportlocalcid() to protect from a potential null-ptr-deref.
KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsockfindcid+0x47/0x90 Call Trace: vsockbind+0x4b2/0x720 vsockbind+0x90/0xe0 sysbind+0x14d/0x1e0 x64sysbind+0x6e/0xc0 dosyscall64+0x92/0x1c0 entrySYSCALL64afterhwframe+0x4b/0x53
KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsockdevdoioctl.isra.0+0x58/0xf0 Call Trace: x64sysioctl+0x12d/0x190 dosyscall64+0x92/0x1c0 entrySYSCALL64afterhwframe+0x4b/0x53
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38462?
CVE-2025-38462 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2025-38462?
To fix CVE-2025-38462, you should update to the latest patched version of the Linux kernel.
What components are affected by CVE-2025-38462?
CVE-2025-38462 affects the Linux kernel, specifically the vsock module.
What type of vulnerability is CVE-2025-38462?
CVE-2025-38462 is a race condition vulnerability that can occur during module unload operations.
Is CVE-2025-38462 being actively exploited?
As of now, there is no known active exploitation of CVE-2025-38462 reported.