From: Ping-Ke Shih <pkshih@realtek.com>
To: Maoyi Xie <maoyixie.tju@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next 1/4] wifi: rtw89: pci: reject oversized RX packets
Date: Wed, 2 Dec 2026 02:57:05 +0000 [thread overview]
Message-ID: <ceaf79575cf3456d8ddc0d4ab0ca70ef@realtek.com> (raw)
In-Reply-To: <20261201090138.3652600-2-maoyixie.tju@gmail.com>
Maoyi Xie <maoyixie.tju@gmail.com> wrote:
> rtw89_skb_put_rx_data() and rtw89_pci_release_tx_skbs() take the data
> length of an RX buffer from 14-bit fields that the chip writes. Nothing
> checks it against RTW89_PCI_RX_BUF_SIZE. A larger length makes them
> read up to about 5 KB past the buffer.
Can we validate rx_info->len > RTW89_PCI_RX_BUF_SIZE earlier
at rtw89_pci_sync_skb_for_device_and_validate_rx_info()?
next prev parent reply other threads:[~2026-12-02 2:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 9:01 [PATCH rtw-next 0/4] wifi: rtw89: check lengths and indices reported by the chip Maoyi Xie
2026-12-01 9:01 ` [PATCH rtw-next 1/4] wifi: rtw89: pci: reject oversized RX packets Maoyi Xie
2026-12-02 2:57 ` Ping-Ke Shih [this message]
2026-12-01 9:01 ` [PATCH rtw-next 2/4] wifi: rtw89: pci: validate hardware index of BD ring Maoyi Xie
2026-12-02 2:59 ` Ping-Ke Shih
2026-12-01 9:01 ` [PATCH rtw-next 3/4] wifi: rtw89: phy: check LPS report C2H event length Maoyi Xie
2026-12-02 3:03 ` Ping-Ke Shih
2026-12-01 9:01 ` [PATCH rtw-next 4/4] wifi: rtw89: phy: check cur_idx of TAS power report Maoyi Xie
2026-12-02 3:04 ` Ping-Ke Shih
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=ceaf79575cf3456d8ddc0d4ab0ca70ef@realtek.com \
--to=pkshih@realtek.com \
--cc=linux-wireless@vger.kernel.org \
--cc=maoyixie.tju@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