Clarification: regarding SMB2_GLOBAL_CAP_ENCRYPTION checks in 3.3.5.5 and 3.3.5.7 for SMB 3.1.1 post-2024 updates

E-8437 21 Reputation points
2026-11-29T11:08:21.7166667+00:00

Hello,

We are seeking clarification regarding a discrepancy in [MS-SMB2] involving the SMB2_GLOBAL_CAP_ENCRYPTION client capability flag when negotiating the SMB 3.1.1 dialect.

Relevant Specification References

  1. Client Behavior: In Section 3.2.4.2.2.2, a client proposing SMB 3.1.1 that supports at least one encryption cipher SHOULD set SMB2_GLOBAL_CAP_ENCRYPTION in the Capabilities field of the SMB2 NEGOTIATE Request. Product Behavior Note <133> states that Windows 11 (without KB5036894 / KB5036980) and Windows Server 2022 (without KB5036909 / KB5036910) always set this flag - indicating that starting with those April 2024 updates, Windows clients may omit SMB2_GLOBAL_CAP_ENCRYPTION when negotiating SMB 3.1.1.
  2. Server Behavior:
    • Section 3.3.5.5 (SMB2 SESSION_SETUP Request): For the SMB 3.x dialect family, if global EncryptData is TRUE, RejectUnencryptedAccess is TRUE, and SMB2_GLOBAL_CAP_ENCRYPTION is not set in Connection.ClientCapabilities, the server MUST fail the request with STATUS_ACCESS_DENIED.
    • Section 3.3.5.7 (SMB2 TREE_CONNECT Request): For the SMB 3.x dialect family, if TreeConnect.Share.EncryptData is TRUE and SMB2_GLOBAL_CAP_ENCRYPTION is not set in Connection.ClientCapabilities, the server MUST fail the request with STATUS_ACCESS_DENIED (notably without conditioning on RejectUnencryptedAccess).

Question

What should a SMB 3.1.1 server do when a post-April 2024 Windows client omits SMB2_GLOBAL_CAP_ENCRYPTION and connects to an encrypted share (TreeConnect.Share.EncryptData = TRUE)?

Should the server skip the SMB2_GLOBAL_CAP_ENCRYPTION check in Section 3.3.5.7 whenever a valid cipher was negotiated via SMB2_ENCRYPTION_CAPABILITIES (i.e., Connection.CipherId is non-empty), or is rejecting with STATUS_ACCESS_DENIED still the expected behavior?

Thank you for your assistance.

Best regards,

Einat

Windows development | Windows Open Specifications
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-29T11:09:28.4166667+00:00

    A conforming SMB 3.1.1 server must return STATUS_ACCESS_DENIED for an encrypted share when RejectUnencryptedAccess is TRUE and Connection.ClientCapabilities lacks SMB2_GLOBAL_CAP_ENCRYPTION; a nonzero Connection.CipherId does not authorize skipping that check.

    Current TREE_CONNECT requirements

    The current Section [IP Address] has three relevant predicates for the client-side check:

    1. Connection.Dialect belongs to the SMB 3.x family.
    2. Share.EncryptData is TRUE.
    3. RejectUnencryptedAccess is TRUE.
    4. Connection.ClientCapabilities does not contain SMB2_GLOBAL_CAP_ENCRYPTION.

    When all are true, the server MUST fail TREE_CONNECT with STATUS_ACCESS_DENIED.^1^

    Therefore, the decision is:

    if dialect_is_smb3
       and share_encrypt_data
       and reject_unencrypted_access
       and not client_global_cap_encryption:
           return STATUS_ACCESS_DENIED
    

    The current clause does condition the check on RejectUnencryptedAccess. If that setting is FALSE, this particular mandatory rejection does not apply. Windows SMB servers set RejectUnencryptedAccess to TRUE by default; the documented registry setting can change it to FALSE.^2^

    Why Connection.CipherId is not a substitute

    For SMB 3.1.1, the two values represent different negotiated state:

    • Connection.ClientCapabilities is copied from the Capabilities field of the client's SMB2 NEGOTIATE request.
    • Connection.CipherId is selected while processing the client's SMB2_ENCRYPTION_CAPABILITIES context; it is set to zero if there is no common cipher.
    • If Connection.CipherId is nonzero, the server sets the encryption bit in Connection.ServerCapabilities. It does not add that bit to Connection.ClientCapabilities.^3^

    Consequently, a common cipher proves algorithm overlap, but the current normative TREE_CONNECT test still independently examines the capability bit received from the client. Section [IP Address].4 also conditions server-side message encryption on Connection.ClientCapabilities containing that bit, reinforcing that the bit remains operational state rather than being replaced by CipherId.^4^

    Effect of the April 2024 product note

    The client rule for SMB 3.1.1 remains a SHOULD: an encryption-capable client supporting an applicable cipher should set SMB2_GLOBAL_CAP_ENCRYPTION; it must also send SMB2_ENCRYPTION_CAPABILITIES when IsEncryptionSupported is true.^5^

    Product Behavior Note <133> says the listed Windows versions without the April 2024 updates always set the bit. Because Appendix A states that a KB-qualified entry denotes behavior changed by that update, the note establishes that the unconditional pre-update behavior changed; it does not define a server exception or say that CipherId replaces the bit.^2^

    The published revision history includes multiple revisions after April 2024, while the current Sections [IP Address] and [IP Address] retain the client-capability checks.^6^ Section [IP Address] likewise still requires rejection during SESSION_SETUP when global EncryptData, RejectUnencryptedAccess, and the missing client bit coincide.^7^

    Thus, there is no documented SMB 3.1.1 dialect-specific exception in the current clauses. An implementation that accepts the connection solely because Connection.CipherId != 0 would be applying an extension not specified by [MS-SMB2].

    If an updated Windows client actually sends an encryption context with a common cipher but omits the global capability bit, preserve a packet trace of the complete NEGOTIATE exchange and report it through the Windows Open Specifications support channel as a potential product/specification interoperability issue. The available public specification does not document the circumstances under which updated Windows intentionally omits the bit.


    References

    1. [IP Address] Receiving an SMB2 TREE_CONNECT Request
    2. 6 Appendix A: Product Behavior
    3. [IP Address] Receiving an SMB2 NEGOTIATE Request
    4. [IP Address].4 Encrypting the Message
    5. [IP Address].2.2 SMB2-Only Negotiate
    6. [MS-SMB2]: Server Message Block (SMB) Protocol Versions 2 and 3
    7. [IP Address] Receiving an SMB2 SESSION_SETUP Request
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Tom Jebo 2,451 Reputation points Microsoft Employee Moderator
    2026-11-29T16:58:10.3066667+00:00

    Hi Einat (E-8437),

    Thanks for reaching out to the Open Specifications team regarding post-April 2024 Windows client behavior when it omits SMB2_GLOBAL_CAP_ENCRYPTION and connects to an encrypted share (TreeConnect.Share.EncryptData = TRUE). One of our team will post here shortly to assist you with this question.

    Best regards, 
    Tom Jebo 
    Microsoft Open Specifications Support

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.