Bug 15962 - SMB3 SESSION SETUP responses must always be signed
Summary: SMB3 SESSION SETUP responses must always be signed
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 major (vote)
Target Milestone: ---
Assignee: Samba release manager
QA Contact: Samba QA Contact
URL: https://lists.samba.org/archive/cifs-...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-02 20:23 UTC by Kacper
Modified: 2026-10-12 19:25 UTC (History)
3 users (show)

See Also:


Attachments
Decrypted SMB3 Session Setup - Samba (60.35 KB, image/png)
2026-01-09 11:47 UTC, Kacper
no flags Details
Decrypted SMB3 Session Setup - Windows Server 2019 (76.44 KB, image/png)
2026-01-09 11:48 UTC, Kacper
no flags Details
Patch for 4.25 (12.10 KB, patch)
2026-09-14 14:41 UTC, Volker Lendecke
metze: review+
Details
Patch for 4.24 (12.10 KB, patch)
2026-09-14 14:41 UTC, Volker Lendecke
metze: review+
Details
Patch for 4.23 (12.10 KB, patch)
2026-09-14 14:42 UTC, Volker Lendecke
metze: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kacper 2025-12-02 20:23:11 UTC
Windows 11 does not apply group policies at logon when Hardened UNC paths are configured with RequireMutualAuthentication=1 (Computer Configuration/Administrative Templates/Network/Network Provider, Hardened UNC Paths). This works without issues on Windows 10.

It appears that access to the SYSVOL share fails during logon. Error 2148073478 / Invalid Signature is logged in the Windows event log for the SYSVOL UNC path. According to https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/error-messages-smb-connections
 this error is related to the Secure Negotiate feature added to SMB 3.0 in Windows Server 2012 and Windows 8, but that predates Windows 10, which works correctly, and I am fairly certain Samba already supports this SMB3 feature.

Tested on 4.21.9 and 4.23.3.
Comment 1 Kacper 2025-12-02 20:23:49 UTC
Microsoft Customer Service and Support suggested it might be related to issue #15876, but that does not seem accurate because that security hardening was focused on Samba running as a member server in a Windows Active Directory environment, where Microsoft introduced schannel hardening changes on the server side. Microsoft support declined to investigate further, stating that Samba falls outside their support scope. I understand their position, but I was hoping they could explain why Windows behaves this way and whether SMB3 signing is failing or something else is occurring.

I hope dochelp will be more willing to assist with troubleshooting.
Comment 2 Kacper 2026-01-09 08:57:38 UTC
After troubleshooting with dochelp, we determined that the SESSION SETUP responses must always be signed, even when they are encapsulated within an SMB transform (e.g., when encryption is enabled).

See https://lists.samba.org/archive/cifs-protocol/2026-January/004670.html.
Comment 3 Stefan Metzmacher 2026-01-09 10:48:24 UTC
Do you have a network capture with decryption keys,
it would be good to look at how this happens.

Is this a multi-channel bind request or reauth?

See https://wiki.samba.org/index.php/Wireshark_Decryption
Comment 4 Kacper 2026-01-09 11:47:38 UTC
Created attachment 18794 [details]
Decrypted SMB3 Session Setup - Samba
Comment 5 Kacper 2026-01-09 11:48:04 UTC
Created attachment 18795 [details]
Decrypted SMB3 Session Setup - Windows Server 2019
Comment 6 Kacper 2026-01-09 11:57:40 UTC
(In reply to Stefan Metzmacher from comment #3)

I have network captures for both Samba ↔ Windows 11 and Windows Server 2019 ↔ Windows 11, and I also have the corresponding decryption keys. I’ve attached screenshots for the Session Setup response traces to this issue.

I’m a bit hesitant to share the full network captures publicly. While they shouldn’t contain any sensitive information, they weren’t captured entirely in isolation, so I’d feel more comfortable not posting them openly. If needed, I can send the full captures to you via email.

This happens during reauth.
Comment 7 Stefan Metzmacher 2026-01-10 19:11:44 UTC
(In reply to Kacper from comment #6)

Thanks! I think that's enough to reproduce it.
Comment 8 Samba QA Contact 2026-09-11 17:39:04 UTC
This bug was referenced in samba master:

2df8022bdc82e216973d8037e053821fe97c224a
4ecb6b83e55bfb62440c1b309bbaa18fd19bb202
5f0a2fec20fa71ccd75bb3d9aaa92cd1233a60db
8ae9253241c311fa3bbe65a98a8c97d9ec0c649b
f6790404d6fa04d438b952b6b8f908b6ab4f5d9b
235658e3ecc1d971e7f963edbeba828748871d1c
Comment 9 Volker Lendecke 2026-09-14 14:41:29 UTC
Created attachment 19209 [details]
Patch for 4.25
Comment 10 Volker Lendecke 2026-09-14 14:41:52 UTC
Created attachment 19210 [details]
Patch for 4.24
Comment 11 Volker Lendecke 2026-09-14 14:42:17 UTC
Created attachment 19211 [details]
Patch for 4.23
Comment 12 Samba QA Contact 2026-09-14 20:55:05 UTC
This bug was referenced in samba v4-24-test:

8c70a5fc99562a19e999c6913a131f4a6bf6fab9
6d446f6d0a2198eaa0863db9c5ec7b4fd6178509
790f544e77966b038bf6a7303c0598e6caeaf76f
1f8576834a30236e28e51fca4e531e23eab2a3c0
3d9dff69fd5b21366d28c7680e38cd90a59de49f
a422fae4069dae7bece7a3a3f8f726f712128b0b
Comment 13 Samba QA Contact 2026-09-15 18:58:04 UTC
This bug was referenced in samba v4-23-test:

6c5d8fcccb8df447777286c4f95191a1f2d82efa
b5ee6c9a6f95fe4d59a4d9c7a2669cd87a9abe6f
ac38c33562fd613f05555cf9ab8eb690f53edff9
526c62fc7b800bcc23d4fc719242e506b20dae4a
0cf81d5351def9372369cc400b7c05a8355a1337
236b3996424edcc85915932c8203931b9ea8b39d
Comment 14 Samba QA Contact 2026-09-16 18:29:04 UTC
This bug was referenced in samba v4-25-test:

63fdcb00e559914ed20385658e138022f1c9938f
9f3b75bc7654b85e3719c6c6664fdc4c50b6b75a
a635a1ac27e03e7ced5c2a22be8f41380f664115
3d45224be030a208c3583e5ba647519494bb1526
40afaa5caa13c631f42232a4687bb882e4b53f26
f76880fac1e3ba40ab28aee7cc6e70145238e7b7
Comment 15 Samba QA Contact 2026-09-24 21:58:35 UTC
This bug was referenced in samba v4-25-stable (Release samba-4.25.0):

63fdcb00e559914ed20385658e138022f1c9938f
9f3b75bc7654b85e3719c6c6664fdc4c50b6b75a
a635a1ac27e03e7ced5c2a22be8f41380f664115
3d45224be030a208c3583e5ba647519494bb1526
40afaa5caa13c631f42232a4687bb882e4b53f26
f76880fac1e3ba40ab28aee7cc6e70145238e7b7
Comment 16 Samba QA Contact 2026-10-01 19:47:06 UTC
This bug was referenced in samba v4-23-stable (Release samba-4.23.13):

6c5d8fcccb8df447777286c4f95191a1f2d82efa
b5ee6c9a6f95fe4d59a4d9c7a2669cd87a9abe6f
ac38c33562fd613f05555cf9ab8eb690f53edff9
526c62fc7b800bcc23d4fc719242e506b20dae4a
0cf81d5351def9372369cc400b7c05a8355a1337
236b3996424edcc85915932c8203931b9ea8b39d
Comment 17 Samba QA Contact 2026-10-12 19:25:49 UTC
This bug was referenced in samba v4-24-stable (Release samba-4.24.8):

8c70a5fc99562a19e999c6913a131f4a6bf6fab9
6d446f6d0a2198eaa0863db9c5ec7b4fd6178509
790f544e77966b038bf6a7303c0598e6caeaf76f
1f8576834a30236e28e51fca4e531e23eab2a3c0
3d9dff69fd5b21366d28c7680e38cd90a59de49f
a422fae4069dae7bece7a3a3f8f726f712128b0b