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