REDHAT-BUG-2439091: Medium severity Gnome libsoup vulnerability

Published Feb 11, 2026
·
Updated

Integer underflow in CVE-2025-32052 fix when resourcelength=0

The fix for CVE-2025-32052 (commit a5b86bfc) introduces a potential integer underflow vulnerability when resourcelength is 0.

Affected Code: libsoup/soup-content-sniffer.c, line 507

Issue: The patch changes the condition from: while ((indexstream < resourcelength) && ...) to: while ((indexstream < resourcelength - 1) && ...)

When buffer->length = 0:

resourcelength = MIN(512, 0) = 0 resourcelength - 1 underflows to UINTMAX (gsize is unsigned) Condition (0 < UINTMAX) = TRUE Loop executes on empty buffer → buffer overread Fix: Add guard before hasws path: if (resourcelength == 0) continue;

This matches the pattern used in the else branch which already checks: if (resourcelength < typerow->patternlength) continue;

Patch :

--- a/libsoup/soup-content-sniffer.c +++ b/libsoup/soup-content-sniffer.c @@ -498,6 +498,11 @@ sniffunknown (SoupContentSniffer sniffer, SoupBuffer buffer, if (!sniffscriptable && typerow->scriptable) continue; + / Ensure we have data to sniff - prevents underflow in resourcelength - 1 / + if (resourcelength == 0) + continue; + if (typerow->hasws) { guint indexstream = 0; guint indexpattern = 0;

Affected Software

1 affected component
Gnome libsoup

Event History

Feb 11, 2026
Data Sourced
via Red Hat·08:23 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2439091?

The severity of REDHAT-BUG-2439091 has not been explicitly categorized but it indicates a potential security risk due to an integer underflow.

2

How do I fix REDHAT-BUG-2439091?

To fix REDHAT-BUG-2439091, you should apply the recommended patches provided in the latest updates for libsoup.

3

Which software is affected by REDHAT-BUG-2439091?

REDHAT-BUG-2439091 affects the GNOME libsoup library.

4

What is the primary issue related to REDHAT-BUG-2439091?

The primary issue related to REDHAT-BUG-2439091 is an integer underflow vulnerability introduced when resource_length is set to 0.

5

Where can I find more information about REDHAT-BUG-2439091?

You can find more information about REDHAT-BUG-2439091 in the Red Hat bug tracking system.

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