Bug 1185921 (CVE-2021-28651)

Summary: VUL-0: CVE-2021-28651: squid,squid3: SQUID-2021:1 Denial of Service in URN processing
Product: [Novell Products] SUSE Security Incidents Reporter: Gianluca Gabrielli <gianluca.gabrielli>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: security-team
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/283978/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-28651:7.4:(AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H)
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Gianluca Gabrielli 2021-05-11 14:14:10 UTC
Due to a buffer management bug Squid is vulnerable to a
Denial of service attack against the server it is operating on.

This attack is limited to proxies which attempt to resolve a
"urn:" resource identifier. Support for this resolving is enabled
by default in all Squid.
Severity:

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.

CVSS Score of 8.5
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H/E:P/RL:O/RC:C/CR:X/IR:X/AR:H/MAV:N/MAC:L/MPR:N/MUI:R/MS:C/MC:X/MI:X/MA:H&version=3.1
Updated Packages:
This bug is fixed by Squid versions 4.15 and 5.0.6.

In addition, patches addressing this problem for the stable
releases can be found in our patch archives:
Squid 4:

http://www.squid-cache.org/Versions/v4/changesets/squid-4-a975fd5aedc866629214aaaccb38376855351899.patch

If you are using a prepackaged version of Squid then please refer
to the package vendor for availability information on updated
packages.
Determining if your version is vulnerable:

Squid older than 3.5.28 have not been tested and should be assumed to be
vulnerable.

All Squid-4.x up to and including 4.14 are vulnerable.

All Squid-5.x up to and including 5.0.5 are vulnerable.
Workaround:

Disable URN processing by the proxy. Add these lines to
squid.conf:

acl URN proto URN
http_access deny URN
Contact details for the Squid project:

For installation / upgrade support on binary packaged versions
of Squid: Your first point of contact should be your binary
package vendor.

If you install and build Squid from the original Squid sources
then the squid-users@lists.squid-cache.org mailing list is your
primary support point. For subscription details see
http://www.squid-cache.org/Support/mailing-lists.html.

For reporting of non-security bugs in the latest STABLE release
the squid bugzilla database should be used
http://bugs.squid-cache.org/.

For reporting of security sensitive bugs send an email to the
squid-bugs@lists.squid-cache.org mailing list. It's a closed
list (though anyone can post) and security related bug reports
are treated in confidence until the impact has been established.
Credits:

This vulnerability was discovered by Joshua Rogers of Opera
Software.

Fixed by Amos Jeffries of Treehouse Networks Ltd.
Revision history:

2021-02-22 06:55:38 UTC Initial Report
2021-02-24 00:53:21 UTC Patch Released
2021-03-17 06:19:09 UTC CVE Assignment

END
Comment 1 Gianluca Gabrielli 2021-05-11 14:15:54 UTC
Affected packages:

- SUSE:SLE-11-SP1:Update/squid3  3.1.23
- SUSE:SLE-12-SP2:Update/squid   3.5.21
- SUSE:SLE-12-SP5:Update/squid   4.13
- SUSE:SLE-15:Update/squid       4.13
- openSUSE:Factory/squid         4.14

Patch 4.x [0]

[0] http://www.squid-cache.org/Versions/v4/changesets/squid-4-a975fd5aedc866629214aaaccb38376855351899.patch
Comment 4 Swamp Workflow Management 2021-06-02 19:27:58 UTC
SUSE-SU-2021:1838-1: An update that solves 5 vulnerabilities and has three fixes is now available.

Category: security (important)
Bug References: 1171164,1171569,1183436,1185916,1185918,1185919,1185921,1185923
CVE References: CVE-2020-25097,CVE-2021-28651,CVE-2021-28652,CVE-2021-28662,CVE-2021-31806
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 12-SP5 (src):    squid-4.15-4.18.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Swamp Workflow Management 2021-06-11 16:32:18 UTC
SUSE-SU-2021:1961-1: An update that solves 5 vulnerabilities and has three fixes is now available.

Category: security (important)
Bug References: 1171164,1171569,1183436,1185916,1185918,1185919,1185921,1185923
CVE References: CVE-2020-25097,CVE-2021-28651,CVE-2021-28652,CVE-2021-28662,CVE-2021-31806
JIRA References: 
Sources used:
SUSE Manager Server 4.0 (src):    squid-4.15-5.26.1
SUSE Manager Retail Branch Server 4.0 (src):    squid-4.15-5.26.1
SUSE Manager Proxy 4.0 (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Server for SAP 15 (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Server 15-LTSS (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Module for Server Applications 15-SP3 (src):    squid-4.15-5.26.1
SUSE Linux Enterprise Module for Server Applications 15-SP2 (src):    squid-4.15-5.26.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    squid-4.15-5.26.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    squid-4.15-5.26.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    squid-4.15-5.26.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    squid-4.15-5.26.1
SUSE Enterprise Storage 6 (src):    squid-4.15-5.26.1
SUSE CaaS Platform 4.0 (src):    squid-4.15-5.26.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Swamp Workflow Management 2021-06-16 20:01:53 UTC
openSUSE-SU-2021:0879-1: An update that solves 5 vulnerabilities and has three fixes is now available.

Category: security (important)
Bug References: 1171164,1171569,1183436,1185916,1185918,1185919,1185921,1185923
CVE References: CVE-2020-25097,CVE-2021-28651,CVE-2021-28652,CVE-2021-28662,CVE-2021-31806
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    squid-4.15-lp152.2.9.1
Comment 7 Swamp Workflow Management 2021-07-11 13:22:46 UTC
openSUSE-SU-2021:1961-1: An update that solves 5 vulnerabilities and has three fixes is now available.

Category: security (important)
Bug References: 1171164,1171569,1183436,1185916,1185918,1185919,1185921,1185923
CVE References: CVE-2020-25097,CVE-2021-28651,CVE-2021-28652,CVE-2021-28662,CVE-2021-31806
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    squid-4.15-5.26.1
Comment 9 Swamp Workflow Management 2022-03-15 14:31:10 UTC
SUSE-SU-2022:14914-1: An update that fixes two vulnerabilities is now available.

Category: security (important)
Bug References: 1183436,1185921
CVE References: CVE-2020-25097,CVE-2021-28651
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS (src):    squid3-3.1.23-8.16.37.18.1
SUSE Linux Enterprise Point of Sale 11-SP3 (src):    squid3-3.1.23-8.16.37.18.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    squid3-3.1.23-8.16.37.18.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Swamp Workflow Management 2022-07-13 22:16:04 UTC
SUSE-SU-2022:2392-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1183436,1185921,1200907
CVE References: CVE-2020-25097,CVE-2021-28651,CVE-2021-46784
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    squid-3.5.21-26.35.1
SUSE OpenStack Cloud 9 (src):    squid-3.5.21-26.35.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    squid-3.5.21-26.35.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    squid-3.5.21-26.35.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    squid-3.5.21-26.35.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    squid-3.5.21-26.35.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.