CyberRota Analysis
AI-GeneratedA vulnerability exists in libsoup's handling of HTTP Range headers, where the sort_ranges() comparator improperly truncates a 64-bit subtraction result to a 32-bit integer. This flaw can lead to the silent omission of requested byte ranges in HTTP 206 Partial Content responses for resources exceeding approximately 2 GB, potentially impacting data retrieval for large files. Organizations utilizing libsoup for HTTP server implementations should prioritize addressing this issue to ensure proper handling of byte range requests.
Original NVD Description
A flaw was found in libsoup's SoupServer HTTP Range header processing. The sort_ranges() comparator in soup-message-headers.c truncates a 64-bit subtraction result to 32-bit int, flipping the sign for range offsets differing by more than INT_MAX. This causes silent omission of requested byte ranges from HTTP 206 Partial Content responses on resources larger than approximately 2 GB.