CVE-2026-63381

Libevent: Dangling Pointer in `evbuffer_add_buffer_reference`

State
Published
Severity
5.8 Medium
Published
Aug 20, 2026
Updated
Aug 21, 2026
Reserved
Jul 16, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.8 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-908 Use of Uninitialized Resource

Affected Products

ProductVersions
libeventlibevent
  • >= 2.2.0-alpha, < 2.2.2-alphaAffected
  • < 2.1.13Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.