# CVE-2025-38657: wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-08-22T16:01:00.512Z
- Modified: 2026-08-05T12:03:43.959Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9dd85e739ce0765f022014c3e0713e1007d7ef60 before 417cfa9cc44fbe6bceab786f9a4ee5a210f1288e; from 9dd85e739ce0765f022014c3e0713e1007d7ef60 before 53cf488927a0f79968f9c03c4d1e00d2a79731c3; 6.16 (not affected: before 6.16; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: 6.16

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/417cfa9cc44fbe6bceab786f9a4ee5a210f1288e> (patch)
- <https://git.kernel.org/stable/c/53cf488927a0f79968f9c03c4d1e00d2a79731c3> (patch)

## Sources

- CVE List: [CVE-2025-38657](https://www.cve.org/CVERecord?id=CVE-2025-38657), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38657](https://nvd.nist.gov/vuln/detail/CVE-2025-38657), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38657 · Whole record: https://cve.day/CVE-2025-38657.json · Rebuilt by cve.day 2026-11-25T22:59:03.546Z
