Where
-Infinity
0
Severity
6.4
Use After Free, Double Free
AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

The Silicon Labs SiWx917 WiFi driver's transmit callback siwx91xsend() in drivers/wifi/siwx91x/siwx91xwifi.c frees a network packet it does not own. In the Zephyr TX path the netpkt is owned by the L2/networking stack; the driver only borrows it to copy the frame bytes into a local netbuf. Before the fix, after transmitting, siwx91xsend() additionally called netpktunref(pkt) on the caller-owned packet, dropping its last reference and returning it to the shared packet pool prematurely. This code path is compiled in by default (CONFIGWIFISILABSSIWX91XNETSTACKNATIVE).

The caller, ethernetsend() in subsys/net/l2/ethernet/ethernet.c, keeps using the packet after the driver returns: it reads netpktgetlen(pkt), updates TX statistics, and then performs its own netpktunref(pkt). Because the driver already released the packet, these are use-after-free reads followed by a second unref (a double free). When concurrent network activity recycles the freed slab slot between the two unrefs, the trailing unref decrements a different, live packet's reference count and frees it, corrupting the netpkt pool shared by both the receive and transmit paths.

The defect is exercised by ordinary transmission over the native-stack SiWx917 WiFi interface, and an adjacent attacker on the same WiFi network can induce transmissions (for example ARP or ICMP echo replies, or TCP handshakes) to drive the path. The primary observable impact is loss of availability (transmit hangs and crashes from pool corruption), with race-dependent memory corruption of the kernel networking buffer pool. The fix removes the erroneous netpktunref(pkt) from siwx91xsend(); the driver's receive-path unref, which correctly frees a packet the driver itself allocated, is unaffected.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203