8.8high
ksmbd: prevent out-of-bounds stream writes by validating *pos
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.80% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did not validate whether the write offset (*pos) was within the bounds of the existing stream data length (v_len). If *pos was greater than or equal to v_len, this could lead to an out-of-bounds memory write. This patch adds a check to ensure *pos is less than v_len before proceeding. If the condition fails, -EINVAL is returned.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 7f61da79df86fd140c7768e668ad846bfa7ec8e1, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 04c8a38c60346bb5a7c49b276de7233f703ce9cb, from 0626e6641f6b467447c81dd7678a69c66f7746cf before d62ba16563a86aae052f96d270b3b6f78fca154c, from 0626e6641f6b467447c81dd7678a69c66f7746cf before e6356499fd216ed6343ae0363f4c9303f02c5034, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 0ca6df4f40cf4c32487944aaf48319cb6c25accc, 5.15 Not affected: before 5.15, from 6.1.139 up to 6.1.*, from 6.6.91 up to 6.6.*, from 6.12.29 up to 6.12.*, from 6.14.7 up to 6.14.*, from 6.15 up to * | CVE List |
| linux linux_kernel | from 5.15 before 6.1.139, from 6.2 before 6.6.91, from 6.7 before 6.12.29, from 6.13 before 6.14.7, 6.15 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ksmbd: prevent out-of-bounds stream writes by validating *pos ksmbd_vfs_stream_write() did not validate whether the write offset (*pos) was within the bounds of the existing stream data length (v_len). If *pos was greater than or equal to v_len, this could lead to an out-of-bounds memory write. This patch adds a check to ensure *pos is less than v_len before proceeding. If the condition fails, -EINVAL is returned.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: impide escrituras de flujo fuera de los límites mediante la validación de *pos. ksmbd_vfs_stream_write() no validaba si el desplazamiento de escritura (*pos) estaba dentro de los límites de la longitud de datos del flujo existente (v_len). Si *pos era mayor o igual que v_len, esto podía provocar una escritura en memoria fuera de los límites. Este parche añade una comprobación para garantizar que *pos sea menor que v_len antes de continuar. Si la condición falla, se devuelve -EINVAL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-37947 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-37947 changed 2026-07-30 | Public domain |