Debian DSA-3889-1 : libffi - security update (Stack Clash)

high Nessus Plugin ID 100880

Synopsis

The remote Debian host is missing a security-related update.

Description

libffi, a library used to call code written in one language from code written in a different language, was enforcing an executable stack on the i386 architecture. While this might not be considered a vulnerability by itself, this could be leveraged when exploiting other vulnerabilities, like for example the 'stack clash' class of vulnerabilities discovered by Qualys Research Labs. For the full details, please refer to their advisory published at:
https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt

Solution

Upgrade the libffi packages.

For the oldstable distribution (jessie), this problem has been fixed in version 3.1-2+deb8u1.

For the stable distribution (stretch), this problem has been fixed in version 3.2.1-4.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751907

https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt

https://packages.debian.org/source/jessie/libffi

https://packages.debian.org/source/stretch/libffi

https://www.debian.org/security/2017/dsa-3889

Plugin Details

Severity: High

ID: 100880

File Name: debian_DSA-3889.nasl

Version: 3.12

Type: local

Agent: unix

Published: 6/20/2017

Updated: 1/4/2021

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.9

Temporal Score: 5.1

Vector: CVSS2#AV:L/AC:M/Au:N/C:C/I:C/A:C

CVSS v3

Risk Factor: High

Base Score: 7

Temporal Score: 6.1

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libffi, cpe:/o:debian:debian_linux:8.0, cpe:/o:debian:debian_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 6/19/2017

Reference Information

CVE: CVE-2017-1000376

DSA: 3889