Linux
wifi: at76c50x-usb: avoid length underflow in at76_guess_freq()
In the Linux kernel, the following vulnerability has been resolved: wifi: at76c50x-usb: avoid length underflow in at76_guess_freq() at76_guess_freq() checks only that the received frame is at least a bare 802.11 header (24 bytes) before subtracting the fixed management-body offset: len -= el_off; For both beacon and probe response frames, el_off is 36. If the frame is shorter than el_off, subtracting it causes the calculated IE length to wrap. The length is eventually passed to cfg80211_find_elem_match() as a very large unsigned value, so the element walk runs beyond the RX skb. This path is reached from at76_rx_tasklet() while scanning. If the device delivers a truncated beacon or probe response, the oversized IE length causes an out-of-bounds read during scanning. Skip the IE lookup if the frame does not reach the variable elements, before subtracting el_off.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < cb831aff2f850f72bc5ff5ad77d0a70bb5a84061
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < 4875680d1703f56afa6257ba30244f2fb44ed205
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < b406f33d234f98c8b310fdab5cbb492d85e98e49
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < e165a1d295e7e814e13b0f92c86e5d48309509ce
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < bcde7249d45f52f994a9872bedf45994472ade77
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < fb1b50ab699211e777dca5ccfb648788b6a6e519
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < f742d9c98b5c504fc9e6744eef13a721c2aea486
- >= 1264b951463a00efebe1bb596499aaad620ec8af, < 61a799ffd1e5a4fd3702d547828b7ff3d161468e
Fixed in cb831aff2f850f72bc5ff5ad77d0a70bb5a84061, 4875680d1703f56afa6257ba30244f2fb44ed205, b406f33d234f98c8b310fdab5cbb492d85e98e49, e165a1d295e7e814e13b0f92c86e5d48309509ce, bcde7249d45f52f994a9872bedf45994472ade77, fb1b50ab699211e777dca5ccfb648788b6a6e519, f742d9c98b5c504fc9e6744eef13a721c2aea486, 61a799ffd1e5a4fd3702d547828b7ff3d161468e
- 2.6.30
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to cb831aff2f850f72bc5ff5ad77d0a70bb5a84061 or 4875680d1703f56afa6257ba30244f2fb44ed205 or b406f33d234f98c8b310fdab5cbb492d85e98e49 or e165a1d295e7e814e13b0f92c86e5d48309509ce or bcde7249d45f52f994a9872bedf45994472ade77 or fb1b50ab699211e777dca5ccfb648788b6a6e519 or f742d9c98b5c504fc9e6744eef13a721c2aea486 or 61a799ffd1e5a4fd3702d547828b7ff3d161468e or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.