openwrt / openwrt/packages

ksmbd-server: SMB3 file copy fails on Windows 11 with "Invalid signature"

Open
#29,996 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug release/25.12
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

ksmbd-server

Maintainer

N/A (no PKG_MAINTAINER defined)

OpenWrt Version

25.12.5

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce
  1. Install OpenWrt 25.12.5 with ksmbd-server 3.5.6.

  2. Create a writable SMB share on an ext4 filesystem.

  3. Connect from Windows 11 24H2 using the default SMB client (SMB signing enabled).

  4. Verify that:

    • browsing directories works,
    • opening files works,
    • editing and saving files works.
  5. Copy a file using either:

    • Windows Explorer
    • or PowerShell:
Copy-Item "\\<server>\share\test.txt" "C:\Temp\"
  1. Observe that the copy fails with "Invalid signature".

  2. Force the server to SMB2.1 (server max protocol = SMB2_10), reconnect and repeat the same test.

  3. The same copy succeeds without any other changes.

Actual Behaviour

Windows successfully authenticates and establishes a signed SMB session.

The SMB share is fully accessible:

  • browsing directories works
  • opening files works
  • editing and saving files works
  • reading files (e.g. Get-Content) works

However, copying a file using Windows Explorer or PowerShell Copy-Item consistently fails with:

Copy-Item : Invalid signature.

The problem is 100% reproducible.

Additional observations:

  • SMB 3.1.1: fails
  • SMB 3.0.2: fails
  • SMB 2.1: works correctly

The following configuration changes were tested and did not change the behaviour:

  • server signing = disable
  • server signing = auto
  • server signing = mandatory
  • smb2 leases = no

The hardware crypto accelerator (Safexcel) was also disabled without any effect.

Based on the attached Windows PktMon capture, the failure appears to occur before the first SMB READ request, during the CREATE / QUERY_INFO sequence

PktMon capture, logs and ksmbd configuration can be provided if needed.

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with ksmbd-server 3.5.6 on OpenWrt 25.12.5, comparing SMB 3.1.1 and 3.0.2 against SMB 2.1 using Windows Explorer or PowerShell Copy-Item. Review the Windows PktMon capture, ksmbd logs, and configuration around the CREATE/QUERY_INFO sequence. Done means SMB3 file copies succeed without changing the other working operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, powershell
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.