# CVE-2024-26936: ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-05-01T05:26:51.773Z
- Modified: 2026-08-05T11:28:27.772Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99> (patch)
- <https://git.kernel.org/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674> (patch)
- <https://git.kernel.org/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11> (patch)
- <https://git.kernel.org/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6> (patch)
- <https://git.kernel.org/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a> (patch)

## Sources

- CVE List: [CVE-2024-26936](https://www.cve.org/CVERecord?id=CVE-2024-26936), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26936](https://nvd.nist.gov/vuln/detail/CVE-2024-26936), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26936 · Whole record: https://cve.day/CVE-2024-26936.json · Rebuilt by cve.day 2026-11-25T22:58:39.723Z
