CVE-2023-54250

ksmbd: avoid out of bounds access in decode_preauth_ctxt()

State
Published
Severity
8.2 High
Published
Dec 30, 2025
Updated
Aug 5, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 39f5b4b313b445c980a2a295bed28228c29228edAffected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before a2f6ded41bec1d3be643c80a5eb97f1680309001Affected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before f02edb9debbd36f44efa7567031485892c7df60dAffected
  • e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before e7067a446264a7514fa1cfaa4052cdb6803bc6a2Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.145 through 5.15.*Not affected
  • 6.1.25 through 6.1.*Not affected
  • 6.2.12 through 6.2.*Not affected
  • 6.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.