0ad5893a2f
ieee802_1x_kay_decode_mkpdu() calls ieee802_1x_mka_i_in_peerlist() before body_len has been checked on all segments. ieee802_1x_kay_decode_mkpdu() and ieee802_1x_mka_i_in_peerlist() might continue and thus underflow left_len even if it finds left_len to small (or before checking). Additionally, ieee802_1x_mka_dump_peer_body() might perform out of bound reads in this case. Fix this by checking left_len and aborting if too small early. Signed-off-by: Michael Braun <michael-dev@fami-braun.de> |
||
---|---|---|
.. | ||
ieee802_1x_cp.c | ||
ieee802_1x_cp.h | ||
ieee802_1x_kay.c | ||
ieee802_1x_kay.h | ||
ieee802_1x_kay_i.h | ||
ieee802_1x_key.c | ||
ieee802_1x_key.h | ||
ieee802_1x_secy_ops.c | ||
ieee802_1x_secy_ops.h | ||
Makefile |