diff options
| author | Hai Shalom <haishalom@google.com> | 2019-02-04 12:53:10 -0800 |
|---|---|---|
| committer | MSe1969 <mse1969@posteo.de> | 2019-05-08 23:13:15 +0200 |
| commit | b1b58c120fd1c9eeeaa0cc59da8b83e2fa067e1b (patch) | |
| tree | 9f72f8d993b7d6ffef411f9bbf1aff28553dcdab | |
| parent | 6ce35f5a88692285e2e5f2fabf52b660958b5197 (diff) | |
| download | android_external_wpa_supplicant_8-b1b58c120fd1c9eeeaa0cc59da8b83e2fa067e1b.tar.gz android_external_wpa_supplicant_8-b1b58c120fd1c9eeeaa0cc59da8b83e2fa067e1b.tar.bz2 android_external_wpa_supplicant_8-b1b58c120fd1c9eeeaa0cc59da8b83e2fa067e1b.zip | |
Fix security vulnerability wpa_supplicant/wnm_sta.c:376lineage-15.1
Fix Security Vulnerability - Security Report - [Out of bounds read in
wnm_parse_neighbor_report_elem in external/wpa_supplicant_8/wpa_supplicant/wnm_sta.c:376]
Bug: 122074159
Test: Connect to AP, run traffic
Test: Run poc_wnm_sta_376 on device, comfirm new error message appears
Change-Id: If0ff673d2536135469144ee69b3f4e1831be73bf
(cherry picked from commit cb95c3f41acb3bcdd6477b59f945554bc1849465)
(cherry picked from commit 5e6e3f710fd8f317f479fc9b7a5bfed1bef89f9f)
| -rw-r--r-- | wpa_supplicant/wnm_sta.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index bd0b5172..05b9f6c2 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -373,6 +373,10 @@ static void wnm_parse_neighbor_report_elem(struct neighbor_report *rep, rep->preference_present = 1; break; case WNM_NEIGHBOR_BSS_TERMINATION_DURATION: + if (elen < 10) { + wpa_printf(MSG_DEBUG, "WNM: Too short bss_term_tsf"); + break; + } rep->bss_term_tsf = WPA_GET_LE64(pos); rep->bss_term_dur = WPA_GET_LE16(pos + 8); rep->bss_term_present = 1; |
