Upstream information

CVE-2017-9047 at MITRE

Description

A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. The variable len is assigned strlen(buf). If the content->type is XML_ELEMENT_CONTENT_ELEMENT, then (i) the content->prefix is appended to buf (if it actually fits) whereupon (ii) content->name is written to the buffer. However, the check for whether the content->name actually fits also uses 'len' rather than the updated buffer length strlen(buf). This allows us to write about "size" many bytes beyond the allocated memory. This vulnerability causes programs that use libxml2, such as PHP, to crash.

SUSE information

Overall state of this security issue: Running

This issue is currently rated as having moderate severity.

CVSS v2 Scores
  National Vulnerability Database SUSE
Base Score 5 5
Vector AV:N/AC:L/Au:N/C:N/I:N/A:P AV:N/AC:L/Au:N/C:N/I:N/A:P
Access Vector Network Network
Access Complexity Low Low
Authentication None None
Confidentiality Impact None None
Integrity Impact None None
Availability Impact Partial Partial
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 7.5 5.3
Vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Access Vector Network Network
Access Complexity Low Low
Privileges Required None None
User Interaction None None
Scope Unchanged Unchanged
Confidentiality Impact None None
Integrity Impact None None
Availability Impact High Low
SUSE Bugzilla entries: 1039063 [RESOLVED / FIXED], 1039066 [RESOLVED / FIXED], 1039657 [RESOLVED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
Openstack Cloud Magnum Orchestration 7
  • libxml2 >= 2.9.4-39.2
  • libxml2-2 >= 2.9.4-39.2
Patchnames:
SUSE-OpenStack-Cloud-Magnum-Orchestration-7-2017-891
SUSE-OpenStack-Cloud-Magnum-Orchestration-7-2017-939
SUSE Linux Enterprise Desktop 12 SP2
  • libxml2 >= 2.9.4-39.2
  • libxml2-2 >= 2.9.4-39.2
  • libxml2-2-32bit >= 2.9.4-39.2
  • libxml2-tools >= 2.9.4-39.2
  • python-libxml2 >= 2.9.4-39.2
Patchnames:
SUSE-SLE-DESKTOP-12-SP2-2017-891
SUSE-SLE-DESKTOP-12-SP2-2017-939
SUSE Linux Enterprise Desktop 12 SP3
  • libxml2-2 >= 2.9.4-45.1
  • libxml2-2-32bit >= 2.9.4-45.1
  • libxml2-tools >= 2.9.4-45.1
Patchnames:
SUSE Linux Enterprise Desktop 12 SP3 GA libxml2-2
SUSE Linux Enterprise Module for Containers 12
  • sles12-docker-image >= 1.1.4-20171002
  • sles12sp1-docker-image >= 1.0.7-20171002
  • sles12sp2-docker-image >= 1.0.2-20171006
Patchnames:
SUSE-SLE-Module-Containers-12-2017-1672
SUSE-SLE-Module-Containers-12-2017-1673
SUSE-SLE-Module-Containers-12-2017-1674
SUSE Linux Enterprise Point of Sale 11 SP3
  • libxml2 >= 2.7.6-0.69.1
  • libxml2-doc >= 2.7.6-0.69.1
  • libxml2-python >= 2.7.6-0.69.3
Patchnames:
sleposp3-libxml2-13143
SUSE Linux Enterprise Server 11 SP3-LTSS
  • libxml2 >= 2.7.6-0.69.1
  • libxml2-32bit >= 2.7.6-0.69.1
  • libxml2-doc >= 2.7.6-0.69.1
  • libxml2-python >= 2.7.6-0.69.3
Patchnames:
slessp3-libxml2-13143
SUSE Linux Enterprise Server 11 SP4
  • libxml2 >= 2.7.6-0.69.1
  • libxml2-32bit >= 2.7.6-0.69.1
  • libxml2-doc >= 2.7.6-0.69.1
  • libxml2-python >= 2.7.6-0.69.3
  • libxml2-x86 >= 2.7.6-0.69.1
Patchnames:
slessp4-libxml2-13143
SUSE Linux Enterprise Server 12 SP1-LTSS
  • libxml2 >= 2.9.1-26.15.1
  • libxml2-2 >= 2.9.1-26.15.1
  • libxml2-2-32bit >= 2.9.1-26.15.1
  • libxml2-doc >= 2.9.1-26.15.1
  • libxml2-tools >= 2.9.1-26.15.1
  • python-libxml2 >= 2.9.1-26.15.1
Patchnames:
SUSE-SLE-SERVER-12-SP1-2017-975
SUSE Linux Enterprise Server 12 SP2
  • libxml2 >= 2.9.4-39.2
  • libxml2-2 >= 2.9.4-39.2
  • libxml2-2-32bit >= 2.9.4-39.2
  • libxml2-doc >= 2.9.4-39.2
  • libxml2-tools >= 2.9.4-39.2
  • python-libxml2 >= 2.9.4-39.2
Patchnames:
SUSE-SLE-SERVER-12-SP2-2017-891
SUSE-SLE-SERVER-12-SP2-2017-939
SUSE Linux Enterprise Server 12 SP3
  • libxml2-2 >= 2.9.4-45.1
  • libxml2-2-32bit >= 2.9.4-45.1
  • libxml2-doc >= 2.9.4-45.1
  • libxml2-tools >= 2.9.4-45.1
Patchnames:
SUSE Linux Enterprise Server 12 SP3 GA libxml2-2
SUSE Linux Enterprise Server 12-LTSS
  • libxml2 >= 2.9.1-26.15.1
  • libxml2-2 >= 2.9.1-26.15.1
  • libxml2-2-32bit >= 2.9.1-26.15.1
  • libxml2-doc >= 2.9.1-26.15.1
  • libxml2-tools >= 2.9.1-26.15.1
  • python-libxml2 >= 2.9.1-26.15.1
Patchnames:
SUSE-SLE-SERVER-12-2017-975
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2
  • libxml2 >= 2.9.4-39.2
  • libxml2-2 >= 2.9.4-39.2
  • libxml2-doc >= 2.9.4-39.2
  • libxml2-tools >= 2.9.4-39.2
  • python-libxml2 >= 2.9.4-39.2
Patchnames:
SUSE-SLE-RPI-12-SP2-2017-891
SUSE-SLE-RPI-12-SP2-2017-939
SUSE Linux Enterprise Software Development Kit 11 SP4
  • libxml2 >= 2.7.6-0.69.1
  • libxml2-devel >= 2.7.6-0.69.1
  • libxml2-devel-32bit >= 2.7.6-0.69.1
Patchnames:
sdksp4-libxml2-13143
SUSE Linux Enterprise Software Development Kit 12 SP2
  • libxml2 >= 2.9.4-39.2
  • libxml2-devel >= 2.9.4-39.2
Patchnames:
SUSE-SLE-SDK-12-SP2-2017-891
SUSE-SLE-SDK-12-SP2-2017-939
SUSE Linux Enterprise Software Development Kit 12 SP3
  • libxml2-devel >= 2.9.4-45.1
Patchnames:
SUSE Linux Enterprise Software Development Kit 12 SP3 GA libxml2-devel
SUSE Linux Enterprise for SAP 12
  • libxml2 >= 2.9.1-26.15.1
  • libxml2-2 >= 2.9.1-26.15.1
  • libxml2-2-32bit >= 2.9.1-26.15.1
  • libxml2-doc >= 2.9.1-26.15.1
  • libxml2-tools >= 2.9.1-26.15.1
  • python-libxml2 >= 2.9.1-26.15.1
Patchnames:
SUSE-SLE-SAP-12-2017-975
SUSE Linux Enterprise for SAP 12 SP1
  • libxml2 >= 2.9.1-26.15.1
  • libxml2-2 >= 2.9.1-26.15.1
  • libxml2-2-32bit >= 2.9.1-26.15.1
  • libxml2-doc >= 2.9.1-26.15.1
  • libxml2-tools >= 2.9.1-26.15.1
  • python-libxml2 >= 2.9.1-26.15.1
Patchnames:
SUSE-SLE-SAP-12-SP1-2017-975
openSUSE Leap 42.2
  • libxml2 >= 2.9.4-5.6.1
  • libxml2-2 >= 2.9.4-5.6.1
  • libxml2-2-32bit >= 2.9.4-5.6.1
  • libxml2-2-debuginfo >= 2.9.4-5.6.1
  • libxml2-2-debuginfo-32bit >= 2.9.4-5.6.1
  • libxml2-debugsource >= 2.9.4-5.6.1
  • libxml2-devel >= 2.9.4-5.6.1
  • libxml2-devel-32bit >= 2.9.4-5.6.1
  • libxml2-doc >= 2.9.4-5.6.1
  • libxml2-tools >= 2.9.4-5.6.1
  • libxml2-tools-debuginfo >= 2.9.4-5.6.1
  • python-libxml2 >= 2.9.4-5.6.1
  • python-libxml2-debuginfo >= 2.9.4-5.6.1
  • python-libxml2-debugsource >= 2.9.4-5.6.1
Patchnames:
openSUSE-2017-663
openSUSE-2017-711
openSUSE Leap 42.3
  • libxml2-2 >= 2.9.4-10.1
  • libxml2-2-32bit >= 2.9.4-10.1
  • libxml2-devel >= 2.9.4-10.1
  • libxml2-tools >= 2.9.4-10.1
Patchnames:
openSUSE Leap 42.3 GA libxml2-2


Status of this issue by product and package

Product(s) Source package State
OpenStack Cloud Magnum Orchestration 7.0 libxml2 Released
SUSE Linux Enterprise Desktop 12 SP1 libxml2 In progress
SUSE Linux Enterprise Desktop 12 SP2 libxml2 Released
SUSE Linux Enterprise SDK 11 SP4 libxml2 Released
SUSE Linux Enterprise SDK 12 SP1 libxml2 In progress
SUSE Linux Enterprise SDK 12 SP2 libxml2 Released
SUSE Linux Enterprise Server 11 SP3 LTSS libxml2 Released
SUSE Linux Enterprise Server 11 SP4 libxml2 Released
SUSE Linux Enterprise Server 12 GA libxml2 Released
SUSE Linux Enterprise Server 12 SP1 libxml2 Released
SUSE Linux Enterprise Server 12 SP2 libxml2 Released
SUSE Linux Enterprise Server 12 SP2 for Raspberry Pi libxml2 Released