{"id":"CVE-2025-21906","state":"PUBLISHED","title":"wifi: iwlwifi: mvm: clean up ROC on failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: iwlwifi: mvm: clean up ROC on failure\n\nIf the firmware fails to start the session protection, then we\ndo call iwl_mvm_roc_finished() here, but that won't do anything\nat all because IWL_MVM_STATUS_ROC_P2P_RUNNING was never set.\nSet IWL_MVM_STATUS_ROC_P2P_RUNNING in the failure/stop path.\nIf it started successfully before, it's already set, so that\ndoesn't matter, and if it didn't start it needs to be set to\nclean up.\n\nNot doing so will lead to a WARN_ON() later on a fresh remain-\non-channel, since the link is already active when activated as\nit was never deactivated.","publishedAt":"2025-04-01T15:40:47.059Z","updatedAt":"2026-10-15T21:51:55.394Z","severity":{"score":7.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"a88c18409b5d69f426d5acc583c053eac71756a3","versionType":"git"},{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"d1a12fcb9051bbf38b2e5af310ffb102a0fab6f9","versionType":"git"},{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"f9751163bffd3fe60794929829f810968c6de73d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/mvm/time-event.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.19","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.7","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/mvm/time-event.c"]}],"references":["https://git.kernel.org/stable/c/a88c18409b5d69f426d5acc583c053eac71756a3","https://git.kernel.org/stable/c/d1a12fcb9051bbf38b2e5af310ffb102a0fab6f9","https://git.kernel.org/stable/c/f9751163bffd3fe60794929829f810968c6de73d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21906.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21906","state":"PUBLISHED","datePublished":"2025-04-01T15:40:47.059Z","dateUpdated":"2026-10-15T21:51:55.394Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.786Z"},"containers":{"cna":{"title":"wifi: iwlwifi: mvm: clean up ROC on failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: iwlwifi: mvm: clean up ROC on failure\n\nIf the firmware fails to start the session protection, then we\ndo call iwl_mvm_roc_finished() here, but that won't do anything\nat all because IWL_MVM_STATUS_ROC_P2P_RUNNING was never set.\nSet IWL_MVM_STATUS_ROC_P2P_RUNNING in the failure/stop path.\nIf it started successfully before, it's already set, so that\ndoesn't matter, and if it didn't start it needs to be set to\nclean up.\n\nNot doing so will lead to a WARN_ON() later on a fresh remain-\non-channel, since the link is already active when activated as\nit was never deactivated."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"a88c18409b5d69f426d5acc583c053eac71756a3","versionType":"git"},{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"d1a12fcb9051bbf38b2e5af310ffb102a0fab6f9","versionType":"git"},{"version":"35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8","status":"affected","lessThan":"f9751163bffd3fe60794929829f810968c6de73d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/mvm/time-event.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.19","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.7","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/intel/iwlwifi/mvm/time-event.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a88c18409b5d69f426d5acc583c053eac71756a3"},{"url":"https://git.kernel.org/stable/c/d1a12fcb9051bbf38b2e5af310ffb102a0fab6f9"},{"url":"https://git.kernel.org/stable/c/f9751163bffd3fe60794929829f810968c6de73d"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","baseScore":7.6,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The affected code is the iwlwifi P2P remain-on-channel/session-protection path, which is driven over the air by adjacent Wi-Fi Direct peers — an attacker in radio range performing P2P discovery/GO negotiation causes the target to issue repeated ROC cycles, and RF congestion on the same segment is what makes the firmware fail to start session protection. No routable-network path exists, so this is Adjacent rather than Network.\nAC:L - The attacker can drive ROC attempts repeatedly and indefinitely at no cost, and each attempt that the firmware fails to start leaks a station ID and leaves the link active; there is no memory layout to guess, no race to win, and no lockout, so success is only a matter of retrying.\nPR:N - An adjacent P2P peer needs no credentials on the target — P2P discovery, provision discovery and GO negotiation are entirely pre-association, and the target's supplicant responds automatically by requesting off-channel ROC on the P2P_DEVICE interface.\nUI:N - On devices where Wi-Fi Direct/P2P is active (Android phones, Miracast/Chromecast-capable systems, wpa_supplicant with P2P enabled), the P2P device sits in listen/find state and answers peer frames automatically, so no victim action is required at exploitation time.\nS:U - The corrupted state, the WARN, and the leaked station/queue resources are all confined to the kernel's own iwlwifi driver state within the same host; no VM, IOMMU, or sandbox boundary is crossed.\nC:L - The resulting `WARN_ON_ONCE()` in `iwl_mvm_link_changed()` dumps a full backtrace with kernel text/module addresses and register contents into the ring buffer, exposing KASLR-relevant pointers on the common `dmesg_restrict=0` configurations; the leak is bounded to that log record with no out-of-bounds or arbitrary read.\nI:L - The skipped cleanup leaves stale kernel/firmware state — the link remains active, a firmware station entry and the p2p_dev queue are orphaned and overwritten on the next ROC, and unflushed off-channel frames are documented to be transmitted during a later, unrelated time event (i.e. on the wrong channel/context). The modification is limited to driver/device state, not arbitrary kernel memory.\nA:H - The bug reliably produces a kernel `WARN_ON_ONCE`, which panics immediately on the many production, cloud, hardened, Android and CI configurations that set `panic_on_warn=1`; even without that, repeated triggering leaks firmware station IDs until `iwl_mvm_find_free_sta_id()` returns `IWL_INVALID_STA`, breaking remain-on-channel, P2P and association until the interface or firmware is reset."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:55:17.575Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.13.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-21906","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-15T21:43:41.307072Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:51:55.394Z"}}]}}}