8.2high
ksmbd: avoid out of bounds access in decode_preauth_ctxt()
- Severity
- 8.2high CVSS:3.1 by Linux
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ksmbd: evitar el acceso fuera de límites en decode_preauth_ctxt() Confirmar que la dirección pneg_ctxt->HashAlgorithms accedida se encuentra dentro del límite de la solicitud SMB; deassemble_neg_contexts() solo verifica que el encabezado smb2_neg_context de ocho bytes + (DataLength controlada por el cliente) estén dentro del límite del paquete, lo cual es insuficiente. Verificar sizeof(struct smb2_preauth_neg_context) es excesivo dado que el tipo actualmente asume SMB311_SALT_SIZE bytes de Salt final.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54250 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-54250 changed 2026-08-04 | Public domain |