openwrt/package/network/services/hostapd/patches
Stefan Lippers-Hollmann 4b19b2db78 hostapd: P2P: Fix a corner case in peer addition based on PD Request
p2p_add_device() may remove the oldest entry if there is no room in the
peer table for a new peer. This would result in any pointer to that
removed entry becoming stale. A corner case with an invalid PD Request
frame could result in such a case ending up using (read+write) freed
memory. This could only by triggered when the peer table has reached its
maximum size and the PD Request frame is received from the P2P Device
Address of the oldest remaining entry and the frame has incorrect P2P
Device Address in the payload.

Fix this by fetching the dev pointer again after having called
p2p_add_device() so that the stale pointer cannot be used.

This fixes the following security vulnerabilities/bugs:

- CVE-2021-27803 - A vulnerability was discovered in how p2p/p2p_pd.c
  in wpa_supplicant before 2.10 processes P2P (Wi-Fi Direct) provision
  discovery requests. It could result in denial of service or other
  impact (potentially execution of arbitrary code), for an attacker
  within radio range.

Fixes: 17bef1e97a50 ("P2P: Add peer entry based on Provision Discovery Request")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
(cherry picked from commit 1ca5de13a1)
2021-03-06 15:48:43 +01:00
..
004-mesh-use-setup-completion-callback-to-complete-mesh-.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
005-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
006-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
007-mesh-apply-channel-attributes-before-running-Mesh.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
011-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
013-mesh-do-not-allow-pri-sec-channel-switch.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
015-mesh-do-not-use-offchan-mgmt-tx-on-DFS.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
016-mesh-fix-channel-switch-error-during-CAC.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
018-mesh-make-forwarding-configurable.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
020-ignore-4addr-mode-enabling-error.patch hostapd: backport ignoring 4addr mode enabling error 2021-02-20 10:57:43 +01:00
051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
060-P2P-Fix-a-corner-case-in-peer-addition-based-on-PD-R.patch hostapd: P2P: Fix a corner case in peer addition based on PD Request 2021-03-06 15:48:43 +01:00
067-0001-AP-Silently-ignore-management-frame-from-unexpected-.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
070-driver_nl80211-fix-WMM-queue-mapping-for-regulatory-.patch hostapd: fix faulty WMM IE parameters with ETSI regulatory domains 2020-01-23 15:00:16 +01:00
071-driver_nl80211-fix-regulatory-limits-for-wmm-cwmin-c.patch hostapd: fix faulty WMM IE parameters with ETSI regulatory domains 2020-01-23 15:00:16 +01:00
090-wolfssl-fix-crypto_bignum_sum.patch wpad-wolfssl: fix crypto_bignum_sub() 2020-05-01 16:19:47 +01:00
091-0001-wolfssl-Fix-compiler-warnings-on-size_t-printf-forma.patch hostapd: backport wolfssl bignum fixes 2020-05-25 16:01:29 +01:00
091-0002-wolfssl-Fix-crypto_bignum_rand-implementation.patch hostapd: backport wolfssl bignum fixes 2020-05-25 16:01:29 +01:00
091-0003-wolfssl-Do-not-hardcode-include-directory-in-wpa_sup.patch hostapd: backport wolfssl bignum fixes 2020-05-25 16:01:29 +01:00
100-daemonize_fix.patch hostapd: update to version 2017-08-24 2017-10-07 05:46:04 +03:00
110-wolfssl-compile-fix.patch hostapd: Fix compile errors after wolfssl update 2020-09-04 00:41:56 +02:00
200-multicall.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
300-noscan.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
301-mesh-noscan.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
310-rescan_immediately.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
320-optional_rfkill.patch hostapd: Update to version 2.8 (2019-04-21) 2019-11-14 20:59:58 +01:00
330-nl80211_fix_set_freq.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
340-reload_freq_change.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
341-mesh-ctrl-iface-channel-switch.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
350-nl80211_del_beacon_bss.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
360-ctrl_iface_reload.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
370-ap_sta_support.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
380-disable_ctrl_iface_mib.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
381-hostapd_cli_UNKNOWN-COMMAND.patch hostapd: backport build fix when OWE is activated 2018-10-14 13:57:14 +02:00
390-wpa_ie_cap_workaround.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
400-wps_single_auth_enc_type.patch hostapd: Update to version 2.8 (2019-04-21) 2019-11-14 20:59:58 +01:00
410-limit_debug_messages.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
420-indicate-features.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
430-hostapd_cli_ifdef.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
431-wpa_cli_ifdef.patch hostapd: unconditionally enable ap/mesh for wpa-cli 2020-05-01 11:12:31 +02:00
432-missing-typedef.patch hostapd: fix compilation error in wext backend 2016-06-15 19:10:32 +02:00
450-scan_wait.patch hostapd: Update to version 2.8 (2019-04-21) 2019-11-14 20:59:58 +01:00
460-wpa_supplicant-add-new-config-params-to-be-used-with.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
461-driver_nl80211-use-new-parameters-during-ibss-join.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
463-add-mcast_rate-to-11s.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
464-fix-mesh-obss-check.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
470-survey_data_fallback.patch hostapd: Update to version 2.8 (2019-04-21) 2019-11-14 20:59:58 +01:00
500-lto-jobserver-support.patch hostapd: Update to version 2.9 (2019-08-08) 2019-11-14 20:59:58 +01:00
599-wpa_supplicant-fix-warnings.patch hostapd: declare struct wpa_bss early 2019-11-14 20:59:58 +01:00
600-ubus_support.patch hostapd: Remove unneeded patch 2019-11-14 20:59:58 +01:00
801-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch hostapd: fix P2P group information processing vulnerability 2021-02-04 09:19:29 +01:00