From: Johannes Berg <johannes@sipsolutions.net>
To: Ren Wei <n05ec@lzu.edu.cn>, linux-wireless@vger.kernel.org
Cc: quic_alokad@quicinc.com, yuantan098@gmail.com,
zcliangcn@gmail.com, bird@lzu.edu.cn, xuyq21@lenovo.com
Subject: Re: [PATCH 1/1] wifi: nl80211: reject oversized EMA RNR element lists
Date: Wed, 27 May 2026 12:03:52 +0200 [thread overview]
Message-ID: <ef415ae9222bc9ea978469c88cd7b1e7646710e6.camel@sipsolutions.net> (raw)
In-Reply-To: <db614d22c4d3cdae0f5fb94b9d78c8e3142c2ecd.1779632165.git.xuyq21@lenovo.com>
On Wed, 2026-05-27 at 18:01 +0800, Ren Wei wrote:
> From: Yuqi Xu <xuyq21@lenovo.com>
>
> nl80211_parse_rnr_elems() stores the parsed element count in a
> u8-backed cfg80211_rnr_elems::cnt field and uses that count to size
> the flexible array allocation.
>
> Reject nested NL80211_ATTR_EMA_RNR_ELEMS input once the count reaches
> 255, before incrementing it again. This keeps the parser aligned with
> the data structure it fills and matches the existing bound check used
> by nl80211_parse_mbssid_elems().
>
> Fixes: dbbb27e183b1568d5a907ace1cd144b0709ea52a ("cfg80211: support RNR for EMA AP")
Please fix.
johannes
prev parent reply other threads:[~2026-05-27 10:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1779632165.git.xuyq21@lenovo.com>
2026-05-27 10:01 ` [PATCH 1/1] wifi: nl80211: reject oversized EMA RNR element lists Ren Wei
2026-05-27 10:03 ` Johannes Berg [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=ef415ae9222bc9ea978469c88cd7b1e7646710e6.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=bird@lzu.edu.cn \
--cc=linux-wireless@vger.kernel.org \
--cc=n05ec@lzu.edu.cn \
--cc=quic_alokad@quicinc.com \
--cc=xuyq21@lenovo.com \
--cc=yuantan098@gmail.com \
--cc=zcliangcn@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