Integer underflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2, when the configuration setting "Load printer settings with the document" is enabled, allows remote attackers to cause a denial of service (memory corruption and application crash) or possibly execute arbitrary code via crafted PrinterSetup data in an ODF document.
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.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
http://www.openoffice.org/security/cves/CVE-2015-5212.html
http://www.libreoffice.org/about-us/security/advisories/cve-2015-5212/