]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ksmbd: align aux_payload_buf to avoid OOB reads in cryptographic operations
authorNorbert Szetei <norbert@doyensec.com>
Sat, 30 Nov 2024 15:56:14 +0000 (16:56 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 5 Dec 2024 01:45:28 +0000 (19:45 -0600)
commit06a025448b572c3bd78dd23a31488a0907cd9512
tree8eeeb25b31c175a126a46b3a048522d1aa1fedcb
parent313dab082289e460391c82d855430ec8a28ddf81
ksmbd: align aux_payload_buf to avoid OOB reads in cryptographic operations

The aux_payload_buf allocation in SMB2 read is performed without ensuring
alignment, which could result in out-of-bounds (OOB) reads during
cryptographic operations such as crypto_xor or ghash. This patch aligns
the allocation of aux_payload_buf to prevent these issues.
(Note that to add this patch to stable would require modifications due
to recent patch "ksmbd: use __GFP_RETRY_MAYFAIL")

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