CVE-2026-107470: Out-of-bounds write in WINC1500 Wi-Fi offload driver via firmware-reported socket IDs on accept
The WINC1500 Wi-Fi offload driver (drivers/wifi/winc1500/wifiwinc1500.c) keeps per-socket state in w1500data.socketdata[], sized by CONFIGWIFIWINC1500OFFLOADMAXSOCKETS (default 2). The socket event callback winc1500socketcb() and the accept handler handlesocketmsgaccept() indexed this array with socket IDs reported by the WINC1500 firmware without any bounds check. In the accept handler, a negative (error) socket ID also fell through into the indexing path because the error branch did not return.
The firmware assigns the socket ID of each inbound TCP connection from its own pool of 7 TCP sockets, independent of the 2-entry Zephyr table. When an application runs a TCP server over the WINC1500 offloaded interface, a remote network peer that opens connections can cause the firmware to report an accepted socket ID of 2 or higher. handlesocketmsgaccept() then memcpy()s a full struct socketdata past the end of socketdata[], and later receive callbacks and winc1500recv()/winc1500put() read and write further out-of-bounds state for that ID.
The out-of-bounds writes corrupt adjacent driver state, including w1500data.iface and the scancb function pointer, as well as following static data, and the driver later calls through function pointers loaded from the corrupted memory. The written contents are mostly copies of the listening socket's state rather than attacker-chosen bytes, so the practical impact is memory corruption leading to a crash (remote denial of service), with integrity impact possible. A malicious or compromised WINC1500 module could also trigger the same out-of-bounds accesses with arbitrary socket IDs.