wifi: brcmfmac: cyw: fix heap overflow on a short auth frame
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 185bb156c427d0f865d344a6d0eaa02c6d05cc57, Kernel 240c8d2c717b3f8153e7e877b22a82518d78dbdc, Kernel 55b26abb1fa1ec406b3ad11b43c49c7624257565 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: cyw: fix heap overflow on a short auth frame brcmf_notify_auth_frame_rx() takes the frame length from the firmware event and copies the frame body with the management header offset subtracted: u32 mgmt_frame_len = e->datalen - sizeof(struct brcmf_rx_mgmt_data); ... memcpy(&mgmt_frame->u, frame, mgmt_frame_len - offsetof(struct ieee80211_mgmt, u)); The only length check is e->datalen >= sizeof(*rxframe), so mgmt_frame_len can be anything from 0 up. offsetof(struct ieee80211_mgmt, u) is 24. When mgmt_frame_len is below that, the subtraction wraps as an unsigned value to a huge length. The memcpy then runs far past the kzalloc'd buffer. A malicious or malfunctioning AP can make the frame short during the external SAE auth exchange, so this is a remotely triggered heap overflow. Reject frames shorter than the management header offset before the copy.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=66f909308a7c05082919ff214a0bbe2a76aa0283 <185bb156c427d0f865d344a6d0eaa02c6d05cc57, >=66f909308a7c05082919ff214a0bbe2a76aa0283 <240c8d2c717b3f8153e7e877b22a82518d78dbdc, >=66f909308a7c05082919ff214a0bbe2a76aa0283 <55b26abb1fa1ec406b3ad11b43c49c7624257565 | 185bb156c427d0f865d344a6d0eaa02c6d05cc57, 240c8d2c717b3f8153e7e877b22a82518d78dbdc, 55b26abb1fa1ec406b3ad11b43c49c7624257565 |
| linux-kernel: Kernel | >=6.16.0 <6.18.40, >=6.19.0 <7.1.5 | 6.18.40, 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket