# CVE-2024-26954: ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-05-01T05:18:47.428Z
- Modified: 2026-08-05T11:28:35.439Z
- Weaknesses: CWE-125
- 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: fix slab-out-of-bounds in smb_strndup_from_utf16()

If ->NameOffset of smb2_create_req is smaller than Buffer offset of
smb2_create_req, slab-out-of-bounds read can happen from smb2_open.
This patch set the minimum value of the name offset to the buffer offset
to validate name length of smb2_create_req().

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before d70c2e0904ab3715c5673fd45788a464a246d1db; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3b8da67191e938a63d2736dabb4ac5d337e5de57; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 4f97e6a9d62cb1fce82fbf4baff44b83221bc178; from 0626e6641f6b467447c81dd7678a69c66f7746cf before a80a486d72e20bd12c335bcd38b6e6f19356b0aa; 5.15 (not affected: before 5.15; from 6.1.119 up to 6.1.*; from 6.6.32 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.15 before 6.1.119; from 6.2 before 6.7.12; from 6.8 before 6.8.3

## Every score

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

## References

- <https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db> (mailing-list, patch)
- <https://git.kernel.org/stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72>
- <https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57> (mailing-list, patch)
- <https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178> (mailing-list, patch)
- <https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa> (mailing-list, patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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