package/dropbear: backport security fix for CVE-2018-20685
PATCH 1/1 package/dropbear: backport security fix for CVE-2018-20685
From: Thomas De Schampheleire <[email protected]>
The update to 2020.79 contains several other changes that may not be appropriate for the LTS branch, hence just backport the single fix.
Signed-off-by Thomas De Schampheleire <[email protected]>
--- ...-scp-Port-OpenSSH-CVE-2018-20685-fix.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/dropbear/0001-scp-Port-OpenSSH-CVE-2018-20685-fix.patch
package/dropbear/0001-scp-Port-OpenSSH-CVE-2018-20685-fix.patch new file +24 -0
@@ -0,0 +1,24 @@ +# HG changeset patch +# User Haelwenn Monnier <[email protected]> +# Date 1590411269 -7200 +# Mon May 25 14:54:29 2020 +0200 +# Node ID 087c2804147074c95b6a3f35137b4f4b726b1452 +# Parent 009d52ae26d35f3381c801e02318fa9be34be93c +scp.c: Port OpenSSH CVE-2018-20685 fix (#80) + +[backport from 2020.79 to 2019.78 for Buildroot 2020.02.x] +Signed-off-by: Thomas De Schampheleire <[email protected]> + +diff --git a/scp.c b/scp.c +--- a/scp.c ++++ b/scp.c +@@ -935,7 +935,8 @@ sink(int argc, char **argv) + size = size * 10 + (*cp++ - '0'); + if (*cp++ != ' ') + SCREWUP("size not delimited"); +- if ((strchr(cp, '/') != NULL) || (strcmp(cp, "..") == 0)) { ++ if (*cp == '\0' || strchr(cp, '/') != NULL || ++ strcmp(cp, ".") == 0 || strcmp(cp, "..") == 0) { + run_err("error: unexpected filename: %s", cp); + exit(1); + }
Signature · 1 line
2.26.2
PATCH 1/1 package/dropbear: backport security fix for CVE-2018-20685
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas De Schampheleire <[email protected]> writes:
From: Thomas De Schampheleire <[email protected]> The update to 2020.79 contains several other changes that may not be appropriate for the LTS branch, hence just backport the single fix.
Signed-off-by Thomas De Schampheleire <[email protected]>
Committed to 2020.02.x and 2020.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard