CVE-2025-38657: wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
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.
Security readout for executives and security teams
Plain-English summary
A flaw in the Linux rtw89 Wi-Fi driver could cause an out-of-bounds memory access when an excessive link identifier is written through debugfs. Although the supplied CVSS score is 7.3, writing the relevant debugfs file requires root access, substantially limiting practical exposure.
Executive priority
Prioritize routine kernel remediation on affected wireless Linux systems, especially multi-user, developer, or appliance environments where privileged access is broader. Emergency action is not supported by the supplied evidence because exploitation requires root and no active exploitation is reported. Still, patch promptly because memory corruption could amplify damage after privileged compromise.
Technical view
In rtw89_core_mlsr_switch(), a user-supplied debugfs link_id could exceed BITS_PER_LONG, causing shift wrapping and a later potential out-of-bounds access. The resolved implementation limits link_id to IEEE80211_MLD_MAX_NUM_LINKS, which is 15. The source describes possible confidentiality, integrity, and availability impact.
Likely exposure
Exposure requires an affected Linux kernel using the rtw89 Wi-Fi driver, accessible debugfs, and an actor able to write the relevant file as root. Systems without rtw89, without debugfs access, or without compromised privileged access are unlikely to be directly exposed. The supplied version data is insufficiently clear for precise distribution-specific conclusions.
Exploitation context
The source bundle does not report active exploitation, and the CVE is not listed as KEV. Exploitation requires local privileged interaction with debugfs rather than unauthenticated remote access. Root-only write access makes this more relevant as a defense-in-depth issue after privilege compromise than as an initial intrusion path.
Researcher notes
The key boundary error is an unchecked link_id used in a bit shift before later indexing. The correction caps it at the protocol-defined maximum of 15. The supplied version representation is ambiguous, so researchers should use the referenced commits and distribution backport records instead of relying solely on displayed version strings. No CWE was supplied.
Mitigation direction
Install a vendor kernel update containing the referenced upstream stable fix.
Consult the Linux distribution's advisory to confirm its fixed package version.
Restrict root access and investigate unauthorized privileged account activity.
Disable or restrict debugfs where operationally feasible and consistent with vendor guidance.
Validation and detection
Record kernel and distribution package versions on systems using rtw89 Wi-Fi hardware.
Confirm whether the rtw89 driver is loaded or otherwise used.
Verify the installed kernel includes one of the referenced stable fixes or a vendor backport.
Review debugfs availability and permissions for the affected interface.
Check privileged-access logs for unexpected debugfs activity where telemetry exists.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38657 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
3Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.