hostapd/src/p2p
Jouni Malinen 947272febe P2P: Fix copying of secondary device types for P2P group client
Parsing and copying of WPS secondary device types list was verifying
that the contents is not too long for the internal maximum in the case
of WPS messages, but similar validation was missing from the case of P2P
group information which encodes this information in a different
attribute. This could result in writing beyond the memory area assigned
for these entries and corrupting memory within an instance of struct
p2p_device. This could result in invalid operations and unexpected
behavior when trying to free pointers from that corrupted memory.

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27269
Fixes: e57ae6e19e ("P2P: Keep track of secondary device types for peers")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2021-02-04 00:25:40 +02:00
..
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p.c P2P: Fix copying of secondary device types for P2P group client 2021-02-04 00:25:40 +02:00
p2p.h P2P: Delay P2P scan when an external scan is in progress 2020-12-21 23:22:51 +02:00
p2p_build.c WPS: Add multi_ap_subelem to wps_build_wfa_ext() 2019-02-18 20:30:26 +02:00
p2p_dev_disc.c P2PS: Refactor p2p_data::query_hash and p2p_data::query_count use 2015-06-15 17:30:01 +03:00
p2p_go_neg.c P2P: Add support for EDMG channels 2019-12-20 00:13:08 +02:00
p2p_group.c P2P: Stop listen state if Action frame TX is needed on another channel 2019-02-17 16:53:03 +02:00
p2p_i.h P2P: Send Action frame regardless if p2p_scan in progress 2019-05-31 16:52:15 +03:00
p2p_invitation.c P2P: Allow the avoid channels for P2P discovery/negotiation 2019-01-30 12:15:19 +02:00
p2p_parse.c P2P: Filter control chars in group client device name similarly to peer 2015-10-26 23:43:45 +02:00
p2p_pd.c P2P: Clear old P2PS provision data 2016-10-29 00:55:49 +03:00
p2p_sd.c P2P: Do not use wait_time for SD Response TX for last fragmentation 2017-04-01 14:25:26 +03:00
p2p_utils.c P2P: Allow the avoid channels for P2P discovery/negotiation 2019-01-30 12:15:19 +02:00