Libevent: Unbounded memory accumulation in WebSocket server via fragmented frames
libevent
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| libevent libevent |
| No fix yet |
Original description
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->incomplete_frames without enforcing a total message-size limit. An unauthenticated remote client can repeatedly send fragmented WebSocket frames below WS_MAX_RECV_FRAME_SZ 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.
From the CVE record · GitHub_M