Skip to content

[FIX] multiple SMB server fixes#21

Merged
MatrixEditor merged 2 commits intomasterfrom
fix/smb-server-fixes
Feb 23, 2026
Merged

[FIX] multiple SMB server fixes#21
MatrixEditor merged 2 commits intomasterfrom
fix/smb-server-fixes

Conversation

@MatrixEditor
Copy link
Owner

Changes

  • remove invalid SMB 2.??? mapping
  • select correct dialect in smb2_negotiate_protocol
  • handle wildcard dialect correctly in smb1_negotiate_protocol
  • fix parsing of negotiate context capabilities in SMB3_get_target_capabilities
  • remove hardcoded padding in smb2_negotiate
  • report invalid empty dialect list in smb1_negotiate_protocol and smb2_negotiate_protocol
  • fix invalid token length check in authenticate
  • change negotiate context padding to 0x00

Closes #20

---

+ remove invalid SMB 2.??? mapping
+ select correct dialect in smb2_negotiate_protocol
+ handle wildcard dialect correctly in smb1_negotiate_protocol
+ fix parsing of negotiate context capabilities in
SMB3_get_target_capabilities
+ remove hardcoded padding in smb2_negotiate
+ report invalid empty dialect list in smb1_negotiate_protocol and smb2_negotiate_protocol
+ fix invalid token length check in authenticate
+ change negotiate context padding to 0x00
@MatrixEditor MatrixEditor self-assigned this Feb 23, 2026
@MatrixEditor MatrixEditor added Type - Bug Protocol: SMB Errors/Features related to the SMB server labels Feb 23, 2026
@MatrixEditor MatrixEditor merged commit c84b529 into master Feb 23, 2026
@MatrixEditor MatrixEditor deleted the fix/smb-server-fixes branch February 23, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Protocol: SMB Errors/Features related to the SMB server Type - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SMB dialect negotiation and other SMB bugs

1 participant