fragattacks/src/p2p
Jouni Malinen 9ed4eee345 P2P: Validate SSID element length before copying it (CVE-2015-1863)
This fixes a possible memcpy overflow for P2P dev->oper_ssid in
p2p_add_device(). The length provided by the peer device (0..255 bytes)
was used without proper bounds checking and that could have resulted in
arbitrary data of up to 223 bytes being written beyond the end of the
dev->oper_ssid[] array (of which about 150 bytes would be beyond the
heap allocation) when processing a corrupted management frame for P2P
peer discovery purposes.

This could result in corrupted state in heap, unexpected program
behavior due to corrupted P2P peer device information, denial of service
due to process crash, exposure of memory contents during GO Negotiation,
and potentially arbitrary code execution.

Thanks to Google security team for reporting this issue and smart
hardware research group of Alibaba security team for discovering it.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-04-22 11:44:18 +03:00
..
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
p2p_build.c P2PS: Add Advertised Service Info into Probe Response frames 2015-02-03 01:35:06 +02:00
p2p_dev_disc.c P2P: Fix SD and DevDisc to limit maximum wait time per driver support 2014-06-12 10:49:19 +03:00
p2p_go_neg.c P2PS: Add P2PS attributes into PD Request if requested 2015-02-03 01:35:07 +02:00
p2p_group.c P2PS: Process P2PS provisioning commands 2015-02-03 01:35:07 +02:00
p2p_i.h P2PS: PD Request processing and PD Response building 2015-02-03 01:35:07 +02:00
p2p_invitation.c P2P: Check Invitation Response dialog token match for resend case 2014-12-09 16:26:47 +02:00
p2p_parse.c P2PS: Add parsing of new P2P attributes 2015-02-02 14:09:19 +02:00
p2p_pd.c P2PS: PD Response processing 2015-02-03 01:35:07 +02:00
p2p_sd.c P2P: Limit number of SD retries during find 2014-10-23 21:51:48 +03:00
p2p_utils.c Check os_snprintf() result more consistently - automatic 1 2014-12-08 11:42:07 +02:00
p2p.c P2P: Validate SSID element length before copying it (CVE-2015-1863) 2015-04-22 11:44:18 +03:00
p2p.h P2PS: Delete ASP advertisements on wpas_p2p_service_flush 2015-03-20 15:56:59 +02:00