HIGH Introduced in 4.7
iwlegacy BcastStation DoubleFree
CVE-2026-98195
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: wifi: iwlegacy: fix broadcast stations deallocation On the error path of __il4965_up(), il_dealloc_bcast_stations() clears only IL_STA_UCODE_ACTIVE, leaving IL_STA_BCAST set. This causes the same broadcast stations to be deallocated again by __il4965_down(). This can occur when RF_KILL is toggled during driver startup. To fix clear the entire 'used' field, since we will not do any other operations on the station.
02KernelScan AI Analysis
Risk summary
A double-free in the Intel 4965 (iwlegacy) WiFi driver is triggered when a radio-kill event occurs during interface startup, causing broadcast station data to be freed twice. This can lead to kernel memory corruption exploitable for local privilege escalation or system crash. The bug requires the specific Intel 4965 WiFi hardware and local access to the machine.
Vulnerability analysis
The error path of the WiFi driver's interface initialization function only partially clears the state of broadcast stations when initialization fails (for example, when a hardware radio-kill switch is active). A subsequent teardown path then sees the stale state and processes the same stations a second time, freeing their associated data structures twice — a double-free. The fix changes the cleanup to clear the entire station usage state so that the later teardown does not re-process already-cleaned-up stations. The bug requires the Intel 4965 (iwlegacy) wireless driver to be loaded and is triggered by a radio-kill event occurring during interface startup, which can be caused by either the hardware switch or the software rfkill interface from a local user.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.7 | 5.10.271 | 275d474a4b4b |
| 5.15 | 4.7 | 5.15.222 | 526fdd45548e |
| 6.1 | 4.7 | 6.1.189 | c9a116d69136 |
| 6.12 | 4.7 | 6.12.112 | 1d84c2a3de44 |
| 6.18 | 4.7 | 6.18.54 | 55d34422c0d9 |
| 6.6 | 4.7 | 6.6.158 | 85d847ff71fe |
| 7.2 | 4.7 | 7.2.8 | a9176fe666af |
| mainline | 4.7 | 7.3 | b5526b780f8b |
| cip/4.19 | 4.7 | 4.19.325-cip137 | 206079ed23ab |
| cip/4.19-rt | 4.7 | 4.19.325-cip137-rt51 | 206079ed23ab |
| cip/4.4 | 4.7 | 4.4.302-cip116 | ed651dafa936 |
| cip/5.10 | 4.7 | 5.10.271-cip78 | 275d474a4b4b |
| cip/5.10-rt | 4.7 | 5.10.272-cip79-rt35 | 275d474a4b4b |
| cip/6.1 | 4.7 | 6.1.189-cip61 | c9a116d69136 |
| cip/6.1-rt | 4.7 | 6.1.189-cip61-rt32 | c9a116d69136 |
| cip/6.12 | 4.7 | 6.12.112-cip33 | 1d84c2a3de44 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Fixed in 4.19.325-cip137-rt51 |
| cip/4.4 | Fixed in 4.4.302-cip116 |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |