REDHAT-BUG-2520143: Medium severity Gnome libsoup vulnerability

Published Aug 20, 2026
·
Updated

A flaw was found in libsoup's SoupServer HTTP Range header processing. The sortranges() comparator function in soup-message-headers.c returns the difference of two goffset (64-bit) values as an int (32-bit). When two range start positions in a multi-range request differ by more than INTMAX (~2.1 billion), the truncation flips the comparison result sign, violating qsort's ordering contract. The mis-sorted ranges are then incorrectly merged, causing the server to silently omit requested byte ranges from the HTTP 206 Partial Content response. A remote unauthenticated attacker can trigger this by sending a multi-range Range request for a resource larger than approximately 2 GB, with range start offsets more than INTMAX apart. The client receives fewer ranges than requested with no error indication, compromising data integrity for resumable downloads, delta updates, mirror synchronization, and chunked verification of large objects.

Affected Software

1 affected component
Gnome libsoup

Event History

Aug 20, 2026
Data Sourced
via Red Hat·07:44 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Servers using libsoup's SoupServer are exposed when they serve resources larger than approximately 2 GB and process multi-range HTTP requests whose requested starting offsets differ by more than INT_MAX, about 2.1 billion bytes.

2

What does an attacker need to exploit it?

The attacker only needs remote, unauthenticated access to send a crafted multi-range Range request for a sufficiently large resource. No authentication requirement is described.

3

What is the practical impact of a successful request?

The server can return an HTTP 206 Partial Content response that silently omits requested byte ranges. This can compromise integrity-sensitive workflows such as resumable downloads, delta updates, mirror synchronization, and chunked verification of large objects.

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