Skip to content
Snippets Groups Projects
Commit e5e884b4 authored by Wen Huang's avatar Wen Huang Committed by Kalle Valo
Browse files

libertas: Fix two buffer overflows at parsing bss descriptor


add_ie_rates() copys rates without checking the length
in bss descriptor from remote AP.when victim connects to
remote attacker, this may trigger buffer overflow.
lbs_ibss_join_existing() copys rates without checking the length
in bss descriptor from remote IBSS node.when victim connects to
remote attacker, this may trigger buffer overflow.
Fix them by putting the length check before performing copy.

This fix addresses CVE-2019-14896 and CVE-2019-14897.
This also fix build warning of mixed declarations and code.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarWen Huang <huangwenabc@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b43e36d7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment