[oe-commits] [meta-openembedded] 16/19: php: CVE-2017-9229
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 17 01:52:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
armin_kuster pushed a commit to branch akuster/morty-next
in repository meta-openembedded.
commit 03d6f8c4a08ca1f10a8c31161201960c7850025b
Author: Thiruvadi Rajaraman <trajaraman at mvista.com>
AuthorDate: Tue Sep 19 20:01:19 2017 +0530
php: CVE-2017-9229
Source: https://github.com/kkos/oniguruma
MR: 74856
Type: Security Fix
Disposition: Backport from oniguruma-v6.3
ChangeID: 8560428b9d675202266dde31373ce49757ba05be
Description:
fix #59 : access to invalid address by reg->dmax value
Author: K.Kosako <kosako at sofnec.co.jp>
Signed-off-by: Thiruvadi Rajaraman <trajaraman at mvista.com>
Reviewed-by: Armin Kuster <akuster at mvista.com>
Signed-off-by: Armin Kuster <akuster at mvista.com>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
.../php/php-5.6.26/CVE-2017-9229.patch | 37 ++++++++++++++++++++++
meta-oe/recipes-devtools/php/php_5.6.26.bb | 2 +-
2 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9229.patch b/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9229.patch
new file mode 100644
index 0000000..d9ed8be
--- /dev/null
+++ b/meta-oe/recipes-devtools/php/php-5.6.26/CVE-2017-9229.patch
@@ -0,0 +1,37 @@
+commit b690371bbf97794b4a1d3f295d4fb9a8b05d402d
+Author: K.Kosako <kosako at sofnec.co.jp>
+Date: Wed May 24 10:27:04 2017 +0900
+
+ fix #59 : access to invalid address by reg->dmax value
+
+Upstream-Status: Backport
+
+CVE: CVE-2017-9229
+Signed-off-by: Thiruvadi Rajaraman <trajaraman at mvista.com>
+
+
+Index: php-5.6.26/ext/mbstring/oniguruma/regexec.c
+===================================================================
+--- php-5.6.26.orig/ext/mbstring/oniguruma/regexec.c 2017-09-19 19:45:51.001205292 +0530
++++ php-5.6.26/ext/mbstring/oniguruma/regexec.c 2017-09-19 19:51:46.193527423 +0530
+@@ -3209,6 +3209,12 @@
+ }
+ else {
+ if (reg->dmax != ONIG_INFINITE_DISTANCE) {
++ if (p - str < reg->dmax) {
++ *low = (UChar* )str;
++ if (low_prev)
++ *low_prev = onigenc_get_prev_char_head(reg->enc, str, *low);
++ }
++ else {
+ *low = p - reg->dmax;
+ if (*low > s) {
+ *low = onigenc_get_right_adjust_char_head_with_prev(reg->enc, s,
+@@ -3223,6 +3229,7 @@
+ (pprev ? pprev : str), *low);
+ }
+ }
++ }
+ }
+ /* no needs to adjust *high, *high is used as range check only */
+ *high = p - reg->dmin;
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 7cf066b..9866e2e 100644
--- a/meta-oe/recipes-devtools/php/php_5.6.26.bb
+++ b/meta-oe/recipes-devtools/php/php_5.6.26.bb
@@ -10,7 +10,7 @@ SRC_URI += "file://change-AC_TRY_RUN-to-AC_TRY_LINK.patch \
file://CVE-2017-9227.patch \
file://CVE-2017-9228.patch \
file://CVE-2017-9226.patch \
-
+ file://CVE-2017-9229.patch \
"
SRC_URI[md5sum] = "cb424b705cfb715fc04f499f8a8cf52e"
SRC_URI[sha256sum] = "d47aab8083a4284b905777e1b45dd7735adc53be827b29f896684750ac8b6236"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list