diff options
| author | Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com> | 2026-05-20 10:29:30 +0200 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-06-10 14:35:20 +0100 |
| commit | e0f9a13f5fc5e4422a6c9a98e788918d323d85a8 (patch) | |
| tree | 06318f1e30e5c195f49396891338decc9bbebbad | |
| parent | 8457a5d3d9b82f90488a968c406d1cbefb91b26c (diff) | |
| download | poky-e0f9a13f5fc5e4422a6c9a98e788918d323d85a8.tar.gz | |
openssh: patch CVE-2026-35385
Backport patch from [1] matching CVE description in [2] and change described
in release note [3].
[1] https://github.com/openssh/openssh-portable/commit/487e8ac146f7d6616f65c125d5edb210519b833a
[2] https://security-tracker.debian.org/tracker/CVE-2026-35385
[3] https://www.openssh.org/releasenotes.html#10.3p1
(From OE-Core rev: 8a5742fdc3d60e8ab0da2e1f1401995105b742b9)
Signed-off-by: Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com>
Reviewed-by: Bruno Vernay <bruno.vernay@se.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
| -rw-r--r-- | meta/recipes-connectivity/openssh/openssh/CVE-2026-35385.patch | 47 | ||||
| -rw-r--r-- | meta/recipes-connectivity/openssh/openssh_9.6p1.bb | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-35385.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-35385.patch new file mode 100644 index 0000000000..4fc19a6062 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-35385.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | From 9df287221ad61f6b05b3e80bc57bdaacfa5ab243 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "djm@openbsd.org" <djm@openbsd.org> | ||
| 3 | Date: Thu, 2 Apr 2026 07:42:16 +0000 | ||
| 4 | Subject: [PATCH] upstream: when downloading files as root in legacy (-O) mode | ||
| 5 | and | ||
| 6 | |||
| 7 | without the -p (preserve modes) flag set, clear setuid/setgid bits from | ||
| 8 | downloaded files as one might expect. | ||
| 9 | |||
| 10 | AFAIK this bug dates back to the original Berkeley rcp program. | ||
| 11 | |||
| 12 | Reported by Christos Papakonstantinou of Cantina and Spearbit. | ||
| 13 | |||
| 14 | OpenBSD-Commit-ID: 49e902fca8dd933a92a9b547ab31f63e86729fa1 | ||
| 15 | |||
| 16 | CVE: CVE-2026-35385 | ||
| 17 | Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/487e8ac146f7d6616f65c125d5edb210519b833a] | ||
| 18 | Signed-off-by: Theo Gaige (Schneider Electric) <tgaige.opensource@witekio.com> | ||
| 19 | --- | ||
| 20 | scp.c | 6 ++++-- | ||
| 21 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/scp.c b/scp.c | ||
| 24 | index 492dace12..2c21fa19a 100644 | ||
| 25 | --- a/scp.c | ||
| 26 | +++ b/scp.c | ||
| 27 | @@ -1,4 +1,4 @@ | ||
| 28 | -/* $OpenBSD: scp.c,v 1.260 2023/10/11 05:42:08 djm Exp $ */ | ||
| 29 | +/* $OpenBSD: scp.c,v 1.273 2026/04/02 07:42:16 djm Exp $ */ | ||
| 30 | /* | ||
| 31 | * scp - secure remote copy. This is basically patched BSD rcp which | ||
| 32 | * uses ssh to do the data transfer (instead of using rcmd). | ||
| 33 | @@ -1682,8 +1682,10 @@ sink(int argc, char **argv, const char *src) | ||
| 34 | |||
| 35 | setimes = targisdir = 0; | ||
| 36 | mask = umask(0); | ||
| 37 | - if (!pflag) | ||
| 38 | + if (!pflag) { | ||
| 39 | + mask |= 07000; | ||
| 40 | (void) umask(mask); | ||
| 41 | + } | ||
| 42 | if (argc != 1) { | ||
| 43 | run_err("ambiguous target"); | ||
| 44 | exit(1); | ||
| 45 | -- | ||
| 46 | 2.43.0 | ||
| 47 | |||
diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb index 1cdd888ccb..3a9010a7a4 100644 --- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb | |||
| @@ -34,6 +34,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar | |||
| 34 | file://CVE-2025-32728.patch \ | 34 | file://CVE-2025-32728.patch \ |
| 35 | file://CVE-2025-61985.patch \ | 35 | file://CVE-2025-61985.patch \ |
| 36 | file://CVE-2025-61984.patch \ | 36 | file://CVE-2025-61984.patch \ |
| 37 | file://CVE-2026-35385.patch \ | ||
| 37 | " | 38 | " |
| 38 | SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c" | 39 | SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c" |
| 39 | 40 | ||
