Bug 2520148 - CVE-2026-77014 libsoup3: libsoup: Integer truncation in sort_ranges() comparator causes silent omission of HTTP Range responses [fedora-all]
Summary: CVE-2026-77014 libsoup3: libsoup: Integer truncation in sort_ranges() compara...
Keywords:
Status: CLOSED DUPLICATE of bug 2522094
Alias: None
Product: Fedora
Classification: Fedora
Component: libsoup3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact:
URL:
Whiteboard: {"flaws": ["45ee20ae-6ef3-4ecd-8241-4...
Depends On:
Blocks: CVE-2026-77014
TreeView+ depends on / blocked
 
Reported: 2026-08-20 07:59 UTC by Thibault Guittet
Modified: 2026-09-04 07:17 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-09-04 07:17:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thibault Guittet 2026-08-20 07:59:10 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in libsoup's SoupServer HTTP Range header processing. The sort_ranges() 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 INT_MAX (~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 INT_MAX 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.

Comment 1 Milan Crha 2026-09-04 07:17:42 UTC
This had been fixed upstream together with the change for bug #2522094, thus I mark this as a duplicate of it, to ease the paper work.

*** This bug has been marked as a duplicate of bug 2522094 ***


Note You need to log in before you can comment on or make changes to this bug.