wifi: iwlwifi: mld: validate sta_mask before ffs() in BA session handlers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.38, 7.1.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: iwlwifi: mld: validate sta_mask before ffs() in BA session handlers Three BA session handlers use ffs(ba_data->sta_mask) - 1 to derive a station ID without checking that sta_mask is non-zero. When sta_mask is zero, ffs() returns 0 and the subtraction wraps to 0xFFFFFFFF, causing an out-of-bounds access on fw_id_to_link_sta[]. Add WARN_ON_ONCE(!ba_data->sta_mask) guards before each ffs() call, consistent with the existing check in iwl_mld_ampdu_rx_start().
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 9aa3856d9b6f3f8bf085b5bbb5f3703578bf452b · fixed in 1de92789ce31e46fa7e7d8e89c90b19cdb1c103b; From 9aa3856d9b6f3f8bf085b5bbb5f3703578bf452b · fixed in fe7f339f63c9dc4ca546ed7ac38ba4bb3a99dcfc; From 9aa3856d9b6f3f8bf085b5bbb5f3703578bf452b · fixed in f056fc2b927448d37eca6b6cacc3d1b0f67b20d2
- Linux Linux
6.4
- KernelLinux
From 6.4.0 · fixed in 6.18.38; From 6.19.0 · fixed in 7.1.3