7.1high
ksmbd: transport_ipc: validate payload size before reading handle
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before a02e432d5130da4c723aabe1205bac805889fdb2, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2dc125f5da134c0915a840b62565c60a595673dd, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 898d527ed94c19980a4d848f10057f1fed578ffb, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 867ffd9d67285612da3f0498ca618297f8e41f01, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0, 5.15 Not affected: before 5.15, from 6.1.158 up to 6.1.*, from 6.6.115 up to 6.6.*, from 6.12.56 up to 6.12.*, from 6.17.6 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: transport_ipc: validar el tamaño de la carga útil antes de leer el handle handle_response() desreferencia la carga útil como un handle de 4 bytes sin verificar que el tamaño de la carga útil declarado sea de al menos 4 bytes. Un mensaje malformado o truncado de ksmbd.mountd puede provocar una lectura de 4 bytes más allá del tamaño de la carga útil declarado. Validar el tamaño antes de desreferenciar. Esta es una corrección mínima para proteger la lectura inicial del handle.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40084 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-40084 changed 2026-10-19 | Public domain |