summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYifan Zhang <yfzhang23@stu.pku.edu.cn>2026-11-03 10:45:19 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-11-03 18:23:33 +0900
commite49296d51ccbf2ad0ed0484db1382f1d7217bd6e (patch)
treef97c793f207b3c0d8d1dab2ec3770cfad2036acf /scripts
parentffc855fe16afe02b22305111aa68cd8d07360941 (diff)
ksmbd: require NUL-terminated EA names
smb2_set_ea() verifies that the byte reserved for the declared EA-name terminator lies inside the request, but it does not verify that the byte is zero. With SMB debug logging enabled, the name is passed to %s and the diagnostic reads beyond the request allocation. KASAN reports: BUG: KASAN: slab-out-of-bounds in string Read of size 1 string vsnprintf _printk smb2_set_ea smb2_set_info Reject an EA entry whose declared terminator byte is nonzero. Return -EBADMSG for the malformed buffer, and map that error to STATUS_EA_LIST_INCONSISTENT for both SET_INFO and CREATE. Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3") Suggested-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Yifan Zhang <yfzhang23@stu.pku.edu.cn> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions