CVE-2026-102559: Libsoup: libsoup: heap buffer overflow during websocket client-frame masking

Published Sep 29, 2026
·
Updated

A flaw was found in libsoup. When constructing a masked WebSocket client frame for a very large outgoing payload, size values passed to GByteArray allocation APIs could be truncated while the masking routine still used the full length, causing a heap buffer overflow.

Other sources

A heap buffer overflow was found in libsoup's client-side WebSocket frame construction / masking path.

Outgoing frames are built in a GByteArray. For a send payload larger than the array can represent (at/above ~2^31), gbytearraysizednew() / append truncated the length while xorwithmask() still iterated the full attacker-/caller-controlled length, writing past the small allocation during masking.

Fixed by rejecting outgoing payloads above MAXOUTGOINGPAYLOADSIZE both before and after extensions process the payload (commit d7f074f8, libsoup 3.7.3).

References: https://gitlab.gnome.org/GNOME/libsoup/-/workitems/554 (Bug 7) https://gitlab.gnome.org/GNOME/libsoup/-/commit/d7f074f8

— Red Hat

Affected Software

1 affected component
Gnome libsoup<3.7.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libsoup to a version that resolves this vulnerability.

    Fixed in 3.7.3Patch d7f074f8

Event History

Sep 29, 2026
Data Sourced
via Red Hat·04:39 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:15 PM
Data Sourced
via MITRE·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this flaw?

Applications using libsoup’s client-side WebSocket functionality are exposed when they construct masked outgoing WebSocket frames. The vulnerable path is triggered by a very large outgoing payload.

2

What is required to trigger the overflow?

The caller-controlled outgoing payload must be at or above approximately 2^31 bytes, large enough for GByteArray size handling to truncate the allocation length. The masking routine then processes the full payload length and writes beyond the undersized heap allocation.

3

Does processing by WebSocket extensions matter?

Yes. The fix enforces the outgoing payload limit both before and after extensions process the payload, indicating that extension processing can affect the payload size that reaches frame construction.

4

What version includes the documented fix?

The issue is fixed in libsoup 3.7.3 by rejecting outgoing payloads larger than MAX_OUTGOING_PAYLOAD_SIZE before and after extension processing.

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