[PATCH 0/2] ksmbd: harden SMB 3.1.1 compression receive path
Anatolii Shumak <[email protected]> Sat, 1 Aug 2026 08:19:51 +0300
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
Hi Namjae, As requested in https://github.com/namjaejeon/ksmbd/issues/529, please find two patches: 1) Reject Pattern_V1 on decompress when it was not negotiated. 2) Validate compression Flags before kvmalloc. Tested on 7.2.0-070200rc5-generic. Thanks, Anatolii Shumak Anatolii Shumak (2): smb: compress: reject Pattern_V1 when not negotiated ksmbd: validate compression Flags before kvmalloc fs/smb/common/compress/compress.c | 11 ++++++++--- fs/smb/common/compress/compress.h | 3 ++- fs/smb/server/compress.c | 12 +++++++++++- 3 files changed, 21 insertions(+), 5 deletions(-) -- 2.51.0.windows.2