From: Luka Gejak <luka.gejak@linux.dev>
To: linux-wireless@vger.kernel.org,
Maoyi Xie <maoyixie.tju@gmail.com>,
Ping-Ke Shih <pkshih@realtek.com>
Cc: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Subject: Re: [PATCH rtw-next] wifi: rtw88: usb: reject oversized RX packets
Date: Sat, 28 Nov 2026 13:47:46 +0100 [thread overview]
Message-ID: <474D19D7-8A37-4F68-B13E-302F2F5CFEA7@linux.dev> (raw)
In-Reply-To: <20261128055454.4121906-1-maoyixie.tju@gmail.com>
On November 28, 2026 6:54:54 AM GMT+01:00, Maoyi Xie
<maoyixie.tju@gmail.com> wrote:
>rtw_usb_rx_handler() checks pkt_len + pkt_offset of each aggregated RX
>packet only against max_skb_len. If a corrupted descriptor claims more
>than the bytes left in the URB, skb_put_data() reads up to about 11 KB
>past the received data.
>
>Stop the walk when a packet does not fit in the rest of the URB.
>
>Found with a CodeQL-based static analysis tool that we are developing.
>Reproduced in a userspace harness under AddressSanitizer. Not tested on
>hardware.
>
>Fixes: e9048e2935f7 ("wifi: rtw88: usb: Copy instead of cloning the RX skb")
>Cc: stable@vger.kernel.org
>Signed-off-by: Maoyi Xie <maoyixie.tju@gmail.com>
>---
Looks good to me,
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Best regards,
Luka Gejak
prev parent reply other threads:[~2026-11-28 12:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 5:54 [PATCH rtw-next] wifi: rtw88: usb: reject oversized RX packets Maoyi Xie
2026-11-28 12:47 ` Luka Gejak [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=474D19D7-8A37-4F68-B13E-302F2F5CFEA7@linux.dev \
--to=luka.gejak@linux.dev \
--cc=linux-wireless@vger.kernel.org \
--cc=maoyixie.tju@gmail.com \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@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