libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. At the end of the routine, the function may strcat two more characters without checking whether the current strlen(buf) + 2 < size. This vulnerability causes programs that use libxml2, such as PHP, to crash.
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "libxml2-dev": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-utils-dbgsym": "2.9.1+dfsg1-3ubuntu4.10", "python-libxml2-dbgsym": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-utils": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-doc": "2.9.1+dfsg1-3ubuntu4.10", "python-libxml2": "2.9.1+dfsg1-3ubuntu4.10", "libxml2": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-udeb-dbgsym": "2.9.1+dfsg1-3ubuntu4.10", "python-libxml2-dbg": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-dbgsym": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-utils-dbg": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-dev-dbgsym": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-dbg": "2.9.1+dfsg1-3ubuntu4.10", "libxml2-udeb": "2.9.1+dfsg1-3ubuntu4.10" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "libxml2": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-udeb-dbgsym": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-dev": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-utils-dbgsym": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-dbg": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-utils": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-doc": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-dev-dbgsym": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-dbgsym": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-udeb": "2.9.3+dfsg1-1ubuntu0.3", "libxml2-utils-dbg": "2.9.3+dfsg1-1ubuntu0.3", "python-libxml2": "2.9.3+dfsg1-1ubuntu0.3", "python-libxml2-dbg": "2.9.3+dfsg1-1ubuntu0.3" } ] }