diff options
| author | 2026-09-07 13:35:51 +0900 | |
|---|---|---|
| committer | 2026-10-21 08:55:11 +0900 | |
| commit | bc0e0f5ac1d7b044d403f859406b4b66d4b1ce9b (patch) | |
| tree | 13f85c93207a678a00752b8c77734fcd9c17e027 /scripts/Makefile.thinlto | |
| parent | Merge tag 'perf-core-2026-10-18' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff) | |
ksmbd: prevent stale data from being written by SMB2 WRITE requests
Initialize the compatibility byte in request buffers without zeroing
the entire allocation. Keep the one-byte compatibility exception for
SMB2 messages so valid zero-length WRITE requests remain compatible,
and validate the data range in the WRITE handlers against the current
compound request before accessing it.
This prevents stale request-buffer data from being written to files or
sent to IPC pipes.
Fixes: 443d61d1fa9f ("ksmbd: allocate one more byte for implied bcc[0]")
Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-32436
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
