mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
The current code checks 'i + 5 < in_len' at the end of the if statement.
However, it accesses 'in_ie[i + 5]' before that check, which can lead
to an out-of-bounds read. Move the length check to the beginning of the
conditional to ensure the index is within bounds before accessing the
array.
Fixes:
|
||
|---|---|---|
| .. | ||
| axis-fifo | ||
| fbtft | ||
| greybus | ||
| iio | ||
| media | ||
| most | ||
| nvec | ||
| octeon | ||
| rtl8723bs | ||
| sm750fb | ||
| vc04_services | ||
| vme_user | ||
| Kconfig | ||
| Makefile | ||