wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 205c50306acf58a335eb19fa84e40140f4fe814f · < 2f944e6255c2fc1c9bd9ee32f6b14ee0b2a51eb5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param
In the `wilc_parse_join_bss_param` function, the TSF field of the `ies` structure is accessed after the RCU read-side critical section is unlocked. According to RCU usage rules, this is illegal. Reusing this pointer can lead to unpredictable behavior, including accessing memory that has been updated or causing use-after-free issues.
This possible bug was identified using a static analysis tool developed by myself, specifically designed to detect RCU-related issues.
To address this, the TSF value is now stored in a local variable `ies_tsf` before the RCU lock is released. The `param->tsf_lo` field is then assigned using this local variable, ensuring that the TSF value is safely accessed.
From the CVE record · Linux
The wilc1000 Wi-Fi driver reads a TSF field after releasing an RCU read lock, potentially accessing changed or freed memory. The input does not establish whether an attacker can trigger this issue or specify network or local access, authentication requirements, or user interaction.
Engineers running Linux kernels with the wilc1000 Wi-Fi driver should check their versions; affected versions are not specified.