# CVE-2023-3865: ksmbd: fix out-of-bound read in smb2_write

- 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: 2025-08-16T13:27:56.403Z
- Modified: 2026-08-15T13:17:39.417Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 3813eee5154d6a4c5875cb4444cb2b63bac8947f; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before c86211159bc3178b891e0d60e586a32c7b6a231b; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 58a9c41064df27632e780c5a3ae3e0e4284957d1; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 5fe7f7b78290638806211046a99f031ff26164e1; 5.15 (not affected: before 5.15; from 5.15.121 up to 5.15.*; from 6.1.36 up to 6.1.*; from 6.3.10 up to 6.3.*; from 6.4 up to *)
- linux linux_kernel: from 5.15 before 5.15.121; from 5.16 before 6.1.36; from 6.2 before 6.3.10; 6.4

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

## Sources

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

---

Page: https://cve.day/CVE-2023-3865 · Whole record: https://cve.day/CVE-2023-3865.json · Rebuilt by cve.day 2026-11-25T22:58:34.735Z
