Description
Stack-based Buffer Overflow in lws_adns_parse_label in warmcat libwebsockets allows, when the LWS_WITH_SYS_ASYNC_DNS flag is enabled during compilation, to overflow the label_stack, when the attacker is able to sniff a DNS request in order to craft a response with a matching id containing a label longer than the maximum.
Problem types
CWE-121 Stack-based Buffer Overflow
Product status
4.0 (semver)
4.0 (semver)
Credits
Raffaele Bova at Nozomi Networks
References
libwebsockets.org/...bb9598562b37c942ba5b04bcde3f7fdf66a9d3a
www.nozominetworks.com/...rability-advisories-cve-2025-11678