Skip to content
OpenAdvisories
High · 7.5 CVE-2025-11678 EUVD-2025-35057GHSA-2g39-f45w-2fcm

Stack-based Buffer Overflow in libwebsockets DNS response parsing

Published Oct 20, 2025 · Updated Oct 20, 2025 · Assigned by Nozomi

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.

Affected products

VendorProductAffectedFixed
warmcat libwebsocket 4.0 – ≤ 4.4.2, 4.0 – ≤ 4.3.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libwebsockets 4.3.5-3 —
Debian 13 libwebsockets 4.3.5-1+deb13u1 —
Debian 12 libwebsockets No fix yet —
Debian 11 libwebsockets 4.0.20-2+deb11u1 DLA-4373-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 libwebsockets No fix yet —
Ubuntu 22.04 LTS libwebsockets 4.0.20-2ubuntu1.1 USN-8024-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libwebsockets 4.3.3-1.1ubuntu0.1~esm1 USN-8024-1
Ubuntu Pro 20.04 LTS libwebsockets 3.2.1-3ubuntu0.1~esm1 USN-8024-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 17 libwebsockets 4.3.0-2.el9ost RHSA-2025:22969

Advisories 4

References