Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577928 (CVE-2012-6702, CVE-2016-5300) - <dev-libs/expat-2.1.1-r2: Using XML_Parse before rand() results in non-random output (CVE-{2012-6702,2016-5300})
Summary: <dev-libs/expat-2.1.1-r2: Using XML_Parse before rand() results in non-random...
Alias: CVE-2012-6702, CVE-2016-5300
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B3 [glsa cve]
Depends on:
Reported: 2016-03-21 13:36 UTC by Agostino Sarubbo
Modified: 2017-01-11 12:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2016-03-21 13:36:20 UTC
From ${URL} :

It was found that when calling XML_Parse ahead of rand(), it causes the pseudo random generator to 
generate non-random predictable numbers.

Product bug:

@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Sebastian Pipping gentoo-dev 2016-06-13 14:35:45 UTC
In Git now:

Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2016-06-14 09:54:38 UTC
@arches, please stabilize:

Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2016-06-15 07:31:17 UTC
Stable on alpha.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-06-15 15:38:19 UTC
Stable for PPC64.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-06-21 11:33:19 UTC
Stable for HPPA.
Comment 6 Markus Meier gentoo-dev 2016-06-21 18:30:23 UTC
arm stable
Comment 7 GLSAMaker/CVETool Bot gentoo-dev 2016-06-22 03:30:34 UTC
CVE-2016-5300 (
  The XML parser in Expat does not use sufficient entropy for hash
  initialization, which allows context-dependent attackers to cause a denial
  of service (CPU consumption) via crafted identifiers in an XML document. 
  NOTE: this vulnerability exists because of an incomplete fix for
Comment 8 Agostino Sarubbo gentoo-dev 2016-06-27 08:24:34 UTC
amd64 stable
Comment 9 Agostino Sarubbo gentoo-dev 2016-06-27 08:49:15 UTC
x86 stable.

Maintainer(s), please cleanup.
Comment 10 Aaron Bauman (RETIRED) gentoo-dev 2016-06-27 11:30:20 UTC
Added to existing GLSA.
Comment 11 GLSAMaker/CVETool Bot gentoo-dev 2017-01-11 12:13:55 UTC
This issue was resolved and addressed in
 GLSA 201701-21 at
by GLSA coordinator Aaron Bauman (b-man).