5.8medium
Libevent: Dangling Pointer in `evbuffer_add_buffer_reference`
- Severity
- 5.8medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| libevent libevent | >= 2.2.0-alpha, < 2.2.2-alpha, < 2.1.13 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Libevent es una biblioteca de notificación de eventos. Antes de las versiones 2.1.13 y 2.2.2-alpha, libevent tiene un uso después de liberación en buffer.c cuando evbuffer_add_buffer_reference procesa un búfer de salida cuyo out_total_len es cero. evbuffer_free_all_chains libera la cadena vacía inicial sin restablecer outbuf -> first, outbuf -> last, o outbuf -> last_with_datap, y APPEND_CHAIN_MULTICAST posteriormente desreferencia el puntero de cadena colgante. Un llamador que puede impulsar este estado del búfer puede causar corrupción de memoria o un fallo del proceso. Este problema está solucionado en las versiones 2.1.13 y 2.2.2-alpha.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63381 changed 2026-08-21 | CVE Terms of Use |
| NVD | CVE-2026-63381 changed 2026-10-26 | Public domain |