Linux: wifi: mac80211: count only matching reservations in reserved switch
What fixes it
- 4ae6ed5b6074df5f3da05fd74c40bb24c5c9b41dLinuxCVE List
- 03525b632908b049f4d04cc8a71cdff2329589cfLinuxCVE List
- 5cc54a000960bc88f8c58940164dca0e601ab39cLinuxCVE List
- 437f3727b4fd715266c296435c116288f82666fdLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: count only matching reservations in reserved switch
ieee80211_vif_use_reserved_switch() validates a replacement by counting assigned links on ctx->replace_ctx and treating reservations too broadly. A link can still be assigned to the old channel context while holding a reservation that belongs to a different replacement operation.
That can make the current replacement appear complete too early. If another link finalizes first, the function can free the WILL_BE_REPLACED chanctx while the unmatched link and driver still use it, leading to a use-after-free in later beacon generation.
Require an in-place reservation to point at the current replacement context, and require the reserved and assigned contexts to be the matching replacement pair, before counting or moving the link.
Text from CVE List
Affected versions 12
- Linuxaffected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 4ae6ed5b6074df5f3da05fd74c40bb24c5c9b41dCVE List
- Linuxaffected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before d31f655e44631891788ca67018ec5e1ed1c7de86CVE List
- Linuxaffected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 03525b632908b049f4d04cc8a71cdff2329589cfCVE List
- Linuxaffected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 5cc54a000960bc88f8c58940164dca0e601ab39cCVE List
- Linuxaffected: 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 437f3727b4fd715266c296435c116288f82666fdCVE List
- Linuxaffected: 3.17CVE List
- Linuxunaffected: all versions before 3.17CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.113 through 6.12.*CVE List
- Linuxunaffected: 6.18.56 through 6.18.*CVE List
- Linuxunaffected: 7.2.10 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/4ae6ed5b6074df5f3da05fd74c40bb24c5c9b41dReferencevia CVE List
- git.kernel.org/stable/c/d31f655e44631891788ca67018ec5e1ed1c7de86Referencevia CVE List
- git.kernel.org/stable/c/03525b632908b049f4d04cc8a71cdff2329589cfReferencevia CVE List
- git.kernel.org/stable/c/5cc54a000960bc88f8c58940164dca0e601ab39cReferencevia CVE List
- git.kernel.org/stable/c/437f3727b4fd715266c296435c116288f82666fdReferencevia CVE List