Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Guruswamy Basavaiah <guruswamy.basavaiah@broadcom.com>
To: stable@vger.kernel.org, gregkh@linuxfoundation.org
Cc: ajay.kaher@broadcom.com, tapas.kundu@broadcom.com
Subject: [PATCH 6.1.y 0/2] Backport Fixes to linux-6.1.y
Date: Sun, 11 Feb 2024 01:36:07 +0530	[thread overview]
Message-ID: <20240210200607.3089190-3-guruswamy.basavaiah@broadcom.com> (raw)
In-Reply-To: <20240210200607.3089190-1-guruswamy.basavaiah@broadcom.com>

Here are the two backported patches aimed at addressing a crash.

Patch 1 fix validate offsets and lengths before dereferencing create
contexts in smb2_parse_contexts().

Patch 2 fix issue in patch 1.

The original patches were authored by Paulo Alcantara <pc@manguebit.com>.
Original Patches:
1. af1689a9b770 ("smb: client: fix potential OOBs in smb2_parse_contexts()")
2. 76025cc2285d ("smb: client: fix parsing of SMB3.1.1 POSIX create context")

Please review and consider applying these patches.

fs/smb/client/cached_dir.c |  8 +++++---
fs/smb/client/smb2pdu.c    | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------
fs/smb/client/smb2proto.h  | 12 +++++++-----
3 files changed, 68 insertions(+), 45 deletions(-)

  parent reply	other threads:[~2024-02-10 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-10 20:06 [PATCH 6.1.y 1/2] smb: client: fix potential OOBs in smb2_parse_contexts() Guruswamy Basavaiah
2024-02-10 20:06 ` [PATCH 6.1.y 2/2] smb: client: fix parsing of SMB3.1.1 POSIX create context Guruswamy Basavaiah
2024-02-10 20:06 ` Guruswamy Basavaiah [this message]
2024-02-20 15:38   ` [PATCH 6.1.y 0/2] Backport Fixes to linux-6.1.y Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240210200607.3089190-3-guruswamy.basavaiah@broadcom.com \
    --to=guruswamy.basavaiah@broadcom.com \
    --cc=ajay.kaher@broadcom.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=tapas.kundu@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox