# CVE-2026-98184: wifi: mwifiex: prevent authentication frame length truncation

- Severity: not scored yet
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:26.836Z
- Modified: 2026-10-19T10:18:18.727Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: mwifiex: prevent authentication frame length truncation

mwifiex_cfg80211_authenticate() derives the authentication frame length
from req->ie_len and req->auth_data_len, both of type size_t, but stores
it in a u16.

NL80211_ATTR_AUTH_DATA only has a minimum length policy. Since nla_len is
a u16, a single attribute can carry up to 65531 bytes of payload, so the
sum can exceed U16_MAX before it is assigned to pkt_len. The truncated
pkt_len determines the skb frame area, while the copy length remains
req->auth_data_len - 4, resulting in a heap buffer overflow.

For example, with auth_data_len equal to 65510 and no IEs, the sum is
65546. It is truncated to 10 and then reduced by four to 6. The driver
appends only six bytes to the skb with skb_put(), but then copies 65506
user-provided bytes into the authentication body.

Reaching this path requires CAP_NET_ADMIN in the user namespace owning
the network namespace, an up station netdev, and a suitable BSS/SAE
authentication request.

Compute the length in size_t, reject values that cannot be represented by
the firmware's u16 frame length field, and only then assign it to pkt_len.

(As written by CVE List.)

## Affected

- Linux Linux: from 36995892c271cce5e2230bc165a06f109b117222 before 25c45a2075cc00faed45f92a64bb172fb074a2ee; from 36995892c271cce5e2230bc165a06f109b117222 before 5747eaa38a7fcad48be2fd910b65008198b2b06c; from 36995892c271cce5e2230bc165a06f109b117222 before 877b61a67d5eb3e616478daf3908114b57feff1e; from 36995892c271cce5e2230bc165a06f109b117222 before fa00193eb991f92b007aefe7afb6a7566976dacf; 6.12 (not affected: before 6.12; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/25c45a2075cc00faed45f92a64bb172fb074a2ee>
- <https://git.kernel.org/stable/c/5747eaa38a7fcad48be2fd910b65008198b2b06c>
- <https://git.kernel.org/stable/c/877b61a67d5eb3e616478daf3908114b57feff1e>
- <https://git.kernel.org/stable/c/fa00193eb991f92b007aefe7afb6a7566976dacf>

## Sources

- CVE List: [CVE-2026-98184](https://www.cve.org/CVERecord?id=CVE-2026-98184), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98184](https://nvd.nist.gov/vuln/detail/CVE-2026-98184), Public domain, modified 2026-10-19

---

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