diff options
| author | 2026-08-01 08:19:53 +0300 | |
|---|---|---|
| committer | 2026-08-03 11:21:22 -0500 | |
| commit | ba3afa8ccd154962c4a6b975b6e8b11027c5ab95 (patch) | |
| tree | 6fb9559341eeb175e786700cc2f523bfa3947268 /tools/lib/python/kdoc/python_version.py | |
| parent | smb: compress: reject Pattern_V1 when not negotiated (diff) | |
ksmbd: validate compression Flags before kvmalloc
ksmbd_decompress_request() allocated the decompressed request buffer
before smb_compression_decompress() rejected unknown transform Flags or
chained mode when it was not negotiated. A remote peer could force a
transient multi-megabyte allocation that was immediately freed on
-EINVAL.
Validate CHAINED/NONE Flags and compress_chained before kvmalloc.
Link: https://github.com/namjaejeon/ksmbd/issues/529
Fixes: a08de24c2b85 ("ksmbd: negotiate and decode SMB2 compression")
Signed-off-by: Anatolii Shumak <anatoliy.shumak@gmail.com>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
