Bug 19190 - nettle, nettle2.7 new security issue CVE-2016-6489
Summary: nettle, nettle2.7 new security issue CVE-2016-6489
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL: http://lwn.net/Vulnerabilities/697140/
Whiteboard: MGA5-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2016-08-12 19:47 CEST by David Walser
Modified: 2016-08-31 17:33 CEST (History)
3 users (show)

See Also:
Source RPM: nettle2.7-2.7.1-6.1.mga5.src.rpm, nettle-3.0-3.1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2016-08-12 19:47:08 CEST
Debian-LTS has issued an advisory on August 11:
http://lwn.net/Alerts/697112/

I had already fixed this in Cauldron, but didn't realize older versions were also affected.

Debian's patch for 2.4 applies cleanly to 2.7.  I've checked it into Mageia 5 SVN.  The patch(es) for 3.2 needs to be rediffed for 3.0 in Mageia 5.
Comment 1 David Walser 2016-08-12 20:33:35 CEST
Patched packages uploaded for Mageia 5.

More info about this issue in this thread:
http://openwall.com/lists/oss-security/2016/07/29/2

Testing hints in Bug 17669.

Advisory:
========================

Updated nettle2.7 and nettle packages fix security vulnerability:

The cryptographic library nettle had a potential information leak problem
reported. RSA code is vulnerable to cache sharing related attacks
(CVE-2016-6489).

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6489
http://lwn.net/Alerts/697112/
========================

Updated packages in core/updates_testing:
========================
nettle2.7-2.7.1-6.2.mga5
libnettle4-2.7.1-6.2.mga5
libhogweed2-2.7.1-6.2.mga5
libnettle2.7-devel-2.7.1-6.2.mga5
nettle-3.0-3.2.mga5
libnettle5-3.0-3.2.mga5
libhogweed3-3.0-3.2.mga5
libnettle-devel-3.0-3.2.mga5

from SRPMS:
nettle2.7-2.7.1-6.2.mga5.src.rpm
nettle-3.0-3.2.mga5.src.rpm

Assignee: bugsquad => qa-bugs

Comment 2 Len Lawrence 2016-08-24 21:05:31 CEST
Mate on x86_64

Made a quick inventory check before the update because these packages had been tested on this machine before.

After the updates repeated some of the steps in bug 17669 to exercise the libraries.

$ nettle-hash -a md5 nettles
nettles: 61cd448d4a87840d 0a1ca521bf58abe0 md5
$ md5sum nettles
61cd448d4a87840d0a1ca521bf58abe0  nettles
$ nettle-hash -a sha1 nettles
nettles: fef2703dc089a852 fbc7d2b9bc31d64d 6ffd6ccd sha1
$ sha1sum nettles
fef2703dc089a852fbc7d2b9bc31d64d6ffd6ccd  nettles

nettles was the original bug report, ascii text.

Used nettle-pbkdf2 with the same data as before and returned the same results.

nettle-lfib-stream returned a continuous stream of binary data as before.

And again, lacking knowledge of "s-expression" (sexp) format and PKCS #1, I left the
two conv utilities alone.
-------------------------------------------------------------------------------
nettle2.7 could not be installed:
# urpmi nettle2.7
    http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/5/x86_64/media/core/updates_testing/nettle2.7-2.7.1-6.2.mga5.x86_64.rpm
installing nettle2.7-2.7.1-6.2.mga5.x86_64.rpm from /var/cache/urpmi/rpms      
Preparing...                     #############################################
Installation failed:	file /usr/bin/nettle-hash from install of nettle2.7-1:2.7.1-6.2.mga5.x86_64 conflicts with file from package nettle-1:3.0-3.2.mga5.x86_64
	file /usr/bin/nettle-lfib-stream from install of nettle2.7-1:2.7.1-6.2.mga5.x86_64 conflicts with file from package nettle-1:3.0-3.2.mga5.x86_64
	file /usr/bin/pkcs1-conv from install of nettle2.7-1:2.7.1-6.2.mga5.x86_64 conflicts with file from package nettle-1:3.0-3.2.mga5.x86_64
	file /usr/bin/sexp-conv from install of nettle2.7-1:2.7.1-6.2.mga5.x86_64 conflicts with file from package nettle-1:3.0-3.2.mga5.x86_64
	file /usr/share/info/nettle.info.xz from install of nettle2.7-1:2.7.1-6.2.mga5.x86_64 conflicts with file from package nettle-1:3.0-3.2.mga5.x86_64

This looks a bit like the problem when it was last tested, viz. Claire's report bug 17726.

CC: (none) => tarazed25

Comment 3 David Walser 2016-08-24 21:25:53 CEST
They're not meant to be co-installed.  Uninstall one before installing the other.
Comment 4 Len Lawrence 2016-08-25 08:32:27 CEST
Thanks David.  You probably said that before.
Comment 5 Len Lawrence 2016-08-26 00:04:55 CEST
Installed nettle2.7 after removing nettle3 packages.  nettle-hash and nettle-lfib-stream worked as before.  No nettle-pbkdf2 package.  Looks OK for 64-bits then.

Whiteboard: (none) => MGA5-64-OK

Dave Hodgins 2016-08-26 01:02:23 CEST

Keywords: (none) => validated_update
Whiteboard: MGA5-64-OK => MGA5-64-OK advisory
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 6 Mageia Robot 2016-08-31 17:33:56 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGASA-2016-0290.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.