# CVE-2026-63381: Libevent: Dangling Pointer in `evbuffer_add_buffer_reference`

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-20T17:50:09.322Z
- Modified: 2026-10-26T10:10:00.140Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- libevent libevent: >= 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>

## Sources

- CVE List: [CVE-2026-63381](https://www.cve.org/CVERecord?id=CVE-2026-63381), CVE Terms of Use, modified 2026-08-21
- NVD: [CVE-2026-63381](https://nvd.nist.gov/vuln/detail/CVE-2026-63381), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-63381 · Whole record: https://cve.day/CVE-2026-63381.json · Rebuilt by cve.day 2026-11-25T22:59:34.678Z
