Bug 1771292 (CVE-2019-17266)

Summary: CVE-2019-17266 libsoup: heap-based over-read in soup_ntlm_parse_challenge() in soup-auth-ntlm.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: caillon+fedoraproject, danw, erik-fedora, fidencio, gnome-sig, john.j5live, klember, marcandre.lureau, mbarnes, mclasen, mcrha, rh-spice-bugs, rhughes, rjones, rschiron, rstrode, sandmann, tpopela
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libsoup 2.66.4, libsoup 2.68.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-10 01:24:13 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: 1771294, 1771295, 1771296    
Bug Blocks: 1771293    

Description Dhananjay Arunesh 2019-11-12 06:43:52 UTC
A vulnerability was found in libsoup through 2.68.1 has a heap-based buffer over-read because
soup_ntlm_parse_challenge() in soup-auth-ntlm.c does not properly check an NTLM
message's length before proceeding with a memcpy.

Reference:
https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1705054.html
https://gitlab.gnome.org/GNOME/libsoup/commit/f8a54ac85eec2008c85393f331cdd251af8266ad
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941912

Comment 1 Dhananjay Arunesh 2019-11-12 06:44:47 UTC
Created libsoup tracking bugs for this issue:

Affects: fedora-all [bug 1771294]


Created mingw-libsoup tracking bugs for this issue:

Affects: epel-7 [bug 1771296]
Affects: fedora-all [bug 1771295]

Comment 2 Riccardo Schirone 2019-11-22 16:45:33 UTC
According to upstream, this bug affects libsoup from 2.65.1 until 2.68.1 and previous versions are unaffected.

First vulnerable commit is probably:
https://gitlab.gnome.org/GNOME/libsoup/commit/0e7b2c1466434a992b6a387497432e1c97b6125c

Which was released for the first time in libsoup 2.65.1.

Comment 3 Product Security DevOps Team 2019-12-10 01:24:13 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-2019-17266