REDHAT-BUG-2520659: High severity libevent libevent vulnerability
Libevent is an event notification library. From 2.2.0-alpha-dev until 2.2.2-alpha, the libevent WebSocket server in ws.c accumulates fragmented frames in evws->incompleteframes without enforcing a total message-size limit. An unauthenticated remote client can repeatedly send fragmented WebSocket frames below WSMAXRECVFRAMESZ with FIN=0, causing the evbuffer to grow without bound until the process or host exhausts memory. This issue is fixed in version 2.2.2-alpha.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.2.2-alpha
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using the libevent WebSocket server implementation in ws.c are exposed if they run a version from 2.2.0-alpha-dev through 2.2.2-alpha. The issue concerns handling of fragmented WebSocket frames.
What does an attacker need to exploit it?
An attacker only needs unauthenticated remote access to the affected WebSocket server. They can repeatedly send fragmented frames below WS_MAX_RECV_FRAME_SZ with FIN set to 0.
What is the impact of successful exploitation?
Incomplete fragmented frames accumulate without a total message-size limit, allowing the evbuffer to grow until process or host memory is exhausted. This can cause a denial of service.
What version fixes the issue?
The issue is fixed in libevent version 2.2.2-alpha.