Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.org>
To: Abdifatah Suruur <suruurism@gmail.com>,
	Steve French <smfrench@gmail.com>
Cc: linux-cifs@vger.kernel.org,
	Abdifatah Suruur <suruurism@gmail.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] smb: client: reject oversized SMB1 SET_SECURITY_DESC data
Date: Thu, 26 Nov 2026 12:17:31 -0300	[thread overview]
Message-ID: <0123330912f899e2f60ea647d767880d@manguebit.org> (raw)
In-Reply-To: <20261118125249.25375-1-suruurism@gmail.com>

Abdifatah Suruur <suruurism@gmail.com> writes:

> CIFSSMBSetCIFSACL() copies acllen bytes into the single cifs_buf_get()
> request buffer at data_offset without checking that the data fits.  The
> buffer is CIFSMaxBufSize + MAX_SMB2_HDR_SIZE bytes, while acllen comes
> from the rewritten security descriptor produced by id_mode_to_cifs_acl().
> A malicious server can return a descriptor whose rewritten ACL is larger
> than the buffer, so a chmod()/chown() on a cifsacl mount over SMB1 writes
> past the cifs_request object.
>
> Reject data that cannot fit before the memcpy(), as the SMB2 path now does.

Please check sashiko's review

        https://sashiko.dev/#/patchset/20261118125249.25375-1-suruurism%40gmail.com

      reply	other threads:[~2026-11-26 15:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 12:52 [PATCH] smb: client: reject oversized SMB1 SET_SECURITY_DESC data Abdifatah Suruur
2026-11-26 15:17 ` Paulo Alcantara [this message]

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=0123330912f899e2f60ea647d767880d@manguebit.org \
    --to=pc@manguebit.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=smfrench@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=suruurism@gmail.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