mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Laxman Acharya Padhya <acharyalaxman8848@gmail.com>,
	Ping-Ke Shih <pkshih@realtek.com>,
	<linux-wireless@vger.kernel.org>
Cc: Kalle Valo <kvalo@kernel.org>, <linux-kernel@vger.kernel.org>,
	<stable@vger.kernel.org>
Subject: Re: [PATCH v2] wifi: rtw89: cap firmware section_num before parsing
Date: Wed, 2 Sep 2026 11:46:10 +0800	[thread overview]
Message-ID: <b8764495-71fb-4c3f-910c-61bd2b030acd@RTKEXHMBS05.realtek.com.tw> (raw)
In-Reply-To: <20260825174438.63168-1-acharyalaxman8848@gmail.com>

Laxman Acharya Padhya <acharyalaxman8848@gmail.com> wrote:

> rtw89_fw_bin_info.section_info has FWDL_SECTION_MAX_NUM (10) entries.
> The v0/v1 header parsers take section_num from an 8-bit firmware field
> (0..255) and write info->section_info[i] with no cap.
> rtw89_fw_download_suit() keeps that object on the stack, so a crafted
> firmware blob overflows the stack.
> 
> Reject a truncated header and a section table that does not fit in the
> firmware image before reading fw_hdr->sections[i].
> 
> Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
> Cc: stable@vger.kernel.org
> Acked-by: Ping-Ke Shih <pkshih@realtek.com>
> Signed-off-by: Laxman Acharya Padhya <acharyalaxman8848@gmail.com>

1 patch(es) applied to rtw-next branch of rtw.git, thanks.

273b0a8be083 wifi: rtw89: cap firmware section_num before parsing

---
https://github.com/pkshih/rtw.git


      reply	other threads:[~2026-09-02  3:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22  8:00 [PATCH] " Laxman Acharya Padhya
2026-08-25  3:54 ` Ping-Ke Shih
2026-08-25 17:44   ` [PATCH v2] " Laxman Acharya Padhya
2026-09-02  3:46     ` Ping-Ke Shih [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=b8764495-71fb-4c3f-910c-61bd2b030acd@RTKEXHMBS05.realtek.com.tw \
    --to=pkshih@realtek.com \
    --cc=acharyalaxman8848@gmail.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®