Vulnerability · Published Aug 20, 2026 · Assigned by GitHub_M
CVE-2026-63381Libevent: Dangling Pointer in `evbuffer_add_buffer_reference`
Medium 5.8
In plain English
A medium-severity security flaw in libevent from libevent. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | libevent | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:9 | libevent | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux:10 | libevent-devel | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:9 | libevent-devel | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux:10 | libevent-doc | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:9 | libevent-doc | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| Debian:12 | libevent | 2.1.12-stable-8+deb12u1 | DEBIAN-CVE-2026-63381 |
| Debian:13 | libevent | 2.1.13-stable-1~deb13u1 | DEBIAN-CVE-2026-63381 |
| Debian:14 | libevent | 2.1.13-stable-1 | DEBIAN-CVE-2026-63381 |
| Rocky Linux:10 | libevent | 0:2.1.13-1.el10_2 | RLSA-2026:67909 |
| Rocky Linux:9 | libevent | 0:2.1.13-1.el9_8 | RLSA-2026:67910 |
| Ubuntu:22.04:LTS | libevent | 2.1.12-stable-1ubuntu0.1 | UBUNTU-CVE-2026-63381 |
| Ubuntu:22.04:LTS | libevent | 2.1.12-stable-1ubuntu0.1 | USN-8710-1 |
| Ubuntu:24.04:LTS | libevent | 2.1.12-stable-9ubuntu2.1 | UBUNTU-CVE-2026-63381 |
| Ubuntu:24.04:LTS | libevent | 2.1.12-stable-9ubuntu2.1 | USN-8710-1 |
| Ubuntu:26.04:LTS | libevent | 2.1.12-stable-10ubuntu0.1 | USN-8710-1 |
| Ubuntu:26.04:LTS | libevent | 2.1.12-stable-10ubuntu0.1 | UBUNTU-CVE-2026-63381 |
Affected products (as reported)
Weakness: CWE-908 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/libevent/libevent/security/advisories/GHSA-c2pj-cg4r-88c8 x_refsource_CONFIRM
- https://github.com/libevent/libevent/commit/5cb95ba2f804f8aff46f88d58391c71e1251cd1c x_refsource_MISC
- https://github.com/libevent/libevent/commit/9db091b04f569be3a700fa9860ef02f90b830af9 x_refsource_MISC
- https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable x_refsource_MISC
- https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha x_refsource_MISC