From: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
To: Jiale Yao <yaojiale02@163.com>,
Jeff Johnson <jjohnson@kernel.org>,
Venkateswara Naralasetty <quic_vnaralas@quicinc.com>,
Govindaraj Saminathan <quic_gsamin@quicinc.com>,
Shashidhar Lakkavalli <slakkavalli@datto.com>,
Ganesh Sesetti <gseset@codeaurora.org>,
Manikanta Pubbisetty <quic_mpubbise@quicinc.com>,
linux-wireless@vger.kernel.org, ath11k@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] wifi: ath11k: Reject short management RX frames
Date: Thu, 29 Oct 2026 12:10:00 +0530 [thread overview]
Message-ID: <e1f00156-fa37-44e7-9d30-177d5fe63240@oss.qualcomm.com> (raw)
In-Reply-To: <20260926114037.3231795-1-yaojiale02@163.com>
On 26-09-2026 17:10, Jiale Yao wrote:
> ath11k_pull_mgmt_rx_params_tlv() verifies that the firmware-reported frame
> length fits in the WMI event, but does not ensure that it can hold an IEEE
> 802.11 management header. It then sets skb->len to that reported length.
>
> ath11k_mgmt_rx_event() subsequently reads frame_control and other header
> fields without another length check. A firmware event with a short buf_len
> can therefore cause an out-of-bounds read.
>
> Reject frames shorter than a three-address IEEE 802.11 header before
> adjusting the skb to expose the frame.
>
> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
> Signed-off-by: Jiale Yao <yaojiale02@163.com>
> ---
> drivers/net/wireless/ath/ath11k/wmi.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
> index bbca275a8289..02cd9764b6fc 100644
> --- a/drivers/net/wireless/ath/ath11k/wmi.c
> +++ b/drivers/net/wireless/ath/ath11k/wmi.c
> @@ -5995,7 +5995,8 @@ static int ath11k_pull_mgmt_rx_params_tlv(struct ath11k_base *ab,
> hdr->tsf_delta = ev->tsf_delta;
> memcpy(hdr->rssi_ctl, ev->rssi_ctl, sizeof(hdr->rssi_ctl));
>
> - if (skb->len < (frame - skb->data) + hdr->buf_len) {
> + if (hdr->buf_len < sizeof(struct ieee80211_hdr_3addr) ||
> + skb->len < (frame - skb->data) + hdr->buf_len) {
> ath11k_warn(ab, "invalid length in mgmt rx hdr ev");
> return -EPROTO;
> }
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
prev parent reply other threads:[~2026-10-29 6:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-26 11:40 Jiale Yao
2026-10-29 6:40 ` Vasanthakumar Thiagarajan [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=e1f00156-fa37-44e7-9d30-177d5fe63240@oss.qualcomm.com \
--to=vasanthakumar.thiagarajan@oss.qualcomm.com \
--cc=ath11k@lists.infradead.org \
--cc=gseset@codeaurora.org \
--cc=jjohnson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_gsamin@quicinc.com \
--cc=quic_mpubbise@quicinc.com \
--cc=quic_vnaralas@quicinc.com \
--cc=slakkavalli@datto.com \
--cc=yaojiale02@163.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®