Re: [PATCH wireless v2] wifi: mac80211: store the mesh IE blob's length without truncating it

From: Piyus Kedia

Date: Wed Nov 25 2026 - 00:07:08 EST


Hi!

The bot is right, and the information is in this posting - but under the ---
line, where git am drops it, so it is missing from the commit message itself.
Stating it here as asked, rather than reposting:

How it was found: by AI-driven fuzzing built on top of syzkaller. A generated
program put a vendor element followed by an RSN element in
NL80211_MESH_SETUP_IE on a mesh interface, and KASAN reported a
slab-out-of-bounds write in ieee80211_mesh_build_beacon(), reproduced on
mainline 7.4-rc3 and on 7.3.1.

That run is what found the beacon-tail overflow fixed by the other patch of
this series, "wifi: mac80211: do not copy the mesh RSN IE twice into the
beacon". The truncating "ifmsh->ie_len = setup->ie_len" that this patch is
about was found by reading the code around that crash, and by the review of
v1 of this patch, which showed that v1 made the overflow reachable rather than
fixing it. The two routes the commit message describes - a blob length that
is a multiple of 256, and a 257-byte element behind a truncated stored length
- come from reading the code and have not been run here.

If there is a v3 for other reasons, that paragraph will be in the commit
message.

On Wed, Nov 25, 2026 at 10:13 AM <netdev-bot+sinfo@xxxxxxxxxx> wrote:
>
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
> - How the issue was discovered, e.g. hit in production, hit during
> development, syzbot report, manual code inspection, LLM or static
> analysis tool scan.
>
> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account.
>
> *IMPORTANT*: If you do repost (for other reasons) - please include
> the relevant info in the cover letter or commit messages.
> --
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.