]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ksmbd: validate handle for create or get object id
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 21 Jun 2026 10:39:59 +0000 (19:39 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Jun 2026 01:15:05 +0000 (20:15 -0500)
commit7d258465ea49d82668f52de96f3f0c84727003e4
tree549ccd7d6c18dd05a69a48f7f811262f49e1923d
parent3f67e624e591747c2b2c9c607a76d79f7ffdcabc
ksmbd: validate handle for create or get object id

FSCTL_CREATE_OR_GET_OBJECT_ID returned a dummy successful response without
checking whether the request handle was valid. That let an invalid related
compound handle succeed in smb2.compound.related5, although the client
expected STATUS_FILE_CLOSED.

Look up the file handle before building the object id response and fail
with STATUS_FILE_CLOSED when the handle is invalid or already closed.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c