wifi: rsi: avoid reading TKIP MIC keys for non-TKIP ciphers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dad0d04fa7ba41ce603a01e8e64967650303e9a2 · < 55b86ef6c2e68879ffd95203b011ef42a013ab88| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rsi: avoid reading TKIP MIC keys for non-TKIP ciphers
rsi_hal_load_key() copies tx_mic_key and rx_mic_key from data[16] and data[24] whenever key data is present. Those offsets are only part of the 32-byte TKIP key layout. Shorter keys used by other ciphers, such as CCMP, do not provide those bytes, so the unconditional copies can read past the supplied key buffer.
Only copy the MIC keys for TKIP, and reject malformed TKIP keys that are shorter than the expected 32-byte layout.
[drop useless length check]
From the CVE record · Linux
The Linux kernel’s rsi Wi-Fi driver can read past a supplied key buffer when loading a shorter, non-TKIP key, such as a CCMP key. The input does not specify whether this can be triggered remotely or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels with the rsi Wi-Fi driver should check whether their kernel includes the fix; affected versions are not specified.