Stack-based buffer overflow in libsoup - CVE-2017-2885

 

Stack-based buffer overflow in libsoup - CVE-2017-2885

Published: August 15, 2017


Vulnerability identifier: #VU7866
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-2885
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists in the in the libsoup library for GNOME due to improper bounds checking when processing a crafted HTTP request containing chunk encoded data. A remote attacker can send a specially crafted HTTP request, trigger a stack-based buffer overflow condition in the soup_body_input_stream_read_chunked function in the libsoup/soup-body-input-stream.c code and execute arbitrary code with privileges of the current user.

Successful exploitation of the vulnerability may result in system compromise.

Affected software

libsoup
Gentoo Linux
Arch Linux
Debian Linux
Red Hat Enterprise Linux Workstation
Fedora
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
SUSE Linux
Slackware Linux
Ubuntu
Opensuse
libsoup (Alpine package)
mingw-libsoup
libsoup

How to mitigate CVE-2017-2885

The vulnerability is addressed in the following versions: 2.59.90.1, 2.58.2, and 2.56.1.

libsoup (Alpine package) - update to 2.52.2-r1
mingw-libsoup - addressed in versions 2.56.1-1.el7, 2.56.1-1.fc25, 2.58.2-1.fc26
libsoup - addressed in versions 2.56.1-1.fc25, 2.58.2-1.fc26

External References

Related Security Bulletins