Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1452554 - (CVE-2017-9047) CVE-2017-9047 libxml2: Buffer overflow in function xmlSnprintfElementContent
CVE-2017-9047 libxml2: Buffer overflow in function xmlSnprintfElementContent
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170515,repor...
: Security
Depends On: 1548944 1452550 1452551
Blocks: 1452558
  Show dependency treegraph
 
Reported: 2017-05-19 04:00 EDT by Andrej Nemec
Modified: 2018-04-24 08:49 EDT (History)
19 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-26 00:10:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrej Nemec 2017-05-19 04:00:09 EDT
A buffer overflow was discovered in libxml2. 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 to crash.

References:

http://seclists.org/oss-sec/2017/q2/258
Comment 1 Andrej Nemec 2017-05-19 04:05:10 EDT
Created libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1452550]
Comment 2 Andrej Nemec 2017-05-19 04:05:21 EDT
Created mingw-libxml2 tracking bugs for this issue:

Affects: fedora-all [bug 1452551]
Comment 4 Doran Moppert 2018-02-25 23:54:12 EST
Statement:

This vulnerability exists in the DTD validation functionality of libxml2.  Applications that do not attempt to validate untrusted documents are not impacted.

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