Kazuma Matsumoto

Beneath the Perimeter: Structural Memory Safety Issues in Embedded Protocol Stacks

BTstack, libcoap, and miniupnpd are three entirely different protocol stacks — Bluetooth, CoAP, and UPnP — with nothing obvious in common. Yet systematic analysis surfaces the same class of memory safety failure across all three. This post examines the structural reasons why adjacent-network protocol implementations — those reachable only from the same local network or Bluetooth range — are a consistent source of these issues.