diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2018-04-11 14:56:10 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-13 16:55:26 +0100 |
commit | 6b6ae212837a07aaefd2b675b5b527fbce2a4270 (patch) | |
tree | 40351f923654b5f64c2f0b5b7942aac220dd9f89 /meta/recipes-devtools/patch/patch_2.7.6.bb | |
parent | cdf74e1c67698b2d44a7460ff7d365d6da7b7b96 (diff) | |
download | openembedded-core-contrib-6b6ae212837a07aaefd2b675b5b527fbce2a4270.tar.gz |
patch: fix CVE-2018-1000156
* CVE detail: https://nvd.nist.gov/vuln/detail/CVE-2018-1000156
* upstream tracking: https://savannah.gnu.org/bugs/index.php?53566
* Fix arbitrary command execution in ed-style patches:
- src/pch.c (do_ed_script): Write ed script to a temporary file instead
of piping it to ed: this will cause ed to abort on invalid commands
instead of rejecting them and carrying on.
- tests/ed-style: New test case.
- tests/Makefile.am (TESTS): Add test case.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/patch/patch_2.7.6.bb')
-rw-r--r-- | meta/recipes-devtools/patch/patch_2.7.6.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/patch/patch_2.7.6.bb b/meta/recipes-devtools/patch/patch_2.7.6.bb index 19ddf34981..823486dd0a 100644 --- a/meta/recipes-devtools/patch/patch_2.7.6.bb +++ b/meta/recipes-devtools/patch/patch_2.7.6.bb @@ -3,6 +3,8 @@ LICENSE = "GPLv3" SRC_URI += "file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ file://0002-Fix-segfault-with-mangled-rename-patch.patch \ + file://0003-Allow-input-files-to-be-missing-for-ed-style-patches.patch \ + file://0004-Fix-arbitrary-command-execution-in-ed-style-patches-.patch \ " SRC_URI[md5sum] = "4c68cee989d83c87b00a3860bcd05600" |