Impact
A use‑after‑free occurs in libevent’s evbuffer_add_buffer_reference when handling an output buffer whose out_total_len is zero. The function frees an empty chain without resetting linked‑list pointers, and a subsequent APPEND_CHAIN_MULTICAST dereferences the stale pointer. The defect is classified as CWE‑908 and can lead to memory corruption or a process crash.
Affected Systems
The affected products are libevent library releases prior to 2.1.13 and 2.2.2‑alpha. Versions before these releases contain the flaw; the issue is fixed in 2.1.13 and the unstable 2.2.2‑alpha release. Applications linked against the vulnerable library are at risk.
Risk and Exploitability
The CVSS score of 5.8 indicates moderate severity. An EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need to influence the creation of a zero‑length output buffer—an input that can be controlled within applications using libevent—to trigger the use‑after‑free. The impact is local.
OpenCVE Enrichment