Use-after-free in NanoMQ - CVE-2026-22040
Published: April 24, 2026
NanoMQ
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to use-after-free in the Broker process when handling a combined pattern of MQTT publish, reconnect, kick-out, and subscribe or unsubscribe operations using the same ClientID. A remote attacker can send valid MQTT control packets in a specially crafted traffic pattern to cause a denial of service.
User interaction is required, and the issue is generally reproducible under sustained high-frequency traffic conditions.