[GIT PULL] ksmbd server fixes

From: Steve French

Date: Thu Mar 26 2026 - 22:49:48 EST


Please pull the following changes since commit
c369299895a591d96745d6492d4888259b004a9e:

Linux 7.0-rc5 (2026-03-22 14:42:17 -0700)

are available in the Git repository at:

git://git.samba.org/ksmbd.git tags/v7.0-rc5-ksmbd-srv-fixes

for you to fetch changes up to beef2634f81f1c086208191f7228bce1d366493d:

ksmbd: fix potencial OOB in get_file_all_info() for compound
requests (2026-03-25 18:58:40 -0500)

----------------------------------------------------------------
Five server fixes
- Fix out of bounds write
- Fix for better calculating max output buffers
- Fix memory leaks in SMB2/SMB3 lock
- Fix use after free
- Multichannel fix
----------------------------------------------------------------
Hyunwoo Kim (1):
ksmbd: do not expire session on binding failure

Namjae Jeon (2):
ksmbd: replace hardcoded hdr2_len with offsetof() in
smb2_calc_max_out_buf_len()
ksmbd: fix potencial OOB in get_file_all_info() for compound requests

Werner Kasselman (2):
ksmbd: fix use-after-free and NULL deref in smb_grant_oplock()
ksmbd: fix memory leaks and NULL deref in smb2_lock()

fs/smb/server/oplock.c | 72 ++++++++++++++++++++------------
fs/smb/server/smb2pdu.c | 73 +++++++++++++++++++++++----------
2 files changed, 97 insertions(+), 48 deletions(-)

--
Thanks,

Steve