]> code.ossystems Code Review - openembedded-core.git/commit
ruby: CVE-2017-14064
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 15 Sep 2017 11:36:58 +0000 (14:36 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2017 10:07:23 +0000 (11:07 +0100)
commit17dbfd967019f9b50a9f6aa3f48cd3658fcccc70
tree55e1691cedcba06a5145a01677c10787bb3a11a5
parentaf7c8f8a9bfc3396dc729f3fc54c38d19f2aa3fc
ruby: CVE-2017-14064

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose
arbitrary memory during a JSON.generate call. The issues lies in using
strdup in ext/json/ext/generator/generator.c, which will stop after
encountering a '\0' byte, returning a pointer to a string of length zero,
which is not the length stored in space_len.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2017-14064

Upstream patch:
https://github.com/flori/json/commit/8f782fd8e181d9cfe9387ded43a5ca9692266b85

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/ruby/ruby/ruby-CVE-2017-14064.patch [new file with mode: 0644]
meta/recipes-devtools/ruby/ruby_2.4.1.bb