CVE-2025-21930: wifi: iwlwifi: mvm: don't try to talk to a dead firmware
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mvm: don't try to talk to a dead firmware
This fixes:
bad state = 0
WARNING: CPU: 10 PID: 702 at drivers/net/wireless/inel/iwlwifi/iwl-trans.c:178 iwl_trans_send_cmd+0xba/0xe0 [iwlwifi] Call Trace: <TASK> ? __warn+0xca/0x1c0 ? iwl_trans_send_cmd+0xba/0xe0 [iwlwifi 64fa9ad799a0e0d2ba53d4af93a53ad9a531f8d4] iwl_fw_dbg_clear_monitor_buf+0xd7/0x110 [iwlwifi 64fa9ad799a0e0d2ba53d4af93a53ad9a531f8d4] _iwl_dbgfs_fw_dbg_clear_write+0xe2/0x120 [iwlmvm 0e8adb18cea92d2c341766bcc10b18699290068a]
Ask whether the firmware is alive before sending a command.
The Linux kernel CVE team has assigned CVE-2025-21930 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 268712dc3b344f3a835211e5846e6ebfd7a13cbd and fixed in 6.12.19 with commit 437e93ecd40754f9e938d524daf52a10c589e2d4 Issue introduced in 6.8 with commit 268712dc3b344f3a835211e5846e6ebfd7a13cbd and fixed in 6.13.7 with commit e7c31a3f4f27d61b9ccd894a7bf4690f137da0ec Issue introduced in 6.8 with commit 268712dc3b344f3a835211e5846e6ebfd7a13cbd and fixed in 6.14 with commit d73d2c6e3313f0ba60711ab4f4b9044eddca9ca5
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-21930
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/437e93ecd40754f9e938d524daf52a10c589e2d4 https://git.kernel.org/stable/c/e7c31a3f4f27d61b9ccd894a7bf4690f137da0ec https://git.kernel.org/stable/c/d73d2c6e3313f0ba60711ab4f4b9044eddca9ca5