CVE-2026-10636
Beschrijving NL
In de IPv4 IGMP-implementatie van Zephyr las igmp_send() in subsys/net/ip/igmp.c de netwerkinterface terug uit het pakket via net_pkt_iface(pkt) nadat het pakket was overhandigd aan net_send_data(). Op het succesvolle verzendpad is de laatste referentie van het pakket mogelijk al vrijgegeven door het L2-stuurprogramma of door de TX-afhandeling van de netwerkstack (synchroon in de standaard NET_TC_TX_COUNT=0 configuratie voor onmiddellijke verzending), waardoor het net_pkt-plaatblok naar de vrije lijst wordt teruggestuurd. De daaropvolgende net_pkt_iface(pkt) derefereert het bevrijde pakket, een use-after-free read; met CONFIG_net_STATISTICS_PER_INTERFACE wordt de resulterende bungelende interfaceaanwijzer verder gederefereerd voor een statistiek-teller schrijven. Het IGMP-verzendpad is bereikbaar zonder authenticatie van inkomende IPv4 IGMP-lidmaatschapsquery's geadresseerd aan 224.0.0.1 (net_ipv4_igmp_input - send_igmp_report/send_igmp_v3_report - igmp_send), evenals van lokale multicast join/leave/rejoin-bewerkingen. Realistische impact is ongedefinieerd gedrag en mogelijke denial of service (sporadische crash of statistische corruptie); een controleerbaar schrijven vereist het asynchrone TX-pad plus een gelijktijdig hergebruik van de mat. De fout is geïntroduceerd met IGMPv2-ondersteuning en heeft invloed op releases van v2.6.0 tot en met v4.4.0. De fix slaat de interfaceaanwijzer op in de cache voordat deze wordt verzonden. Merk op dat het analoge IPv6 mld pad (mld_send in subsys/net/ip/ipv6_mld.c) hetzelfde ongefixeerde patroon behoudt.
Origineel (Engels) tonen
In Zephyr's IPv4 IGMP implementation, igmp_send() in subsys/net/ip/igmp.c read the network interface back out of the packet via net_pkt_iface(pkt) after the packet had been handed to net_send_data(). On the successful-send path the packet's last reference may already have been released by the L2 driver or by the network stack's TX handling (synchronously in the default NET_TC_TX_COUNT=0 immediate-transmit configuration), returning the net_pkt slab block to its free list. The subsequent net_pkt_iface(pkt) dereferences the freed packet, a use-after-free read; with CONFIG_NET_STATISTICS_PER_INTERFACE the resulting dangling interface pointer is further dereferenced for a statistics-counter write.
The IGMP send path is reachable without authentication from inbound IPv4 IGMP membership queries addressed to 224.0.0.1 (net_ipv4_igmp_input -> send_igmp_report/send_igmp_v3_report -> igmp_send), as well as from local multicast join/leave/rejoin operations.
Realistic impact is undefined behavior and potential denial of service (sporadic crash or stats corruption); a controllable write requires the asynchronous TX path plus a concurrent slab reuse.
The flaw was introduced with IGMPv2 support and affects releases from v2.6.0 through v4.4.0. The fix caches the interface pointer before sending. Note the analogous IPv6 MLD path (mld_send in subsys/net/ip/ipv6_mld.c) retains the same unfixed pattern.