Bug 1962243 (CVE-2021-28651)

Summary: CVE-2021-28651 squid: denial of service in URN processing
Product: [Other] Security Response Reporter: Mauro Matteo Cascella <mcascell>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anon.amish, code, icesalov, jonathansteffan, luhliari, naresh.sukhija_ext, tcrider
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: squid 4.15, squid 5.0.6 Doc Type: If docs needed, set a value
Doc Text:
An input validation flaw was found in Squid. This issue could allow a malicious server in collaboration with a trusted client to consume arbitrarily large amounts of memory on the server running Squid. The highest threat from this vulnerability is to system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:53:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1963391, 1963392, 1963393    
Bug Blocks: 1959539    

Description Mauro Matteo Cascella 2021-05-19 15:03:01 UTC
Due to an input validation bug Squid is vulnerable to a Denial of Service against all clients using the proxy. This problem allows a malicious server in collaboration with a trusted client to consume arbitrarily large amounts of memory on the server running Squid. Lack of available memory resources impacts all services on the machine running Squid. Once initiated the DoS situation will persist until Squid is shutdown.

Upstream security advisory:
https://github.com/squid-cache/squid/security/advisories/GHSA-ch36-9jhx-phm4

Comment 1 Mauro Matteo Cascella 2021-05-22 21:03:01 UTC
Created squid tracking bugs for this issue:

Affects: fedora-all [bug 1963391]

Comment 3 Mauro Matteo Cascella 2021-05-23 14:28:22 UTC
This flaw exists due to a memory leak when processing URN resource identifiers in urnParseReply() in src/urn.cc. The bug was fixed by releasing the temporary buffer at the end of the function.

Upstream pull request:
https://github.com/squid-cache/squid/pull/778

Upstream commits:
https://github.com/squid-cache/squid/commit/47a085ff06598b64817875769022b8707a0af7db [master]
https://github.com/squid-cache/squid/commit/f5c56cdbd058c49fe2f75fe5995f40414c2fd206 [v5]
https://github.com/squid-cache/squid/commit/a975fd5aedc866629214aaaccb38376855351899 [v4]

Comment 6 errata-xmlrpc 2021-11-09 18:05:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4292 https://access.redhat.com/errata/RHSA-2021:4292

Comment 7 Product Security DevOps Team 2021-11-09 18:53:10 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-28651