8.2high
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
- Severity
- 8.2high CVSS:3.1 by Linux
- Exploit likelihood
- 0.60% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8f3d0bf1d0c62b539d54c5b9108a845cff619b99, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 21ff9d7d223c5c19cb4334009e4c0c83a2f4d674, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 5c20b242d4fed73a93591e48bfd9772e2322fb11, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 17cf0c2794bdb6f39671265aa18aea5c22ee8c4a, 5.15 Not affected: before 5.15, from 5.15.159 up to 5.15.*, from 6.1.88 up to 6.1.*, from 6.6.29 up to 6.6.*, from 6.8.8 up to 6.8.*, from 6.9 up to * | CVE List |
| linux linux_kernel | from 5.15 before 5.15.159, from 5.16 before 6.1.88, from 6.2 before 6.6.29, from 6.7 before 6.8.8, 6.9 | NVD |
All scores
| Linux | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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 none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate request buffer size in smb2_allocate_rsp_buf() The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: validar el tamaño del búfer de solicitud en smb2_allocate_rsp_buf() El búfer de respuesta debe asignarse en smb2_allocate_rsp_buf antes de validar la solicitud. Pero los campos en el payload y el encabezado smb2 se usan en smb2_allocate_rsp_buf(). Este parche agrega una validación simple del tamaño del búfer para evitar posibles límites en el búfer de solicitud.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26936 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-26936 changed 2026-08-04 | Public domain |