Description
Libevent is an event notification library. Prior to 2.2.2-alpha, libevent can dereference invalid list pointers in ws.c when evws_new_session enters its error path after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. evws_connection_free sees a non-null http_server and unconditionally calls TAILQ_REMOVE even though the session was never inserted into http_server->ws_sessions. A local caller able to induce this allocation or locking failure can crash the process. This issue is fixed in version 2.2.2-alpha.
Published: 2026-08-20
Score: 5.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A null pointer dereference is triggered in libevent’s evws_new_session when the error path is entered after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. The routine then unconditionally removes a session from a list that was never inserted, causing the process to crash. This results in a denial‑of‑service condition. The underlying weaknesses are a null pointer dereference (CWE‑476) and an improper use of freed memory (CWE‑416).

Affected Systems

All libevent releases prior to 2.2.2-alpha are affected. This includes any system or application that has linked against libevent before the 2.2.2-alpha release and has not upgraded to a later, patched version.

Risk and Exploitability

The CVSS score is 5.7, indicating moderate severity, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a local caller or an application that can induce a failure in bufferevent_enable_locking_. An attacker who can trigger this failure path can crash the process, causing a denial of service. Because the exploit relies on a specific failure condition, the likelihood of widespread accidental exploitation is low, but a determined attacker with sufficient access could still trigger the crash.

Generated by OpenCVE AI on August 21, 2026 at 01:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libevent to version 2.2.2-alpha or newer.
  • Rebuild systems or containers that use libevent to link against the updated library.
  • Verify that application configurations no longer rely on the older evws_new_session error path.

Generated by OpenCVE AI on August 21, 2026 at 01:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Libevent Project
Libevent Project libevent
Vendors & Products Libevent Project
Libevent Project libevent

Thu, 20 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Libevent is an event notification library. Prior to 2.2.2-alpha, libevent can dereference invalid list pointers in ws.c when evws_new_session enters its error path after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. evws_connection_free sees a non-null http_server and unconditionally calls TAILQ_REMOVE even though the session was never inserted into http_server->ws_sessions. A local caller able to induce this allocation or locking failure can crash the process. This issue is fixed in version 2.2.2-alpha.
Title Libevent: Null Pointer Dereference in `evws_new_session`
Weaknesses CWE-416
CWE-476
References
Metrics cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Libevent Project Libevent
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T17:52:29.458Z

Reserved: 2026-07-16T17:39:30.171Z

Link: CVE-2026-63380

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:35.357

Modified: 2026-08-20T18:16:35.357

Link: CVE-2026-63380

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T13:01:09Z

Weaknesses