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 vsocktransportlocal_cid() 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
[
{
"digest": {
"length": 269.0,
"function_hash": "180602272182277252028416100404000950327"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_find_cid"
},
"signature_type": "Function",
"id": "CVE-2025-38462-043607a6",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"deprecated": false
},
{
"digest": {
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
],
"threshold": 0.9
},
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"signature_type": "Line",
"id": "CVE-2025-38462-158894df",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"deprecated": false
},
{
"digest": {
"length": 269.0,
"function_hash": "180602272182277252028416100404000950327"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_find_cid"
},
"signature_type": "Function",
"id": "CVE-2025-38462-247fa60e",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"deprecated": false
},
{
"digest": {
"length": 446.0,
"function_hash": "206238391650346459057186560982134957576"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_dev_do_ioctl"
},
"signature_type": "Function",
"id": "CVE-2025-38462-2afbc668",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"deprecated": false
},
{
"digest": {
"length": 485.0,
"function_hash": "26238202335316610988216552559920612973"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_dev_do_ioctl"
},
"signature_type": "Function",
"id": "CVE-2025-38462-42a9c8d9",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"deprecated": false
},
{
"digest": {
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
],
"threshold": 0.9
},
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"signature_type": "Line",
"id": "CVE-2025-38462-4dc64630",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"deprecated": false
},
{
"digest": {
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
],
"threshold": 0.9
},
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"signature_type": "Line",
"id": "CVE-2025-38462-54181473",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"deprecated": false
},
{
"digest": {
"length": 446.0,
"function_hash": "206238391650346459057186560982134957576"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_dev_do_ioctl"
},
"signature_type": "Function",
"id": "CVE-2025-38462-6c743b09",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"deprecated": false
},
{
"digest": {
"length": 269.0,
"function_hash": "180602272182277252028416100404000950327"
},
"target": {
"file": "net/vmw_vsock/af_vsock.c",
"function": "vsock_find_cid"
},
"signature_type": "Function",
"id": "CVE-2025-38462-ef1d17b8",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"deprecated": false
}
]