Integer overflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2 allows remote attackers to cause a denial of service (memory corruption and application crash) or possibly execute arbitrary code via a long DOC file, which triggers a buffer overflow.
https://security.gentoo.org/glsa/201611-03
https://security.gentoo.org/glsa/201603-05
http://www.ubuntu.com/usn/USN-2793-1
http://www.securitytracker.com/id/1034091
http://www.securitytracker.com/id/1034085
http://www.securityfocus.com/bid/77486
http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
http://www.openoffice.org/security/cves/CVE-2015-5213.html
http://www.libreoffice.org/about-us/security/advisories/cve-2015-5213/