Skip to content
OpenAdvisories
High · 7.0 CVE-2026-63387 EUVD-2026-63508

Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response

Published Aug 20, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

Description

Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has an off-by-one stack buffer overflow in evdns.c when dnsname_to_labels formats a name-bearing DNS record at the end of the 64 KB stack buffer allocated by evdns_server_request_format_response. The final-label check permits j plus label_len plus one to equal buf_len, after which the terminating null byte is written to buf[buf_len]. A crafted DNS server response containing PTR, CNAME, MX, NS, or SOA data can trigger the one-byte out-of-bounds write and crash or corrupt the process. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.

Affected products

VendorProductAffectedFixed
libevent libevent >= 2.2.0-alpha, < 2.2.2-alpha, < 2.1.13 —

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 libevent 2.1.13-stable-1 —
Debian 13 libevent 2.1.13-stable-1~deb13u1 —
Debian 12 libevent 2.1.12-stable-8+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libevent 2.1.12-stable-10ubuntu0.2 USN-8840-1
Ubuntu 24.04 LTS libevent 2.1.12-stable-9ubuntu2.2 USN-8840-1
Ubuntu 22.04 LTS libevent 2.1.12-stable-1ubuntu0.2 USN-8840-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libevent 2.1.11-stable-1ubuntu0.1~esm2 USN-8840-1
Ubuntu Pro 18.04 LTS libevent 2.1.8-stable-4ubuntu0.1~esm2 USN-8840-1
Ubuntu Pro 16.04 LTS libevent 2.0.21-stable-2ubuntu0.16.04.1+esm2 USN-8840-1
Ubuntu Pro 14.04 LTS libevent 2.0.21-stable-1ubuntu1.14.04.2+esm2 USN-8840-1
ReleasePackageFixed inAdvisory
RHEL 10 libevent +2 2.1.13-1.el10_2 RHSA-2026:67909
RHEL 9 libevent +2 2.1.13-1.el9_8 RHSA-2026:67910
RHEL 8 libevent +2 2.1.8-11.el8_10 RHSA-2026:67908
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 libevent +2 2.1.13-0.1.hum1 RHSA-2026:63388

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 libevent +2 2.1.13-1.el10_2 ALSA-2026:67909
AlmaLinux 9 libevent +2 2.1.13-1.el9_8 ALSA-2026:67910
AlmaLinux 8 libevent +2 2.1.8-11.el8_10 ALSA-2026:67908

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libevent 2.1.13-1.el10_2 RLSA-2026:67909
Rocky Linux 9 libevent 2.1.13-1.el9_8 RLSA-2026:67910
Rocky Linux 8 libevent 2.1.8-11.el8_10 RLSA-2026:67908
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libevent 2.1.13-1.1 openSUSE-SU-2026:12330-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libevent 2.1.13-1 —
Azure Linux 3 libtevent No fix yet —
Azure Linux 3 mysql 8.0.46-2 —
Azure Linux 3 ntp 4.2.8p17-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 libevent +2 2.1.13-1.el10_2 ELSA-2026-67909
Oracle Linux 9 libevent +2 2.1.13-1.el9_8 ELSA-2026-67910
Oracle Linux 8 libevent +2 2.1.8-11.el8_10 ELSA-2026-67908

Advisories 16

References