Off-by-one error in the encodes function in pack.c in Ruby 1.9.3 and earlier, and 2.x through 2.1.2, when using certain format string specifiers, allows context-dependent attackers to cause a denial of service (segmentation fault) via vectors that trigger a stack-based buffer overflow.
https://exchange.xforce.ibmcloud.com/vulnerabilities/94706
https://bugzilla.redhat.com/show_bug.cgi?id=1118158
https://bugs.ruby-lang.org/issues/10019
http://www.ubuntu.com/usn/USN-2397-1
http://www.securityfocus.com/bid/68474
http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
http://www.openwall.com/lists/oss-security/2014/07/09/13
http://www.debian.org/security/2015/dsa-3157
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
http://rhn.redhat.com/errata/RHSA-2014-1914.html
http://rhn.redhat.com/errata/RHSA-2014-1913.html