pcre: add upstream security fixes
PATCH 1/1 pcre: add upstream security fixes
Take Debian adapted patches of upstream.
Fixes:
CVE-2017-6004: crafted regular expression may cause denial of service
CVE-2017-7186: invalid Unicode property lookup may cause denial of service
--- package/pcre/0003-CVE-2017-6004.patch | 21 ++++++++++++ package/pcre/0004-CVE-2017-7186.patch | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 package/pcre/0003-CVE-2017-6004.patch create mode 100644 package/pcre/0004-CVE-2017-7186.patch
package/pcre/0003-CVE-2017-6004.patch new file +21 -0
@@ -0,0 +1,21 @@ +Description: CVE-2017-6004: crafted regular expression may cause denial of service +Origin: upstream, https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch +Bug: https://bugs.exim.org/show_bug.cgi?id=2035 +Bug-Debian: https://bugs.debian.org/855405 +Forwarded: not-needed +Author: Salvatore Bonaccorso <[email protected]> +Last-Update: 2017-02-17 + +Signed-off-by: Baruch Siach <[email protected]> + +--- a/pcre_jit_compile.c ++++ b/pcre_jit_compile.c +@@ -8111,7 +8111,7 @@ if (opcode == OP_COND || opcode == OP_SC + + if (*matchingpath == OP_FAIL) + stacksize = 0; +- if (*matchingpath == OP_RREF) ++ else if (*matchingpath == OP_RREF) + { + stacksize = GET2(matchingpath, 1); + if (common->currententry == NULL)
package/pcre/0004-CVE-2017-7186.patch new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 1/1 pcre: add upstream security fixes
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Take Debian adapted patches of upstream.
Fixes:CVE-2017-6004: crafted regular expression may cause denial of service
CVE-2017-7186: invalid Unicode property lookup may cause denial of service
Signed-off-by Baruch Siach <[email protected]>
Committed, thanks.
There are other pending security issues, E.G. CVE-2017-7244:
https://blogs.gentoo.org/ago/2017/03/20/libpcre-invalid-memory-read-in-_pcre32_xclass-pcre_xclass-c/
But I can take care of that.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 pcre: add upstream security fixes
In reply to Baruch SiachQuoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Take Debian adapted patches of upstream.
Fixes:CVE-2017-6004: crafted regular expression may cause denial of service
CVE-2017-7186: invalid Unicode property lookup may cause denial of service
Signed-off-by Baruch Siach <[email protected]>
Committed to 2017.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard