From: Paulo Alcantara <pc@manguebit.org>
To: hexlabsecurity@proton.me, Steve French <sfrench@samba.org>
Cc: linux-kernel@vger.kernel.org,
Shyam Prasad N <sprasad@microsoft.com>,
David Howells <dhowells@redhat.com>,
samba-technical@lists.samba.org,
Bharath SM <bharathsm@microsoft.com>,
Ronnie Sahlberg <ronniesahlberg@gmail.com>,
linux-cifs@vger.kernel.org, Tom Talpey <tom@talpey.com>
Subject: Re: [PATCH] smb: client: restore the data_offset bound in is_valid_oplock_break()
Date: Fri, 21 Aug 2026 14:04:00 -0300 [thread overview]
Message-ID: <33b9415f0837a11512011c472f5421cf@manguebit.org> (raw)
In-Reply-To: <20260728-b4-disp-22baa716-v1-1-f8325242fd13@proton.me>
Bryam Vargas via B4 Relay <devnull+hexlabsecurity.proton.me@kernel.org>
writes:
> From: Bryam Vargas <hexlabsecurity@proton.me>
>
> Commit 83bfbd0bb902 ("cifs: Remove the RFC1002 header from smb_hdr")
> changed the quantity this bound is measured against. It used to be
> srv->total_read minus the 4-byte RFC1002 preamble that total_read then
> included, so it was the SMB message length. The same commit stopped
> counting the preamble, and the mechanical substitution to
> srv->total_read - srv->pdu_size left an expression that is identically
> zero: standard_receive3() reads MID_HEADER_SIZE() bytes and then exactly
> pdu_length - MID_HEADER_SIZE() more, adding both to total_read.
>
> len is therefore 0, the subtraction below it wraps, and no __u32
> DataOffset can exceed the result, so the check from commit 097f5863b1a0
> ("cifs: read overflow in is_valid_oplock_break()") no longer rejects
> anything. Use total_read, which is now the message length on its own.
> ...
Applied.
prev parent reply other threads:[~2026-08-21 17:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 18:06 Bryam Vargas via B4 Relay
2026-08-21 17:04 ` 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=33b9415f0837a11512011c472f5421cf@manguebit.org \
--to=pc@manguebit.org \
--cc=bharathsm@microsoft.com \
--cc=dhowells@redhat.com \
--cc=hexlabsecurity@proton.me \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ronniesahlberg@gmail.com \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.org \
--cc=sprasad@microsoft.com \
--cc=tom@talpey.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
all inboxes | Powered by JetHome®