Bug 1141332 (CVE-2019-12525)

Summary: VUL-0: CVE-2019-12525: squid,squid3: improper check of single quote leads to memcpy of minus 1
Product: [Novell Products] SUSE Security Incidents Reporter: Marcus Meissner <meissner>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: atoptsoglou, gabriele.sonnu, smash_bz
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/237006/
Whiteboard: CVSSv3:SUSE:CVE-2019-12525:7.5:(AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marcus Meissner 2019-07-12 15:13:56 UTC
CVE-2019-12525

An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When
Squid is configured to use Digest authentication, it parses the header
Proxy-Authorization. It searches for certain tokens such as domain, uri, and
qop. Squid checks if this token's value starts with a quote and ends with one.
If so, it performs a memcpy of its length minus 2. Squid never checks whether
the value is just a single quote (which would satisfy its requirements), leading
to a memcpy of its length minus 1.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-12525
http://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-12525.html
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12525
http://www.squid-cache.org/Versions/v4/changesets/squid-4-7f73e9c5d17664b882ed32590e6af310c247f320.patch
http://www.squid-cache.org/Versions/v4/changesets/
https://github.com/squid-cache/squid/commits/v4
Comment 3 Swamp Workflow Management 2019-07-16 09:00:20 UTC
This is an autogenerated message for OBS integration:
This bug (1141332) was mentioned in
https://build.opensuse.org/request/show/715608 Factory / squid
Comment 6 Swamp Workflow Management 2019-07-16 16:30:18 UTC
This is an autogenerated message for OBS integration:
This bug (1141332) was mentioned in
https://build.opensuse.org/request/show/715745 Factory / squid
Comment 10 Swamp Workflow Management 2019-08-08 13:11:30 UTC
SUSE-SU-2019:2089-1: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 1140738,1141329,1141332
CVE References: CVE-2019-12525,CVE-2019-12529,CVE-2019-13345
Sources used:
SUSE OpenStack Cloud 8 (src):    squid-3.5.21-26.17.1
SUSE OpenStack Cloud 7 (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server for SAP 12-SP3 (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server for SAP 12-SP2 (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server 12-SP4 (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server 12-SP3-LTSS (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server 12-SP2-LTSS (src):    squid-3.5.21-26.17.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    squid-3.5.21-26.17.1
SUSE Enterprise Storage 5 (src):    squid-3.5.21-26.17.1
SUSE Enterprise Storage 4 (src):    squid-3.5.21-26.17.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 2019-08-17 01:13:50 UTC
SUSE-SU-2019:2089-2: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 1140738,1141329,1141332
CVE References: CVE-2019-12525,CVE-2019-12529,CVE-2019-13345
Sources used:
SUSE OpenStack Cloud Crowbar 8 (src):    squid-3.5.21-26.17.1
SUSE Enterprise Storage 5 (src):    squid-3.5.21-26.17.1
HPE Helion Openstack 8 (src):    squid-3.5.21-26.17.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 12 Swamp Workflow Management 2019-11-14 20:14:45 UTC
SUSE-SU-2019:2975-1: An update that fixes 12 vulnerabilities is now available.

Category: security (important)
Bug References: 1133089,1140738,1141329,1141330,1141332,1141442,1156323,1156324,1156326,1156328,1156329
CVE References: CVE-2019-12523,CVE-2019-12525,CVE-2019-12526,CVE-2019-12527,CVE-2019-12529,CVE-2019-12854,CVE-2019-13345,CVE-2019-18676,CVE-2019-18677,CVE-2019-18678,CVE-2019-18679,CVE-2019-3688
Sources used:
SUSE Linux Enterprise Module for Server Applications 15-SP1 (src):    squid-4.9-5.11.1
SUSE Linux Enterprise Module for Server Applications 15 (src):    squid-4.9-5.11.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 13 Swamp Workflow Management 2019-11-21 17:17:37 UTC
openSUSE-SU-2019:2540-1: An update that fixes 12 vulnerabilities is now available.

Category: security (important)
Bug References: 1133089,1140738,1141329,1141330,1141332,1141442,1156323,1156324,1156326,1156328,1156329
CVE References: CVE-2019-12523,CVE-2019-12525,CVE-2019-12526,CVE-2019-12527,CVE-2019-12529,CVE-2019-12854,CVE-2019-13345,CVE-2019-18676,CVE-2019-18677,CVE-2019-18678,CVE-2019-18679,CVE-2019-3688
Sources used:
openSUSE Leap 15.0 (src):    squid-4.9-lp150.13.1
Comment 14 Swamp Workflow Management 2019-11-21 17:20:35 UTC
openSUSE-SU-2019:2541-1: An update that fixes 12 vulnerabilities is now available.

Category: security (important)
Bug References: 1133089,1140738,1141329,1141330,1141332,1141442,1156323,1156324,1156326,1156328,1156329
CVE References: CVE-2019-12523,CVE-2019-12525,CVE-2019-12526,CVE-2019-12527,CVE-2019-12529,CVE-2019-12854,CVE-2019-13345,CVE-2019-18676,CVE-2019-18677,CVE-2019-18678,CVE-2019-18679,CVE-2019-3688
Sources used:
openSUSE Leap 15.1 (src):    squid-4.9-lp151.2.7.1
Comment 16 Swamp Workflow Management 2020-08-24 16:13:47 UTC
SUSE-SU-2020:14460-1: An update that fixes 21 vulnerabilities is now available.

Category: security (important)
Bug References: 1140738,1141329,1141332,1156323,1156324,1156326,1156328,1156329,1162687,1162689,1162691,1167373,1169659,1170313,1170423,1173304,1173455
CVE References: CVE-2019-12519,CVE-2019-12520,CVE-2019-12521,CVE-2019-12523,CVE-2019-12524,CVE-2019-12525,CVE-2019-12526,CVE-2019-12528,CVE-2019-12529,CVE-2019-13345,CVE-2019-18676,CVE-2019-18677,CVE-2019-18678,CVE-2019-18679,CVE-2019-18860,CVE-2020-11945,CVE-2020-14059,CVE-2020-15049,CVE-2020-8449,CVE-2020-8450,CVE-2020-8517
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS (src):    squid3-3.1.23-8.16.37.12.1
SUSE Linux Enterprise Point of Sale 11-SP3 (src):    squid3-3.1.23-8.16.37.12.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    squid3-3.1.23-8.16.37.12.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 17 Gabriele Sonnu 2022-04-14 07:24:09 UTC
Done.