Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 577998 (CVE-2016-3627)

Summary: <dev-libs/libxml2-2.9.4: Stack exhaustion parsing xml in recover mode (CVE-2016-3627)
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: major CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=762100
Whiteboard: A2 [glsa cve]
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2016-03-22 14:42:20 UTC
From ${URL} :


We found a denegation of service parsing a specially crafted xml in libxml2 if recover mode is used. Find attached a xml that crashes during the parsing process:

gdb --quiet --args xmllint --recover no-recover.xml
...
Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0x7ffff7826760 <main_arena>, bytes=64) at malloc.c:3302
(gdb) bt
— Trace 235974
#0 _int_malloc
at malloc.c line 3302
#1 __GI___libc_malloc
at malloc.c line 2891
#2 xmlBufCreateSize
at ../../buf.c line 159
#3 xmlStringGetNodeList__internal_alias
at ../../tree.c line 1483
#4 xmlStringGetNodeList__internal_alias
at ../../tree.c line 1591
#5 xmlStringGetNodeList__internal_alias
at ../../tree.c line 1591
#6 xmlStringGetNodeList__internal_alias
at ../../tree.c line 1591
#7 xmlStringGetNodeList__internal_alias
at ../../tree.c line 1591


@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 2 GLSAMaker/CVETool Bot gentoo-dev 2016-11-19 02:38:42 UTC
CVE-2016-3627 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-3627):
  The xmlStringGetNodeList function in tree.c in libxml2 2.9.3 and earlier,
  when used in recovery mode, allows context-dependent attackers to cause a
  denial of service (infinite recursion, stack consumption, and application
  crash) via a crafted XML document.
Comment 3 GLSAMaker/CVETool Bot gentoo-dev 2017-01-16 21:23:54 UTC
This issue was resolved and addressed in
 GLSA 201701-37 at https://security.gentoo.org/glsa/201701-37
by GLSA coordinator Thomas Deutschmann (whissi).
Comment 4 GLSAMaker/CVETool Bot gentoo-dev 2017-01-16 21:25:53 UTC
This issue was resolved and addressed in
 GLSA 201701-37 at https://security.gentoo.org/glsa/201701-37
by GLSA coordinator Thomas Deutschmann (whissi).