[PATCH 6.8 196/399] ksmbd: fix potencial out-of-bounds when buffer offset is invalid