Linux wireless drivers development
 help / color / mirror / Atom feed
From: jeff.chen_1@oss.nxp.com
To: Tristan Madani <tristmd@gmail.com>
Cc: Jeff Chen <jeff.chen_1@oss.nxp.com>,
	Jeff Chen <jeff.chen_1@nxp.com>,
	Francesco Dolcini <francesco@dolcini.it>,
	linux-wireless@vger.kernel.org,
	Tristan Madani <tristan@talencesecurity.com>
Subject: Re: [PATCH v2 wireless 0/2] wifi: nxpwifi: firmware response validation fixes
Date: Sun, 22 Nov 2026 15:21:38 +0800	[thread overview]
Message-ID: <20261122072139.712789-1-jeff.chen_1@oss.nxp.com> (raw)
In-Reply-To: <20261120225933.1148680-1-tristan@talencesecurity.com>

From: Jeff Chen <jeff.chen_1@oss.nxp.com>

On Fri, Nov 20, 2026 at 10:59:31 PM +0000, Tristan Madani wrote:
> The nxpwifi driver trusts several size fields from firmware responses
> without validating them against actual buffer lengths. This series
> adds bounds checks to prevent reads past the buffer when firmware
> provides inflated sizes.
> 
> Changes in v2:
> - Dropped the HE capability TLV length patch (was 1/3), superseded by
>   commit f17e2eda1630a ("wifi: nxpwifi: bound the TLV lengths in the
>   11AX_CFG response")
> - Patch 2/2: moved the response size check after timer_delete_sync()
>   so the command timer is properly cancelled before the early return,
>   as pointed out by Jeff Chen
> 
> Tristan Madani (2):
>   wifi: nxpwifi: validate ext_scan buf_size against event buffer length
>   wifi: nxpwifi: validate command response size against buffer length
> 
>  drivers/net/wireless/nxp/nxpwifi/cmdevt.c | 14 ++++++++++++++
>  drivers/net/wireless/nxp/nxpwifi/scan.c   |  9 +++++++++
>  2 files changed, 23 insertions(+)
> 

Hi Tristan,

Thanks for the v2. I will take it this time.

For future patches, please note:

- checkpatch warns that your From: (tristmd@gmail.com) does not match
  your Signed-off-by (tristan@talencesecurity.com). Please make them
  match.
- cc_maintainers: some maintainers were not Cc'd. Please use
  scripts/get_maintainer.pl to build the Cc list.

Thanks,
Jeff


      parent reply	other threads:[~2026-11-22  7:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 22:59 [PATCH v2 wireless 0/2] wifi: nxpwifi: firmware response validation fixes Tristan Madani
2026-11-20 22:59 ` [PATCH v2 wireless 1/2] wifi: nxpwifi: validate ext_scan buf_size against event buffer length Tristan Madani
2026-11-20 22:59 ` [PATCH v2 wireless 2/2] wifi: nxpwifi: validate command response size against " Tristan Madani
2026-11-22  7:21 ` jeff.chen_1 [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=20261122072139.712789-1-jeff.chen_1@oss.nxp.com \
    --to=jeff.chen_1@oss.nxp.com \
    --cc=francesco@dolcini.it \
    --cc=jeff.chen_1@nxp.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tristan@talencesecurity.com \
    --cc=tristmd@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