An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "arg_types" allocation is made based on args array length. Specially constructed object passed as element of args array can increase this array size after mentioned allocation and cause heap overflow.
{
"source": "CPE_FIELD",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.2.2"
},
{
"last_affected": "2.3.0"
}
],
"cpe": [
"cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*",
"cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*"
]
}