Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102558 Overview
A heap buffer overflow flaw exists in libsoup, the HTTP client/server library used by GNOME and many Linux applications. The vulnerability affects SoupWebsocketConnection when the max-incoming-payload-size property is set to unlimited (0). An attacker controlling a WebSocket frame length can cause the incoming GByteArray to grow until its length integer wraps, producing a heap buffer overflow during frame data reads. Exploitation can trigger memory corruption and denial of service against any process that consumes untrusted WebSocket traffic through libsoup [CWE-125].
Critical Impact
Remote, unauthenticated attackers can corrupt heap memory in libsoup WebSocket consumers, leading to process crashes and potential information disclosure.
Affected Products
- libsoup (GNOME HTTP library)
- Applications embedding SoupWebsocketConnection with max-incoming-payload-size configured to 0
- Red Hat Enterprise Linux distributions shipping affected libsoup builds
Discovery Timeline
- 2026-09-29 - CVE CVE-2026-102558 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-102558
Vulnerability Analysis
The flaw resides in libsoup's WebSocket connection handler. When an application sets max-incoming-payload-size to 0, libsoup disables the size cap that normally rejects oversized frames. The connection then trusts the length field in incoming WebSocket frames and grows its internal GByteArray buffer accordingly.
Because the buffer length is tracked in a bounded integer, an attacker-controlled frame length can cause the accumulated size to wrap around zero. Subsequent frame data reads then write past the end of the undersized allocation, corrupting adjacent heap memory. The result is out-of-bounds access classified as [CWE-125] with impact on integrity, confidentiality, and availability.
Root Cause
The root cause is missing validation of aggregate payload length before extending the GByteArray. The unlimited configuration path does not check for integer wraparound between the current buffer size and the incoming frame length. This allows an arithmetic overflow to shrink the requested allocation while the copy loop still processes the original attacker-supplied length.
Attack Vector
Exploitation is network-based and requires no authentication or user interaction. An attacker sends a crafted sequence of WebSocket frames to any server or client that uses libsoup with unlimited payload size. Because WebSocket connections are frequently proxied and long-lived, the attacker can stage the wraparound across multiple frames.
Refer to the Red Hat CVE-2026-102558 Advisory and Red Hat Bug Report #2543274 for upstream tracking details.
Detection Methods for CVE-2026-102558
Indicators of Compromise
- Unexpected crashes or SIGABRT / SIGSEGV events in processes linking libsoup with WebSocket usage.
- Heap corruption warnings from glibc (e.g., malloc(): corrupted top size) originating in soup_websocket_connection_* frames.
- WebSocket sessions transferring frames with abnormally large declared payload lengths.
Detection Strategies
- Inventory installed libsoup versions across Linux fleets and flag hosts running vulnerable builds.
- Inspect application configurations for max-incoming-payload-size set to 0 on SoupWebsocketConnection objects.
- Add IDS/IPS signatures for WebSocket frames declaring payload lengths above legitimate application limits.
Monitoring Recommendations
- Forward core dump metadata and systemd-coredump events to a central log store for correlation.
- Monitor outbound and inbound WebSocket traffic volume from services built on libsoup for anomalous frame sizes.
- Alert on repeated crash-restart cycles of GNOME desktop components or server processes using libsoup.
How to Mitigate CVE-2026-102558
Immediate Actions Required
- Apply the patched libsoup package from your distribution as soon as it is available.
- Audit applications that instantiate SoupWebsocketConnection and remove any configuration that sets max-incoming-payload-size to 0.
- Restrict inbound WebSocket exposure of affected services behind an authenticated reverse proxy while patching is in progress.
Patch Information
Follow the fix guidance in the Red Hat CVE-2026-102558 Advisory. Update to the fixed libsoup package version distributed for your operating system and restart all processes that link the library so the patched code path is loaded.
Workarounds
- Set max-incoming-payload-size to a bounded value appropriate for the application, avoiding the unlimited 0 setting.
- Terminate WebSocket connections at a hardened proxy that enforces maximum frame and message sizes.
- Disable WebSocket features in libsoup-based applications where they are not required.
# Example: enforce a bounded WebSocket payload size in application code
# g_object_set(websocket_connection,
# "max-incoming-payload-size", (guint64) 1048576, /* 1 MiB */
# NULL);
# Update libsoup on RHEL-based systems once patches are released
sudo dnf update libsoup libsoup3
sudo systemctl restart <affected-service>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

