{"id":"CVE-2024-26954","summary":"ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()\n\nIf -\u003eNameOffset of smb2_create_req is smaller than Buffer offset of\nsmb2_create_req, slab-out-of-bounds read can happen from smb2_open.\nThis patch set the minimum value of the name offset to the buffer offset\nto validate name length of smb2_create_req().","modified":"2026-04-02T10:06:32.475424Z","published":"2024-05-01T05:18:47.428Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26954.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26954.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26954"},{"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":"d70c2e0904ab3715c5673fd45788a464a246d1db"},{"fixed":"9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72"},{"fixed":"3b8da67191e938a63d2736dabb4ac5d337e5de57"},{"fixed":"4f97e6a9d62cb1fce82fbf4baff44b83221bc178"},{"fixed":"a80a486d72e20bd12c335bcd38b6e6f19356b0aa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26954.json"}}],"schema_version":"1.7.5"}