wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
The "link_id" value comes from the user via debugfs. If it's larger than BITS_PER_LONG then that would result in shift wrapping and potentially an out of bounds access later. In fact, we can limit it to IEEE80211_MLD_MAX_NUM_LINKS (15).
Fortunately, only root can write to debugfs files so the security impact is minimal.
From the CVE record · Linux
The Linux kernel’s rtw89 Wi-Fi driver accepts a link_id through debugfs that can cause shift wrapping and potentially lead to an out-of-bounds access. Exploitation requires local root access to write to debugfs; no other user interaction is described.
Engineers running Linux kernels with the rtw89 Wi-Fi driver should check their kernel versions; affected versions were not specified.