Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597112 (CVE-2016-4658) - <dev-libs/libxml2-2.9.4-r1: Use after free via namespace node in XPointer ranges (CVE-2016-4658)
Summary: <dev-libs/libxml2-2.9.4-r1: Use after free via namespace node in XPointer ran...
Alias: CVE-2016-4658
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Security
Whiteboard: A2 [glsa cve blocked]
Depends on: 597116
  Show dependency tree
Reported: 2016-10-14 14:03 UTC by Agostino Sarubbo
Modified: 2017-01-16 21:26 UTC (History)
2 users (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-10-14 14:03:27 UTC
From ${URL} :

Possible use after free vulnerability via namespace nodes in XPointer ranges was found.

Upstream patch:

@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 GLSAMaker/CVETool Bot gentoo-dev 2016-11-19 00:55:35 UTC
CVE-2016-4658 (
  libxml2 in Apple iOS before 10, OS X before 10.12, tvOS before 10, and
  watchOS before 3 allows remote attackers to execute arbitrary code or cause
  a denial of service (memory corruption) via a crafted XML document.
Comment 2 Aaron Bauman Gentoo Infrastructure gentoo-dev Security 2016-11-19 01:01:21 UTC
Patch not present in 2.9.4.  Will require addition in tree or await upstream inclusion.
Comment 3 Teika kazura 2016-12-24 07:17:58 UTC
You may already know it, but Debian released a fix for CVE-2016-4658 ( and CVE-2016-5131 ( See also

This release is Debian's own one, though the patches are in the upstream repo. Upstream has not fixed CVE-2016-9318 which affects libxml2-2.9.4 and earliear.

BTW the last CVE item does not seem to be reported to Gentoo.

(I made an almost identical comment at

Thanks Gentoo devs. Best regards.
Comment 4 GLSAMaker/CVETool Bot gentoo-dev 2017-01-16 21:26:31 UTC
This issue was resolved and addressed in
 GLSA 201701-37 at
by GLSA coordinator Thomas Deutschmann (whissi).