漏洞类别:Amazon Linux
漏洞等级:
漏洞信息
Out-of-bounds heap write in bitset_set_range():
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write occurs in bitset_set_range() during regular expression compilation due to an uninitialized variable from an incorrect state transition. An incorrect state transition in parse_char_class() could create an execution path that leaves a critical local variable uninitialized until it's used as an index, resulting in an out-of-bounds write memory corruption. (CVE-2017-9228 )
Buffer over-read from unitialized data in gdImageCreateFromGifCtx function
The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information. (CVE-2017-7890 )
Invalid pointer dereference in left_adjust_char_head():
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A SIGSEGV occurs in left_adjust_char_head() during regular expression compilation. Invalid handling of reg->dmax in forward_search_range() could result in an invalid pointer dereference, normally as an immediate denial-of-service condition. (CVE-2017-9229 )
Heap buffer overflow in next_state_val() during regular expression compilation:
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A heap out-of-bounds write or read occurs in next_state_val() during regular expression compilation. Octal numbers larger than 0xff are not handled correctly in fetch_token() and fetch_token_in_cc(). A malformed regular expression containing an octal number in the form of 0 would produce an invalid code point value larger than 0xff in next_state_val(), resulting in an out-of-bounds write memory corruption.(CVE-2017-9226 )
Out-of-bounds stack read in mbc_enc_len() during regular expression searching:
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7.1.5. A stack out-of-bounds read occurs in mbc_enc_len() during regular expression searching. Invalid handling of reg->dmin in forward_search_range() could result in an invalid pointer dereference, as an out-of-bounds read from a stack buffer. (CVE-2017-9227 )
QID Detection Logic:
This authenticated QID verifies if the version of the following files is lesser than 7.0.21-1.23.amzn1: php70-mysqlnd, php70-xml, php70-cli, php70-pspell, php70-fpm, php70-embedded, php70-intl, php70-recode, php70-common, php70-pgsql, php70-odbc, php70-mbstring, php70-dbg, php70-pdo, php70-devel, php70-enchant, php70-snmp, php70-process, php70-debuginfo, php70-imap, php70-zip, php70-ldap, php70-json, php70-xmlrpc, php70-tidy, php70-opcache, php70-bcmath, php70-dba, php70-soap, php70-mcrypt, php70, php70-gd, php70-pdo-dblib, php70-gmp
漏洞危害
Allows unauthorized disclosure of information; allows unauthorized modification; allows disruption of service.
解决方案
Please refer to Amazon advisory ALAS-2017-867 for affected packages and patching details, or update with your package manager.
Patch:
Following are links for downloading patches to fix the vulnerabilities:
ALAS-2017-867: Amazon Linux (php70 (7.0.21-1.23.amzn1) on i686)
ALAS-2017-867: Amazon Linux (php70 (7.0.21-1.23.amzn1) on x86_64)
ALAS-2017-867: Amazon Linux (php70 (7.0.21-1.23.amzn1) on src)
0daybank
文章评论