From: "Ethan Tidmore" <ethantidmore06@gmail.com>
To: "Delene Tchio Romuald" <delenetchior1@gmail.com>,
<gregkh@linuxfoundation.org>
Cc: <linux-staging@lists.linux.dev>, <linux-kernel@vger.kernel.org>,
<stable@vger.kernel.org>
Subject: Re: [PATCH] staging: rtl8723bs: fix out-of-bounds reads in IE parsing functions
Date: Sat, 04 Apr 2026 18:10:18 -0500 [thread overview]
Message-ID: <DHKR02R3ZA5Q.3GR6H9I5F3J4Y@gmail.com> (raw)
In-Reply-To: <20260404223144.59168-1-delenetchior1@gmail.com>
On Sat Apr 4, 2026 at 5:31 PM CDT, Delene Tchio Romuald wrote:
> The IE parsing loops in rtw_get_wapi_ie(), rtw_get_sec_ie(), and
> rtw_get_wps_ie() check only that the element ID byte is within bounds
> (cnt < in_len), but then immediately access the length byte at
> in_ie[cnt+1] and data bytes at in_ie[cnt+2] and beyond without
> verifying that these offsets are within the buffer.
>
> A malicious access point can send beacon or probe response frames with
> truncated Information Elements, triggering out-of-bounds reads on
> kernel heap memory. No authentication is required.
>
> Add two bounds checks to each function:
> - Ensure at least 2 bytes remain for the IE header (cnt + 1 < in_len)
> - Validate the full IE fits in the buffer before accessing its data
> (cnt + 2 + ie_len <= in_len)
>
> Cc: stable@vger.kernel.org
You'd want a proper fixes tag if this is a actual bug.
> Signed-off-by: Delene Tchio Romuald <delenetchior1@gmail.com>
> ---
This doesn't apply to staging-next.
Thanks,
ET
prev parent reply other threads:[~2026-04-04 23:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-04 22:31 [PATCH] staging: rtl8723bs: fix out-of-bounds reads in IE parsing functions Delene Tchio Romuald
2026-04-04 23:10 ` Ethan Tidmore [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=DHKR02R3ZA5Q.3GR6H9I5F3J4Y@gmail.com \
--to=ethantidmore06@gmail.com \
--cc=delenetchior1@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=stable@vger.kernel.org \
/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