Apple: Information Leak when handling WLC_E_COUNTRY_CODE_CHANGED event packets
CVE-2017-7116
Broadcom produces Wi-Fi HardMAC SoCs which are used to handle the PHY and MAC Apple: Information Leak when handling WLC_E_COUNTRY_CODE_CHANGED event packets
CVE-2017-7116
Broadcom produces Wi-Fi HardMAC SoCs which are used to handle the PHY and MAC layer processing. These chips are present in both mobile devices and Wi-Fi routers, and are capable of handling many Wi-Fi related events without delegating to the host OS. On iOS, the "AppleBCMWLANBusInterfacePCIe" driver is used in order to handle the PCIe interface and low-level communication protocols with the Wi-Fi SoC (also referred to as "dongle"). Similarly, the "AppleBCMWLANCore" driver handles the high-level protocols and the Wi-Fi configuration.
When the dongle wishes to notify the host OS of an event, it does so by encoding a special "packet" and transmitting it to the host. These packets have an ether type of 0x886C, and do not contain actual packet data, but rather encapsulate information about events which must be handled by the driver.
One of the supported event packets is the WLC_E_COUNTRY_CODE_CHANGED message, which notifies that host that the country code has been modified. On iOS, these events are handled by the "handleCountryCodeChangedEvent" function in the "AppleBCMWLANCore" driver. Each packet of this type starts with the common event message header (which is 48 bytes long), followed by the 3-character country code, delimited by a NUL.
Here is a snippet of "handleCountryCodeChangedEvent"'s high-level logic:
int64_t handleCountryCodeChangedEvent(void* this, uint8_t* event_packet) {
char* country_code = (char*)this + 3244;
char* alt_country_code = (char*)this + 3248;
strncpy(country_code, event_packet + 48, 3);
country_code[3] = '
Apple WLC E COUNTRY CODE CHANGED Information Leak
- Details
- Written by: khalil shreateh
- Category: Vulnerabilities
- Hits: 863