From 64ed22f0354927bf22bf8aea246ffc74909b3ebc Mon Sep 17 00:00:00 2001 From: Thiruvadi Rajaraman Date: Wed, 30 Aug 2017 13:14:52 +0530 Subject: php: CVE-2017-9227 Source: https://github.com/kkos/oniguruma MR: 74852 Type: Security Fix Disposition: Backport from oniguruma-v6.3.0 ChangeID: 0ce4cdc4e4e4a520237a6adab002637f8fcaae8d Description: fix #58 : access to invalid address by reg->dmin value Author: K.Kosako Signed-off-by: Thiruvadi Rajaraman Reviewed-by: Armin Kuster Signed-off-by: Armin Kuster Signed-off-by: Armin Kuster --- .../php/php-5.6.26/CVE-2017-9227.patch | 24 ++++++++++++++++++++++ meta-oe/recipes-devtools/php/php_5.6.26.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9227.patch diff --git a/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9227.patch b/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9227.patch new file mode 100644 index 0000000000..432bd3b43e --- /dev/null +++ b/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9227.patch @@ -0,0 +1,24 @@ +commit 9690d3ab1f9bcd2db8cbe1fe3ee4a5da606b8814 +Author: K.Kosako +Date: Tue May 23 16:15:35 2017 +0900 + + fix #58 : access to invalid address by reg->dmin value + +Upstream-Status: Backport + +CVE: CVE-2017-9227 +Signed-off-by: Thiruvadi Rajaraman + +Index: php-5.6.26/ext/mbstring/oniguruma/regexec.c +=================================================================== +--- php-5.6.26.orig/ext/mbstring/oniguruma/regexec.c 2016-09-16 02:32:50.000000000 +0530 ++++ php-5.6.26/ext/mbstring/oniguruma/regexec.c 2017-08-30 12:49:07.164967788 +0530 +@@ -3128,6 +3128,8 @@ + } + else { + UChar *q = p + reg->dmin; ++ ++ if (q >= end) return 0; /* fail */ + while (p < q) p += enclen(reg->enc, p); + } + } diff --git a/meta-oe/recipes-devtools/php/php_5.6.26.bb b/meta-oe/recipes-devtools/php/php_5.6.26.bb index a10d2a6bc1..3a383381f7 100644 --- a/meta-oe/recipes-devtools/php/php_5.6.26.bb +++ b/meta-oe/recipes-devtools/php/php_5.6.26.bb @@ -7,6 +7,7 @@ SRC_URI += "file://change-AC_TRY_RUN-to-AC_TRY_LINK.patch \ file://CVE-2016-9934.patch \ file://CVE-2016-9935.patch \ file://CVE-2016-9933.patch \ + file://CVE-2017-9227.patch \ " SRC_URI[md5sum] = "cb424b705cfb715fc04f499f8a8cf52e" SRC_URI[sha256sum] = "d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236" -- cgit 1.2.3-korg