[PATCH v6.1 0/2] ksmbd: fix potencial out-of-bounds when buffer offset is invalid

Vamsi Krishna Brahmajosyula posted 2 patches 1 week ago
fs/smb/server/smb2misc.c | 26 ++++++++++++++++------
fs/smb/server/smb2pdu.c  | 48 ++++++++++++++++++++++------------------
2 files changed, 45 insertions(+), 29 deletions(-)
[PATCH v6.1 0/2] ksmbd: fix potencial out-of-bounds when buffer offset is invalid
Posted by Vamsi Krishna Brahmajosyula 1 week ago
The dependent patch (slab-out-of-bounds) is backported from 6.7 instead of 6.6.
In the 6.6 commit (9e4937cbc150f), the upstream commit id points to an incorrect one.

Namjae Jeon (2):
  ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
  ksmbd: fix potencial out-of-bounds when buffer offset is invalid

 fs/smb/server/smb2misc.c | 26 ++++++++++++++++------
 fs/smb/server/smb2pdu.c  | 48 ++++++++++++++++++++++------------------
 2 files changed, 45 insertions(+), 29 deletions(-)

-- 
2.39.4
Re: [PATCH v6.1 0/2] ksmbd: fix potencial out-of-bounds when buffer offset is invalid
Posted by Namjae Jeon 4 days, 14 hours ago
On Fri, Nov 15, 2024 at 5:32 PM Vamsi Krishna Brahmajosyula
<vamsi-krishna.brahmajosyula@broadcom.com> wrote:
>
> The dependent patch (slab-out-of-bounds) is backported from 6.7 instead of 6.6.
> In the 6.6 commit (9e4937cbc150f), the upstream commit id points to an incorrect one.
Looks good to me:)
Thanks for backporting ksmbd's fixes to stable 6.1 kernel.
>
> Namjae Jeon (2):
>   ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
>   ksmbd: fix potencial out-of-bounds when buffer offset is invalid
>
>  fs/smb/server/smb2misc.c | 26 ++++++++++++++++------
>  fs/smb/server/smb2pdu.c  | 48 ++++++++++++++++++++++------------------
>  2 files changed, 45 insertions(+), 29 deletions(-)
>
> --
> 2.39.4
>