{"id":"CVE-2025-38462","aliases":["CVE-2025-38462"],"related":[],"kind":"vulnerability","state":"published","title":"vsock: Fix transport_{g2h,h2g} TOCTOU","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: Fix transport_{g2h,h2g} TOCTOU\n\nvsock_find_cid() and vsock_dev_do_ioctl() may race with module unload.\ntransport_{g2h,h2g} may become NULL after the NULL check.\n\nIntroduce vsock_transport_local_cid() to protect from a potential\nnull-ptr-deref.\n\nKASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]\nRIP: 0010:vsock_find_cid+0x47/0x90\nCall Trace:\n __vsock_bind+0x4b2/0x720\n vsock_bind+0x90/0xe0\n __sys_bind+0x14d/0x1e0\n __x64_sys_bind+0x6e/0xc0\n do_syscall_64+0x92/0x1c0\n entry_SYSCALL_64_after_hwframe+0x4b/0x53\n\nKASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]\nRIP: 0010:vsock_dev_do_ioctl.isra.0+0x58/0xf0\nCall Trace:\n __x64_sys_ioctl+0x12d/0x190\n do_syscall_64+0x92/0x1c0\n entry_SYSCALL_64_after_hwframe+0x4b/0x53","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: Fix transport_{g2h,h2g} TOCTOU\n\nvsock_find_cid() and vsock_dev_do_ioctl() may race with module unload.\ntransport_{g2h,h2g} may become NULL after the NULL check.\n\nIntroduce vsock_transport_local_cid() to protect from a potential\nnull-ptr-deref.\n\nKASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]\nRIP: 0010:vsock_find_cid+0x47/0x90\nCall Trace:\n __vsock_bind+0x4b2/0x720\n vsock_bind+0x90/0xe0\n __sys_bind+0x14d/0x1e0\n __x64_sys_bind+0x6e/0xc0\n do_syscall_64+0x92/0x1c0\n entry_SYSCALL_64_after_hwframe+0x4b/0x53\n\nKASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]\nRIP: 0010:vsock_dev_do_ioctl.isra.0+0x58/0xf0\nCall Trace:\n __x64_sys_ioctl+0x12d/0x190\n do_syscall_64+0x92/0x1c0\n entry_SYSCALL_64_after_hwframe+0x4b/0x53","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vsock: Se ha corregido el error \"TOCTOU\" de transport_{g2h,h2g}. vsock_find_cid() y vsock_dev_do_ioctl() podrían competir con la descarga del módulo. transport_{g2h,h2g} podría volverse nulo después de la comprobación de valores nulos. Se ha implementado vsock_transport_local_cid() para proteger contra una posible desreferencia de PTR nula. 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","source":"nvd"}],"published":"2025-07-25T15:27:45.168Z","modified":"2026-11-05T21:18:32.837Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"c5496ee685c48ed1cc183cd4263602579bb4a615","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"80d7dc15805a93d520a249ac6d13d4f4df161c1b","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"401239811fa728fcdd53e360a91f157ffd23e1f4","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"3734d78210cceb2ee5615719a62a5c55ed381ff8","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"6a1bcab67bea797d83aa9dd948a0ac6ed52d121d","status":"affected"},{"type":"git","introduced":"c0cfa2d8a788fcf45df5bf4070ab2474c88d543a","fixed":"209fd720838aaf1420416494c5505096478156b4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.240","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.189","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.146","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.99","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.39","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.7","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.5","fixed":"5.10.240"},{"status":"affected","introduced":"5.11","fixed":"5.15.189"},{"status":"affected","introduced":"5.16","fixed":"6.1.146"},{"status":"affected","introduced":"6.2","fixed":"6.6.99"},{"status":"affected","introduced":"6.7","fixed":"6.12.39"},{"status":"affected","introduced":"6.13","fixed":"6.15.7"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c5496ee685c48ed1cc183cd4263602579bb4a615","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80d7dc15805a93d520a249ac6d13d4f4df161c1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/401239811fa728fcdd53e360a91f157ffd23e1f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3734d78210cceb2ee5615719a62a5c55ed381ff8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6a1bcab67bea797d83aa9dd948a0ac6ed52d121d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/209fd720838aaf1420416494c5505096478156b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:57:17.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38462","url":"https://www.cve.org/CVERecord?id=CVE-2025-38462","licence":"CVE Terms of Use","modified":"2026-11-05T21:02:39.527Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38462","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38462","licence":"Public domain","modified":"2026-11-05T21:18:32.837Z"}],"updatedAt":"2026-11-25T22:59:01.730Z","epss":{"score":0.00146,"percentile":0.0407,"date":"2026-12-01T12:00:22.000Z"}}