ksmbd: transport_ipc: validate payload size before reading handle
Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.
cve-program · CVE-2025-40084
PublishedIn 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-40084 · CVE overview and exploitation status
cve-program · CVE-2025-40084
- https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2
- https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd
- https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb
- https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01
- https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.