In the Linux kernel, the following vulnerability has been resolved:
ksmbd: transport_ipc: validate payload size before reading handle
handle_response() dereferences the payload as a 4-byte handle without verifying that the declared payload size is at least 4 bytes. A malformed or truncated message from ksmbd.mountd can lead to a 4-byte read past the declared payload size. Validate the size before dereferencing.
This is a minimal fix to guard the initial handle read.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0",
"signature_version": "v1",
"id": "CVE-2025-40084-1127c5d7",
"signature_type": "Function",
"digest": {
"function_hash": "94180540429871767856034728263758322225",
"length": 755.0
},
"deprecated": false,
"target": {
"function": "handle_response",
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2dc125f5da134c0915a840b62565c60a595673dd",
"signature_version": "v1",
"id": "CVE-2025-40084-19aceac5",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"261485748337029398611636520735484848735",
"282445973346458296835042765118841765915",
"258245638217033735752425007578446998771",
"83609258614457560366567746051254877586",
"131591686977374908973197085457020095966",
"179357488008043196293616664111239607201"
]
},
"deprecated": false,
"target": {
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@898d527ed94c19980a4d848f10057f1fed578ffb",
"signature_version": "v1",
"id": "CVE-2025-40084-2a874f28",
"signature_type": "Function",
"digest": {
"function_hash": "94180540429871767856034728263758322225",
"length": 755.0
},
"deprecated": false,
"target": {
"function": "handle_response",
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@867ffd9d67285612da3f0498ca618297f8e41f01",
"signature_version": "v1",
"id": "CVE-2025-40084-536b0eeb",
"signature_type": "Function",
"digest": {
"function_hash": "94180540429871767856034728263758322225",
"length": 755.0
},
"deprecated": false,
"target": {
"function": "handle_response",
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@898d527ed94c19980a4d848f10057f1fed578ffb",
"signature_version": "v1",
"id": "CVE-2025-40084-9447d36e",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"261485748337029398611636520735484848735",
"282445973346458296835042765118841765915",
"258245638217033735752425007578446998771",
"83609258614457560366567746051254877586",
"131591686977374908973197085457020095966",
"179357488008043196293616664111239607201"
]
},
"deprecated": false,
"target": {
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a02e432d5130da4c723aabe1205bac805889fdb2",
"signature_version": "v1",
"id": "CVE-2025-40084-9e348406",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"261485748337029398611636520735484848735",
"282445973346458296835042765118841765915",
"258245638217033735752425007578446998771",
"83609258614457560366567746051254877586",
"131591686977374908973197085457020095966",
"179357488008043196293616664111239607201"
]
},
"deprecated": false,
"target": {
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0",
"signature_version": "v1",
"id": "CVE-2025-40084-9e6f8b92",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"261485748337029398611636520735484848735",
"282445973346458296835042765118841765915",
"258245638217033735752425007578446998771",
"83609258614457560366567746051254877586",
"131591686977374908973197085457020095966",
"179357488008043196293616664111239607201"
]
},
"deprecated": false,
"target": {
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a02e432d5130da4c723aabe1205bac805889fdb2",
"signature_version": "v1",
"id": "CVE-2025-40084-a5e837c9",
"signature_type": "Function",
"digest": {
"function_hash": "206649881861069596488403617481245320097",
"length": 748.0
},
"deprecated": false,
"target": {
"function": "handle_response",
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2dc125f5da134c0915a840b62565c60a595673dd",
"signature_version": "v1",
"id": "CVE-2025-40084-bb7e725e",
"signature_type": "Function",
"digest": {
"function_hash": "206649881861069596488403617481245320097",
"length": 748.0
},
"deprecated": false,
"target": {
"function": "handle_response",
"file": "fs/smb/server/transport_ipc.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@867ffd9d67285612da3f0498ca618297f8e41f01",
"signature_version": "v1",
"id": "CVE-2025-40084-d2e400ef",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"261485748337029398611636520735484848735",
"282445973346458296835042765118841765915",
"258245638217033735752425007578446998771",
"83609258614457560366567746051254877586",
"131591686977374908973197085457020095966",
"179357488008043196293616664111239607201"
]
},
"deprecated": false,
"target": {
"file": "fs/smb/server/transport_ipc.c"
}
}
]