{"id":"CVE-2024-26936","summary":"ksmbd: validate request buffer size in smb2_allocate_rsp_buf()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate request buffer size in smb2_allocate_rsp_buf()\n\nThe response buffer should be allocated in smb2_allocate_rsp_buf\nbefore validating request. But the fields in payload as well as smb2 header\nis used in smb2_allocate_rsp_buf(). This patch add simple buffer size\nvalidation to avoid potencial out-of-bounds in request buffer.","modified":"2026-04-16T04:41:40.708461764Z","published":"2024-05-01T05:26:51.773Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26936.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/17cf0c2794bdb6f39671265aa18aea5c22ee8c4a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/21ff9d7d223c5c19cb4334009e4c0c83a2f4d674"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5c20b242d4fed73a93591e48bfd9772e2322fb11"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f3d0bf1d0c62b539d54c5b9108a845cff619b99"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26936.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26936"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"8f3d0bf1d0c62b539d54c5b9108a845cff619b99"},{"fixed":"21ff9d7d223c5c19cb4334009e4c0c83a2f4d674"},{"fixed":"5c20b242d4fed73a93591e48bfd9772e2322fb11"},{"fixed":"2c27a64a2bc47d9bfc7c3cf8be14be53b1ee7cb6"},{"fixed":"17cf0c2794bdb6f39671265aa18aea5c22ee8c4a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26936.json"}}],"schema_version":"1.7.5"}