CVE-2026-139520: wifi: nxpwifi: validate variable IE lengths in beacon parser
In the Linux kernel, the following vulnerability has been resolved:
wifi: nxpwifi: validate variable IE lengths in beacon parser
nxpwifiupdatebssdescwithie() stores pointers to the HT, VHT and HE capability and operation elements, to the operating mode notification and to the 20/40 BSS coexistence element, taken from a beacon or probe response, without checking that each element is long enough for the structure the driver later dereferences it as.
bssdesc->beaconbuf is a tight kmemdup() of the on-air elements, so a truncated element leaves the stored pointer short of the structure and the consumers read past the end of that allocation at association time. Some of those bytes are copied into the association request, so a rogue access point in range can both trigger the read and receive the result.
Reject the frame with -EINVAL when any of these elements is shorter than the structure read from it, as the FH, DS and CF parameter set cases in the same parser already do.
The extended capabilities element has no structure size to check against, so nxpwifiisap11axtwtsupported()'s read of bcnextcap->data[9] is bounded at that consumer instead.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the nxpwifi beacon parser, reject frames with -EINVAL when HT, VHT, HE, operating-mode-notification, or 20/40 BSS coexistence elements are shorter than the structures their consumers read. Since the extended capabilities element has no structure-size check, bound nxpwifi_is_ap_11ax_twt_supported()'s read of bcn_ext_cap->data[9] at that consumer.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the Linux kernel nxpwifi wireless driver are exposed when they can receive beacons or probe responses from a rogue access point in radio range.
What does an attacker need to do to trigger the out-of-bounds read?
An attacker needs to operate a rogue access point that transmits a beacon or probe response containing a truncated HT, VHT, HE, operating mode notification, or 20/40 BSS coexistence information element. The affected driver later dereferences the stored element pointer during association.
What information could the rogue access point obtain?
The out-of-bounds read can include bytes beyond the tightly allocated beacon-element buffer. Some of those bytes can be copied into the association request, allowing the rogue access point to receive them.
How does the resolved code handle malformed elements?
It rejects frames with -EINVAL when the affected information elements are shorter than the structures that later consumers read. The extended-capabilities access is instead bounded at its consumer before reading data[9].