# CVE-2023-54250: ksmbd: avoid out of bounds access in decode_preauth_ctxt()

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2025-12-30T12:15:47.467Z
- Modified: 2026-08-05T09:18:25.471Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: avoid out of bounds access in decode_preauth_ctxt()

Confirm that the accessed pneg_ctxt->HashAlgorithms address sits within
the SMB request boundary; deassemble_neg_contexts() only checks that the
eight byte smb2_neg_context header + (client controlled) DataLength are
within the packet boundary, which is insufficient.

Checking for sizeof(struct smb2_preauth_neg_context) is overkill given
that the type currently assumes SMB311_SALT_SIZE bytes of trailing Salt.

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 39f5b4b313b445c980a2a295bed28228c29228ed; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before a2f6ded41bec1d3be643c80a5eb97f1680309001; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before f02edb9debbd36f44efa7567031485892c7df60d; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before e7067a446264a7514fa1cfaa4052cdb6803bc6a2; 5.15 (not affected: before 5.15; from 5.15.145 up to 5.15.*; from 6.1.25 up to 6.1.*; from 6.2.12 up to 6.2.*; from 6.3 up to *)

## References

- <https://git.kernel.org/stable/c/39f5b4b313b445c980a2a295bed28228c29228ed>
- <https://git.kernel.org/stable/c/a2f6ded41bec1d3be643c80a5eb97f1680309001>
- <https://git.kernel.org/stable/c/f02edb9debbd36f44efa7567031485892c7df60d>
- <https://git.kernel.org/stable/c/e7067a446264a7514fa1cfaa4052cdb6803bc6a2>

## Sources

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

---

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