GLSA-201612-55 : libjpeg-turbo: User-assisted execution of arbitrary code

medium Nessus Plugin ID 96230

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201612-55 (libjpeg-turbo: User-assisted execution of arbitrary code)

The accelerated Huffman decoder was previously invoked if there were 128 bytes in the input buffer. However, it is possible to construct a JPEG image with Huffman blocks > 430 bytes in length. This release simply increases the minimum buffer size for the accelerated Huffman decoder to 512 bytes, which should accommodate any possible input.
Impact :

A remote attacker could coerce the victim to run a specially crafted image file resulting in the execution of arbitrary code.
Workaround :

There is no known workaround at this time.

Solution

All libjpeg-turbo users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-libs/libjpeg-turbo-1.5.0'

See Also

https://wiki.mozilla.org/images/7/77/Libjpeg-turbo-report.pdf

http://www.nessus.org/u?66e8f916

https://security.gentoo.org/glsa/201612-55

Plugin Details

Severity: Medium

ID: 96230

File Name: gentoo_GLSA-201612-55.nasl

Version: 3.2

Type: local

Published: 1/3/2017

Updated: 1/11/2021

Supported Sensors: Nessus

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:libjpeg-turbo, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 12/31/2016

Reference Information

GLSA: 201612-55