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
[
{
"signature_type": "Function",
"id": "CVE-2025-38462-043607a6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-151d0f2a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@209fd720838aaf1420416494c5505096478156b4",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-158894df",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-1d29694c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a1bcab67bea797d83aa9dd948a0ac6ed52d121d",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-247fa60e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-292017ea",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@401239811fa728fcdd53e360a91f157ffd23e1f4",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-2afbc668",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80d7dc15805a93d520a249ac6d13d4f4df161c1b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-389fb325",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@401239811fa728fcdd53e360a91f157ffd23e1f4",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-42a9c8d9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "26238202335316610988216552559920612973",
"length": 485.0
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-4dc64630",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-54181473",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c5496ee685c48ed1cc183cd4263602579bb4a615",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-55716035",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3734d78210cceb2ee5615719a62a5c55ed381ff8",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-599d81f8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@209fd720838aaf1420416494c5505096478156b4",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-6c743b09",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-8ebbcd05",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@401239811fa728fcdd53e360a91f157ffd23e1f4",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_dev_do_ioctl",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "206238391650346459057186560982134957576",
"length": 446.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-a67c3d1a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3734d78210cceb2ee5615719a62a5c55ed381ff8",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-b94cb4e5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a1bcab67bea797d83aa9dd948a0ac6ed52d121d",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-ec4b19b7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@209fd720838aaf1420416494c5505096478156b4",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Line",
"id": "CVE-2025-38462-eef441ac",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3734d78210cceb2ee5615719a62a5c55ed381ff8",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"5107003827199017966589241012357099919",
"227980689067802969885591022143527818307",
"255256869632421978584465887952651468689",
"137294749695818540812095512164392122443",
"71346808290805199805043363594470233966",
"168343062020929747365653168129367618165",
"241942327361499102949497179375075723106",
"72803918062676069026053685318028586562",
"20164931990144118666677939594439693279",
"231043925883049377318227316187414548364",
"87227898888037171233908323410874430819",
"301404497948925041305200546376053873517",
"68181132477590710951349309613556056786",
"107872772420383812728518858493612334917",
"251905381607953400643058911687063551669",
"248714580673342505658986402974177174738",
"30830747737001533981406474609407282386"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-ef1d17b8",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
},
{
"signature_type": "Function",
"id": "CVE-2025-38462-fafe3393",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a1bcab67bea797d83aa9dd948a0ac6ed52d121d",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vsock_find_cid",
"file": "net/vmw_vsock/af_vsock.c"
},
"digest": {
"function_hash": "180602272182277252028416100404000950327",
"length": 269.0
}
}
]