CVE-2026-63381Libevent: Dangling Pointer in `evbuffer_add_buffer_reference`
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has a use-after-free in buffer.c when evbuffer_add_buffer_reference processes an output buffer whose out_total_len is zero. evbuffer_free_all_chains frees the initial empty chain without resetting outbuf->first, outbuf->last, or outbuf->last_with_datap, and APPEND_CHAIN_MULTICAST subsequently dereferences the dangling chain pointer. A caller that can drive this buffer state can cause memory corruption or a process crash. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libevent | Fixed | 2.1.12-stable-10ubuntu0.1 | UBUNTU-CVE-2026-63381 |
| Ubuntu 24.04 | libevent | Fixed | 2.1.12-stable-9ubuntu2.1 | UBUNTU-CVE-2026-63381 |
| Ubuntu 22.04 | libevent | Fixed | 2.1.12-stable-1ubuntu0.1 | UBUNTU-CVE-2026-63381 |
| Ubuntu 20.04 | libevent | Fix pending | 2.1.11-stable-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-63381 |
| Ubuntu 18.04 | libevent | Fix pending | 2.1.8-stable-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-63381 |
| Debian 14 | libevent | Fixed | 2.1.13-stable-1 | DEBIAN-CVE-2026-63381 |
| Debian 13 | libevent | Fixed | 2.1.13-stable-1~deb13u1 | DEBIAN-CVE-2026-63381 |
| Debian 12 | libevent | Fixed | 2.1.12-stable-8+deb12u1 | DEBIAN-CVE-2026-63381 |
| Red Hat Enterprise Linux 10 | libevent | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 10 | libevent-devel | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 10 | libevent-doc | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 9 | libevent | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 9 | libevent-devel | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 9 | libevent-doc | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 8 | libevent | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libevent-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libevent-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libevent | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libevent-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libevent-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libevent | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent-headers | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libevent2-doc | Will not fix Out of support scope | ||
| AlmaLinux 10 | libevent-doc | Fixed | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux 9 | libevent | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux 9 | libevent-devel | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux 9 | libevent-doc | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| Rocky Linux 10 | libevent | Fixed | 0:2.1.13-1.el10_2 | RLSA-2026:67909 |
| Rocky Linux 9 | libevent | Fixed | 0:2.1.13-1.el9_8 | RLSA-2026:67910 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libevent: affected: >= 2.2.0-alpha, < 2.2.2-alpha, < 2.1.13
References
- https://github.com/libevent/libevent/security/advisories/GHSA-c2pj-cg4r-88c8
- https://github.com/libevent/libevent/commit/5cb95ba2f804f8aff46f88d58391c71e1251cd1c
- https://github.com/libevent/libevent/commit/9db091b04f569be3a700fa9860ef02f90b830af9
- https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable
- https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.