From: Johannes Berg <johannes@sipsolutions.net>
To: dhyaan19022009-hue <dhyan19022009@gmail.com>
Cc: kvalo@kernel.org, linux-wireless@vger.kernel.org,
linux-kernel@vger.kernel.org,
dhyaan19022009-hue <dhyaan19022009@gmail.com>
Subject: Re: [PATCH] iwlwifi: dvm: fix NULL pointer dereference in rxon
Date: Wed, 04 Feb 2026 14:07:13 +0100 [thread overview]
Message-ID: <540a592bb2604b130e0b21f99e634ac100cee61c.camel@sipsolutions.net> (raw)
In-Reply-To: <20260204125345.6072-1-dhyaan19022009@gmail.com> (sfid-20260204_135403_809238_73C22A22)
On Wed, 2026-02-04 at 18:23 +0530, dhyaan19022009-hue wrote:
> When bringing up the wireless interface via virtual monitor mode,
> iwlagn_bss_info_changed() can be called with a vif that has no
> associated rxon context. This occurs during the
> ieee80211_add_virtual_monitor() -> ieee80211_do_open() sequence.
>
> The function iwl_rxon_ctx_from_vif() returns NULL for virtual monitor
> interfaces, causing a NULL pointer dereference when the code attempts
> to access ctx fields at offset +0x10.
>
> Crash signature:
> BUG: kernel NULL pointer dereference, address: 0000000000000000
> RIP: 0010:iwlagn_bss_info_changed+0x19d/0x640 [iwldvm]
> Call Trace:
> drv_link_info_changed+0x2b5/0x2c0 [mac80211]
> ieee80211_link_info_change_notify+0x13d/0x160 [mac80211]
> ieee80211_recalc_txpower+0x5c/0x60 [mac80211]
> ieee80211_assign_link_chanctx+0x182/0x410 [mac80211]
> ieee80211_add_virtual_monitor+0x17c/0x2b0 [mac80211]
> ieee80211_do_open+0x6d8/0x740 [mac80211]
>
> Add an early NULL check for ctx before accessing its members.
>
> Hardware: Dell Latitude E6430
> WiFi: Intel Centrino Advanced-N 6205 [8086:0085]
> Kernel: 6.18.7-061807-generic
>
> Reported-by: Johannes Berg <johannes@sipsolutions.net>
Yeah, no. Please find someone who's willing to teach you first.
johannes
next prev parent reply other threads:[~2026-02-04 13:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 12:53 dhyaan19022009-hue
2026-02-04 13:07 ` Johannes Berg [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-04 12:23 dhyaan19022009-hue
2026-02-04 12:13 [PATCH] git commit --amend ``` dhyaan19022009-hue
2026-02-04 12:13 ` [PATCH] iwlwifi: dvm: fix NULL pointer dereference in rxon dhyaan19022009-hue
2026-02-04 12:01 dhyaan19022009-hue
2026-02-04 12:25 ` Johannes Berg
2026-02-04 11:38 dhyaan19022009-hue
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=540a592bb2604b130e0b21f99e634ac100cee61c.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=dhyaan19022009@gmail.com \
--cc=dhyan19022009@gmail.com \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@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®