CVE-2026-63380: Libevent: Null Pointer Dereference in `evws_new_session`

Published Aug 20, 2026
·
Updated

Libevent is an event notification library. Prior to 2.2.2-alpha, libevent can dereference invalid list pointers in ws.c when evwsnewsession enters its error path after evhttpstartws succeeds but buffereventenablelocking fails. evwsconnectionfree sees a non-null httpserver and unconditionally calls TAILQREMOVE even though the session was never inserted into httpserver->wssessions. 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.

Affected Software

1 affected component
libevent libevent<2.2.2-alpha

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libevent to a version that resolves this vulnerability.

    Fixed in 2.2.2-alpha

Event History

Aug 20, 2026
CVE Published
via MITRE·05:52 PM
Data Sourced
via MITRE·05:52 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue in practice?

A local caller that can cause an allocation failure or a locking failure during WebSocket session creation can trigger the crash. The impact described is process denial of service.

2

Are deployments on the default path affected?

The vulnerable path requires evhttp_start_ws_ to succeed and bufferevent_enable_locking_ to fail while evws_new_session is handling the resulting error. The provided information does not establish that this condition occurs in a default deployment.

3

What should be done if upgrading cannot happen immediately?

Restrict local access to components that can create WebSocket sessions and prevent untrusted local callers from inducing allocation or locking failures. The provided fix is version 2.2.2-alpha.

4

How can I determine whether an observed crash matches this issue?

Check whether the process crashes during WebSocket session creation after a locking failure, with cleanup reaching evws_connection_free. The failure is associated with removal from http_server->ws_sessions even though the session was never inserted into that list.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203