* [OE-core][wrynose][PATCH 00/10] openssh: Security fixes
@ 2026-10-16 3:52 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-10-16 3:52 ` [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
` (9 more replies)
0 siblings, 10 replies; 14+ messages in thread
From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw)
To: openembedded-core; +Cc: xe-linux-external
From: Hetvi Thakar <hthakar@cisco.com>
This series addresses eleven OpenSSH CVEs in the Wrynose
openssh 10.3p1 recipe. Eight patches backport upstream fixes;
two set CVE_STATUS for issues whose affected platform-specific
code does not apply to the Wrynose Linux build.
The series is based on three OpenSSH patches already submitted
to OE-Core and still under review:
CVE-2026-73283:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260929035745.321529-1-hthakar@cisco.com/
CVE-2026-73282:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260929035745.321529-2-hthakar@cisco.com/
CVE-2026-73281:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260929035745.321529-3-hthakar@cisco.com/
Those three patches are prerequisites; they are not included or
resent in this ten-patch series.
The upstream-fix backports cover CVE-2026-106584,
CVE-2026-106586, CVE-2026-106587, CVE-2026-106582,
CVE-2026-106585, CVE-2026-106583, CVE-2026-106552,
CVE-2026-106553, and CVE-2026-106555. One patch addresses
both CVE-2026-106553 and CVE-2026-106555.
The CVE_STATUS patches address CVE-2026-106588 and
CVE-2026-106589.
Hetvi Thakar (10):
openssh: Fix CVE-2026-106584
openssh: Fix CVE-2026-106586
openssh: Fix CVE-2026-106587
openssh: Fix CVE-2026-106582
openssh: Fix CVE-2026-106585
openssh: Ignore CVE-2026-106588
openssh: Ignore CVE-2026-106589
openssh: Fix CVE-2026-106583
openssh: Fix CVE-2026-106552
openssh: Fix CVE-2026-106553 and CVE-2026-106555
.../openssh/openssh/CVE-2026-106552.patch | 63 +++++++++++
.../CVE-2026-106553_CVE-2026-106555_p1.patch | 100 +++++++++++++++++
.../CVE-2026-106553_CVE-2026-106555_p2.patch | 80 ++++++++++++++
.../CVE-2026-106553_CVE-2026-106555_p3.patch | 42 ++++++++
.../openssh/openssh/CVE-2026-106582.patch | 97 +++++++++++++++++
.../openssh/openssh/CVE-2026-106583.patch | 35 ++++++
.../openssh/openssh/CVE-2026-106584.patch | 39 +++++++
.../openssh/openssh/CVE-2026-106585.patch | 44 ++++++++
.../openssh/openssh/CVE-2026-106586_p1.patch | 39 +++++++
.../openssh/openssh/CVE-2026-106586_p2.patch | 101 ++++++++++++++++++
.../openssh/openssh/CVE-2026-106586_p3.patch | 39 +++++++
.../openssh/openssh/CVE-2026-106587.patch | 62 +++++++++++
.../openssh/openssh_10.3p1.bb | 14 +++
13 files changed, 755 insertions(+)
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106582.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106583.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106585.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p1.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p2.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p3.patch
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
--
2.35.6
^ permalink raw reply [flat|nested] 14+ messages in thread* [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-19 18:44 ` Yoann Congal 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 02/10] openssh: Fix CVE-2026-106586 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (8 subsequent siblings) 9 siblings, 1 reply; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/aef20dfe30e68a469911a229b9117e7134766311 [2] https://ubuntu.com/security/CVE-2026-106584 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106584.patch | 39 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch new file mode 100644 index 0000000000..31b35aad9a --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch @@ -0,0 +1,39 @@ +From aef20dfe30e68a469911a229b9117e7134766311 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Tue, 15 Sep 2026 08:31:46 +0000 +Subject: [PATCH] upstream: Correct handling of DST when converting dates + +Timestamps conversion was ignoring Daylight Savings Time (DST) causing +date conversions to be +/-1 hour under some circumstances. + +bz4004; from Khush Patel, ok deraadt + +OpenBSD-Commit-ID: bd5eb2603c04d4b5072b0e593b137a98ef75b731 + +CVE: CVE-2026-106584 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/aef20dfe30e68a469911a229b9117e7134766311] + +Backport Changes: +- Omitted the upstream misc.c OpenBSD revision-only hunk. OpenSSH 10.3p1 + also lacks earlier error-sentinel handling; that is not part of this + DST fix and is not imported here. + +(cherry picked from commit aef20dfe30e68a469911a229b9117e7134766311) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + misc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/misc.c b/misc.c +--- a/misc.c ++++ b/misc.c +@@ -2591,6 +2591,7 @@ parse_absolute_time(const char *s, uint64_t *tp) + if ((tt = timegm(&tm)) < 0) + return SSH_ERR_INVALID_FORMAT; + } else { ++ tm.tm_isdst = -1; /* mktime decides DST */ + if ((tt = mktime(&tm)) < 0) + return SSH_ERR_INVALID_FORMAT; + } +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 0b34e4563c..aceaa6420f 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -34,6 +34,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-73283.patch \ file://CVE-2026-73282.patch \ file://CVE-2026-73281.patch \ + file://CVE-2026-106584.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-19 18:44 ` Yoann Congal 2026-11-06 11:00 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 0 siblings, 1 reply; 14+ messages in thread From: Yoann Congal @ 2026-10-19 18:44 UTC (permalink / raw) To: hthakar, openembedded-core; +Cc: xe-linux-external On Fri Oct 16, 2026 at 5:52 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) via lists.openembedded.org wrote: > From: Hetvi Thakar <hthakar@cisco.com> > > This patch applies the upstream fix as referenced in [2], using the > commit shown in [1]. > > [1] https://github.com/openssh/openssh-portable/commit/aef20dfe30e68a469911a229b9117e7134766311 > [2] https://ubuntu.com/security/CVE-2026-106584 > > Signed-off-by: Hetvi Thakar <hthakar@cisco.com> > --- > .../openssh/openssh/CVE-2026-106584.patch | 39 +++++++++++++++++++ > .../openssh/openssh_10.3p1.bb | 1 + > 2 files changed, 40 insertions(+) > create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch Hello, This patch (and a few others in the series) are included in openssh 10.6 but blacksail only has 10.5. Can you send the backports for blacksail so I can merge this series for wrynose? Thanks! -- Yoann Congal Smile ECS ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 2026-10-19 18:44 ` Yoann Congal @ 2026-11-06 11:00 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-11-09 14:30 ` Yoann Congal 0 siblings, 1 reply; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-06 11:00 UTC (permalink / raw) To: Yoann Congal, openembedded-core@lists.openembedded.org Cc: xe-linux-external (Internal Group) [-- Attachment #1: Type: text/plain, Size: 1771 bytes --] Hi Yoann, I have submitted the corresponding OpenSSH backport patches for blacksail upstream [1] . Could you please review the wrynose series when you have a chance? [1] [blacksail] openssh: Upgrade 10.5p1 -> 10.6p1 - Patchwork<https://patchwork.yoctoproject.org/project/oe-core/patch/20261105042209.1168511-1-hthakar@cisco.com/> Regards, Hetvi ________________________________ From: Yoann Congal <yoann.congal@smile.fr> Sent: 20 October 2026 00:14 To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <hthakar@cisco.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> Cc: xe-linux-external (Internal Group) <xe-linux-external@cisco.com> Subject: Re: [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 On Fri Oct 16, 2026 at 5:52 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) via lists.openembedded.org wrote: > From: Hetvi Thakar <hthakar@cisco.com> > > This patch applies the upstream fix as referenced in [2], using the > commit shown in [1]. > > [1] https://github.com/openssh/openssh-portable/commit/aef20dfe30e68a469911a229b9117e7134766311 > [2] https://ubuntu.com/security/CVE-2026-106584 > > Signed-off-by: Hetvi Thakar <hthakar@cisco.com> > --- > .../openssh/openssh/CVE-2026-106584.patch | 39 +++++++++++++++++++ > .../openssh/openssh_10.3p1.bb | 1 + > 2 files changed, 40 insertions(+) > create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch Hello, This patch (and a few others in the series) are included in openssh 10.6 but blacksail only has 10.5. Can you send the backports for blacksail so I can merge this series for wrynose? Thanks! -- Yoann Congal Smile ECS [-- Attachment #2: Type: text/html, Size: 4176 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 2026-11-06 11:00 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-09 14:30 ` Yoann Congal 0 siblings, 0 replies; 14+ messages in thread From: Yoann Congal @ 2026-11-09 14:30 UTC (permalink / raw) To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco), openembedded-core@lists.openembedded.org Cc: xe-linux-external (Internal Group) On Fri Nov 6, 2026 at 12:00 PM CET, Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) wrote: > Hi Yoann, Hello, > I have submitted the corresponding OpenSSH backport patches for > blacksail upstream [1] . > Could you please review the wrynose series when you have a chance? > [1] [blacksail] openssh: Upgrade 10.5p1 -> 10.6p1 - > Patchwork<https://patchwork.yoctoproject.org/project/oe-core/patch/20261105042209.1168511-1-hthakar@cisco.com/> I had to reject this blacksail patch. This mean that I can't review/accept this wrynose series until equivalent fixes are sent to blacksail by backports. Regards, > Regards, > Hetvi > > ________________________________ > From: Yoann Congal <yoann.congal@smile.fr> > Sent: 20 October 2026 00:14 > To: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) <hthakar@cisco.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> > Cc: xe-linux-external (Internal Group) <xe-linux-external@cisco.com> > Subject: Re: [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 > > On Fri Oct 16, 2026 at 5:52 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) via lists.openembedded.org wrote: >> From: Hetvi Thakar <hthakar@cisco.com> >> >> This patch applies the upstream fix as referenced in [2], using the >> commit shown in [1]. >> >> [1] https://github.com/openssh/openssh-portable/commit/aef20dfe30e68a469911a229b9117e7134766311 >> [2] https://ubuntu.com/security/CVE-2026-106584 >> >> Signed-off-by: Hetvi Thakar <hthakar@cisco.com> >> --- >> .../openssh/openssh/CVE-2026-106584.patch | 39 +++++++++++++++++++ >> .../openssh/openssh_10.3p1.bb | 1 + >> 2 files changed, 40 insertions(+) >> create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106584.patch > > Hello, > > This patch (and a few others in the series) are included in openssh 10.6 > but blacksail only has 10.5. Can you send the backports for blacksail so > I can merge this series for wrynose? > > Thanks! > -- > Yoann Congal > Smile ECS -- Yoann Congal Smile ECS ^ permalink raw reply [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 02/10] openssh: Fix CVE-2026-106586 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 03/10] openssh: Fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (7 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/991f1f31dde2797416acaf4319dbebe764446c6f [2] https://ubuntu.com/security/CVE-2026-106586 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106586_p1.patch | 39 +++++++ .../openssh/openssh/CVE-2026-106586_p2.patch | 101 ++++++++++++++++++ .../openssh/openssh/CVE-2026-106586_p3.patch | 39 +++++++ .../openssh/openssh_10.3p1.bb | 3 + 4 files changed, 182 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p1.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p2.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p3.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p1.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p1.patch new file mode 100644 index 0000000000..a694424cf4 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p1.patch @@ -0,0 +1,39 @@ +From 991f1f31dde2797416acaf4319dbebe764446c6f Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 00:33:44 +0000 +Subject: [PATCH] upstream: Propagate authorized_keys "resrict" keyword + +The "restrict" keyword was not pervasively being applied to TunnelForwarding +connections (which are administratively disabled by default). This is a +separate problem to the one fixed in openssh-10.5 + +reported by several people; ok markus, deraadt + +OpenBSD-Commit-ID: 8c36c31dc2bdbc0c432d1056496b2f1ce93198d1 + +CVE: CVE-2026-106586 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/991f1f31dde2797416acaf4319dbebe764446c6f] + +Backport Changes: +- Omitted the upstream OpenBSD revision-only hunk and retained the + Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit 991f1f31dde2797416acaf4319dbebe764446c6f) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + auth-options.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/auth-options.c b/auth-options.c +--- a/auth-options.c ++++ b/auth-options.c +@@ -604,6 +604,7 @@ sshauthopt_merge(const struct sshauthopt *primary, + OPTFLAG_AND(no_require_user_presence); + /* Restrictive flags are logical-OR (i.e. must be set in either) */ + OPTFLAG_OR(require_verify); ++ OPTFLAG_OR(restricted); + #undef OPTFLAG_AND + + /* Earliest expiry time should win */ +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p2.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p2.patch new file mode 100644 index 0000000000..10a2abe497 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p2.patch @@ -0,0 +1,101 @@ +From ded92bffa2e2f2db9b83245c5061812791bfa47f Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 04:51:28 +0000 +Subject: [PATCH] upstream: correctly check sshauthopt->restricted merging + +OpenBSD-Regress-ID: e81e9267514338d6cf6bd2f83dcb722538af528e + +CVE: CVE-2026-106586 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/ded92bffa2e2f2db9b83245c5061812791bfa47f] + +Backport Changes: +- Omitted the upstream tests.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit ded92bffa2e2f2db9b83245c5061812791bfa47f) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + regress/unittests/authopt/tests.c | 41 +++++++++++++++++++++-------------------- + 1 file changed, 21 insertions(+), 20 deletions(-) + +diff --git a/regress/unittests/authopt/tests.c b/regress/unittests/authopt/tests.c +--- a/regress/unittests/authopt/tests.c ++++ b/regress/unittests/authopt/tests.c +@@ -418,13 +418,14 @@ test_merge(void) + } while (0) + + /* Check a single case of merging of flag options */ +-#define FLAG_CASE(keybase, label, keyname, keywords, mostly_off, var, val) \ ++#define FLAG_CASE(keybase, label, keyname, keywords, mostly_off, \ ++ rflag, var, val) \ + do { \ + PREPARE(keybase " " label, keyname, keywords); \ +- expected = mostly_off ? \ +- sshauthopt_new() : default_authkey_opts(); \ +- expected->var = val; \ ++ expected = rflag ? default_authkey_restrict_opts() : \ ++ (mostly_off ? sshauthopt_new() : default_authkey_opts()); \ + ASSERT_PTR_NE(expected, NULL); \ ++ expected->var = val; \ + CHECK_SUCCESS_AND_CLEANUP(); \ + TEST_DONE(); \ + } while (0) +@@ -437,40 +438,40 @@ test_merge(void) + #define FLAG_TEST(keybase, keyword, var) \ + do { \ + FLAG_CASE(keybase, "keys:default,yes cert:default,no", \ +- "no_" keybase, keyword, 0, var, 0); \ ++ "no_" keybase, keyword, 0, 0, var, 0); \ + FLAG_CASE(keybase,"keys:-*,yes cert:default,no", \ +- "no_" keybase, "restrict," keyword, 1, var, 0); \ ++ "no_" keybase, "restrict," keyword, 1, 1, var, 0); \ + FLAG_CASE(keybase, "keys:default,no cert:default,no", \ +- "no_" keybase, "no-" keyword, 0, var, 0); \ ++ "no_" keybase, "no-" keyword, 0, 0, var, 0); \ + FLAG_CASE(keybase, "keys:-*,no cert:default,no", \ +- "no_" keybase, "restrict,no-" keyword, 1, var, 0); \ ++ "no_" keybase, "restrict,no-" keyword, 1, 1, var, 0); \ + \ + FLAG_CASE(keybase, "keys:default,yes cert:-*,yes", \ +- "only_" keybase, keyword, 1, var, 1); \ ++ "only_" keybase, keyword, 1, 0, var, 1); \ + FLAG_CASE(keybase,"keys:-*,yes cert:-*,yes", \ +- "only_" keybase, "restrict," keyword, 1, var, 1); \ ++ "only_" keybase, "restrict," keyword, 1, 1, var, 1); \ + FLAG_CASE(keybase, "keys:default,no cert:-*,yes", \ +- "only_" keybase, "no-" keyword, 1, var, 0); \ ++ "only_" keybase, "no-" keyword, 1, 0, var, 0); \ + FLAG_CASE(keybase, "keys:-*,no cert:-*,yes", \ +- "only_" keybase, "restrict,no-" keyword, 1, var, 0); \ ++ "only_" keybase, "restrict,no-" keyword, 1, 1, var, 0); \ + \ + FLAG_CASE(keybase, "keys:default,yes cert:-*", \ +- "no_permit", keyword, 1, var, 0); \ ++ "no_permit", keyword, 1, 0, var, 0); \ + FLAG_CASE(keybase,"keys:-*,yes cert:-*", \ +- "no_permit", "restrict," keyword, 1, var, 0); \ ++ "no_permit", "restrict," keyword, 1, 1, var, 0); \ + FLAG_CASE(keybase, "keys:default,no cert:-*", \ +- "no_permit", "no-" keyword, 1, var, 0); \ ++ "no_permit", "no-" keyword, 1, 0, var, 0); \ + FLAG_CASE(keybase, "keys:-*,no cert:-*", \ +- "no_permit", "restrict,no-" keyword, 1, var, 0); \ ++ "no_permit", "restrict,no-" keyword, 1, 1, var, 0); \ + \ + FLAG_CASE(keybase, "keys:default,yes cert:*", \ +- "all_permit", keyword, 0, var, 1); \ ++ "all_permit", keyword, 0, 0, var, 1); \ + FLAG_CASE(keybase,"keys:-*,yes cert:*", \ +- "all_permit", "restrict," keyword, 1, var, 1); \ ++ "all_permit", "restrict," keyword, 1, 1, var, 1); \ + FLAG_CASE(keybase, "keys:default,no cert:*", \ +- "all_permit", "no-" keyword, 0, var, 0); \ ++ "all_permit", "no-" keyword, 0, 0, var, 0); \ + FLAG_CASE(keybase, "keys:-*,no cert:*", \ +- "all_permit", "restrict,no-" keyword, 1, var, 0); \ ++ "all_permit", "restrict,no-" keyword, 1, 1, var, 0); \ + \ + } while (0) + FLAG_TEST("portfwd", "port-forwarding", permit_port_forwarding_flag); +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p3.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p3.patch new file mode 100644 index 0000000000..6defa83ec6 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106586_p3.patch @@ -0,0 +1,39 @@ +From a30bafcbbd44dc4dc91916240c32ecabff899338 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 04:56:12 +0000 +Subject: [PATCH] upstream: simpler + +OpenBSD-Regress-ID: c7f30b865abd0b3e0e5514f861509c32e352a760 + +CVE: CVE-2026-106586 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/a30bafcbbd44dc4dc91916240c32ecabff899338] + +Backport Changes: +- Omitted the upstream tests.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit a30bafcbbd44dc4dc91916240c32ecabff899338) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + regress/unittests/authopt/tests.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/regress/unittests/authopt/tests.c b/regress/unittests/authopt/tests.c +--- a/regress/unittests/authopt/tests.c ++++ b/regress/unittests/authopt/tests.c +@@ -422,10 +422,11 @@ test_merge(void) + rflag, var, val) \ + do { \ + PREPARE(keybase " " label, keyname, keywords); \ +- expected = rflag ? default_authkey_restrict_opts() : \ +- (mostly_off ? sshauthopt_new() : default_authkey_opts()); \ ++ expected = mostly_off ? \ ++ sshauthopt_new() : default_authkey_opts(); \ + ASSERT_PTR_NE(expected, NULL); \ ++ expected->restricted = rflag; \ + expected->var = val; \ + CHECK_SUCCESS_AND_CLEANUP(); \ + TEST_DONE(); \ + } while (0) +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index aceaa6420f..7760dae931 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -35,6 +35,9 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-73282.patch \ file://CVE-2026-73281.patch \ file://CVE-2026-106584.patch \ + file://CVE-2026-106586_p1.patch \ + file://CVE-2026-106586_p2.patch \ + file://CVE-2026-106586_p3.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 03/10] openssh: Fix CVE-2026-106587 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 02/10] openssh: Fix CVE-2026-106586 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 04/10] openssh: Fix CVE-2026-106582 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (6 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/526fd2771342f36142099bec82c49ce0457c5016 [2] https://ubuntu.com/security/CVE-2026-106587 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106587.patch | 62 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 63 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch new file mode 100644 index 0000000000..203dd8cc05 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch @@ -0,0 +1,62 @@ +From 526fd2771342f36142099bec82c49ce0457c5016 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 00:35:09 +0000 +Subject: [PATCH] upstream: Correctly handle some options that accept "none" + +Some options, including AuthorizedPrincipalsFile were documented as accepting +"none" as a way to disable them, however when overriddes by a ssh_config(5) +Match keyword, this argument was being interpreted as a literal file. + +With Chris Rohlf in collaboration with Claude and Anthropic Research + +ok markus, deraadt + +OpenBSD-Commit-ID: 802f3a7695eba20924c05e500b0ecd34ec877756 + +CVE: CVE-2026-106587 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/526fd2771342f36142099bec82c49ce0457c5016] + +Backport Changes: +- Omitted the upstream servconf.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. +- Adapted the fix to OpenSSH 10.3p1's manual Match-option copy routine; + the upstream commit uses generated option-copy helpers. Left the + older version's existing post-authentication cleanup in place, so + the CLEAR_ON_NONE macro is undefined immediately after the three + pre-authentication options rather than reused below. + +(cherry picked from commit 526fd2771342f36142099bec82c49ce0457c5016) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + servconf.c | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +diff --git a/servconf.c b/servconf.c +--- a/servconf.c ++++ b/servconf.c +@@ -2884,6 +2884,23 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth) + + /* Arguments that accept '+...' need to be expanded */ + assemble_algorithms(dst); ++ ++ /* ++ * These options may be "none" to clear a global setting. They are ++ * consulted before authentication, so they must be cleared here ++ * rather than in the post-auth section below. ++ */ ++#define CLEAR_ON_NONE(v) \ ++ do { \ ++ if (option_clear_or_none(v)) { \ ++ free(v); \ ++ v = NULL; \ ++ } \ ++ } while(0) ++ CLEAR_ON_NONE(dst->authorized_principals_file); ++ CLEAR_ON_NONE(dst->trusted_user_ca_keys); ++ CLEAR_ON_NONE(dst->banner); ++#undef CLEAR_ON_NONE + + /* + * The only things that should be below this point are string options +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 7760dae931..a70ca30b15 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -38,6 +38,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106586_p1.patch \ file://CVE-2026-106586_p2.patch \ file://CVE-2026-106586_p3.patch \ + file://CVE-2026-106587.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 04/10] openssh: Fix CVE-2026-106582 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (2 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 03/10] openssh: Fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 05/10] openssh: Fix CVE-2026-106585 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (5 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/1d5340fce24526719e32aebc4c721fc228182ace [2] https://ubuntu.com/security/CVE-2026-106582 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106582.patch | 97 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 98 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106582.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106582.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106582.patch new file mode 100644 index 0000000000..53c5cb6f47 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106582.patch @@ -0,0 +1,97 @@ +From 1d5340fce24526719e32aebc4c721fc228182ace Mon Sep 17 00:00:00 2001 +From: "job@openbsd.org" <job@openbsd.org> +Date: Tue, 22 Sep 2026 04:38:09 +0000 +Subject: [PATCH] upstream: Disable LZ77 dictionary coder to avoid a potential + +side-channel leak +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +A chosen-plaintext attack method exists which makes use of +dictionary-based compression to recover secrets from one channel by +interacting with the SSH session's shared compression dictionary through +another channel. + +Attacker-controlled input can recognizably reflect into the total length +of transmitted ciphertexts by virtue of LZ77 replacing repeated strings +with back-references into the SSH session's encoder search buffer, +which is shared across all channels. For this reason, the documentation +already recommended against enabling compression for connections that +share trusted and untrusted traffic. + +As an extra precaution, use only Huffman coding when compressing +plaintexts, as this algorithm does not use a dictionary. But, this +results in a reduction of compression effectiveness. + +Inspired by "Crossing the Streams: SSH Plaintext Recovery via a Common +Compression Context in Multiplexed Channels." by Fabian Bäumer and +Marcus Brinkmann, preprint https://arxiv.org/abs/2609.07709 (2026) + +OK djm@ dtucker@ + +OpenBSD-Commit-ID: 839e5e53ad76786d0e90bed530304e4e13acbba0 + +CVE: CVE-2026-106582 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/1d5340fce24526719e32aebc4c721fc228182ace] + +Backport Changes: +- Omitted the upstream packet.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit 1d5340fce24526719e32aebc4c721fc228182ace) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + packet.c | 15 +++++++-------- + 1 file changed, 7 insertions(+), 8 deletions(-) + +diff --git a/packet.c b/packet.c +--- a/packet.c ++++ b/packet.c +@@ -802,13 +802,12 @@ ssh_packet_init_compression(struct ssh *ssh) + #ifdef WITH_ZLIB + static int +-start_compression_out(struct ssh *ssh, int level) ++start_compression_out(struct ssh *ssh) + { +- if (level < 1 || level > 9) +- return SSH_ERR_INVALID_ARGUMENT; +- debug("Enabling compression at level %d.", level); ++ debug("Enabling compression."); + if (ssh->state->compression_out_started == 1) + deflateEnd(&ssh->state->compression_out_stream); +- switch (deflateInit(&ssh->state->compression_out_stream, level)) { ++ switch (deflateInit2(&ssh->state->compression_out_stream, ++ Z_BEST_SPEED, Z_DEFLATED, 15, 8, Z_HUFFMAN_ONLY)) { + case Z_OK: + ssh->state->compression_out_started = 1; + break; +@@ -934,7 +933,7 @@ uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) + #else /* WITH_ZLIB */ + + static int +-start_compression_out(struct ssh *ssh, int level) ++start_compression_out(struct ssh *ssh) + { + return SSH_ERR_INTERNAL_ERROR; + } +@@ -1040,7 +1039,7 @@ ssh_set_newkeys(struct ssh *ssh, int mode) + if ((r = ssh_packet_init_compression(ssh)) < 0) + return r; + if (mode == MODE_OUT) { +- if ((r = start_compression_out(ssh, 6)) != 0) ++ if ((r = start_compression_out(ssh)) != 0) + return r; + } else { + if ((r = start_compression_in(ssh)) != 0) +@@ -1185,7 +1184,7 @@ ssh_packet_enable_delayed_compress(struct ssh *ssh) + if ((r = ssh_packet_init_compression(ssh)) != 0) + return r; + if (mode == MODE_OUT) { +- if ((r = start_compression_out(ssh, 6)) != 0) ++ if ((r = start_compression_out(ssh)) != 0) + return r; + } else { + if ((r = start_compression_in(ssh)) != 0) +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index a70ca30b15..129c62090f 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -39,6 +39,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106586_p2.patch \ file://CVE-2026-106586_p3.patch \ file://CVE-2026-106587.patch \ + file://CVE-2026-106582.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 05/10] openssh: Fix CVE-2026-106585 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (3 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 04/10] openssh: Fix CVE-2026-106582 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 06/10] openssh: Ignore CVE-2026-106588 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (4 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/e0f85d83ccc15b1b218fa8a000fc29a2e3d2defd [2] https://ubuntu.com/security/CVE-2026-106585 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106585.patch | 44 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106585.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106585.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106585.patch new file mode 100644 index 0000000000..08f992f54c --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106585.patch @@ -0,0 +1,44 @@ +From e0f85d83ccc15b1b218fa8a000fc29a2e3d2defd Mon Sep 17 00:00:00 2001 +From: "job@openbsd.org" <job@openbsd.org> +Date: Tue, 22 Sep 2026 22:51:43 +0000 +Subject: [PATCH] upstream: Check that compressed payloads don't inflate beyond the + +maximum payload length + +From a report by Oleh Konko (1seal) + +OK djm@ + +OpenBSD-Commit-ID: a0d3e7aa432777c28bfe23e5447ac117d6c151d9 + +CVE: CVE-2026-106585 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/e0f85d83ccc15b1b218fa8a000fc29a2e3d2defd] + +Backport Changes: +- Omitted the upstream packet.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit e0f85d83ccc15b1b218fa8a000fc29a2e3d2defd) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + packet.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/packet.c b/packet.c +--- a/packet.c ++++ b/packet.c +@@ -907,10 +907,12 @@ uncompress_buffer(struct ssh *ssh, struct sshbuf *in, struct sshbuf *out) + switch (status) { + case Z_OK: + if ((r = sshbuf_put(out, buf, sizeof(buf) - + ssh->state->compression_in_stream.avail_out)) != 0) + return r; ++ if (sshbuf_len(out) >= PACKET_MAX_SIZE) ++ return SSH_ERR_INVALID_FORMAT; + break; + case Z_BUF_ERROR: + /* + * Comments in zlib.h say that we should keep calling + * inflate() until we get an error. This appears to +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 129c62090f..3e927154f5 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -40,6 +40,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106586_p3.patch \ file://CVE-2026-106587.patch \ file://CVE-2026-106582.patch \ + file://CVE-2026-106585.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 06/10] openssh: Ignore CVE-2026-106588 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (4 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 05/10] openssh: Fix CVE-2026-106585 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 07/10] openssh: Ignore CVE-2026-106589 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (3 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> Analysis: - This issue requires OpenSSH built with the macOS 27 or later SDK. - Wrynose targets Linux and cannot select the Darwin sandbox. Reference: https://ubuntu.com/security/CVE-2026-106588 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- meta/recipes-connectivity/openssh/openssh_10.3p1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 3e927154f5..6799e10b99 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -56,6 +56,7 @@ CVE_STATUS[CVE-2023-51767] = "upstream-wontfix: It was demonstrated on modified CVE_STATUS[CVE-2026-3497] = "not-applicable-platform: Only affects GSSAPI Key Exchange patches used by some Linux distributions and does not exist in upstream openssh." CVE_STATUS[CVE-2026-55653] = "not-applicable-platform: Only applies to RHEL FIPS patches." CVE_STATUS[CVE-2026-59998] = "${@bb.utils.contains('PACKAGECONFIG', 'kerberos', 'unpatched', 'not-applicable-config: GSSAPI/Kerberos support is disabled in the default OpenSSH configuration', d)}" +CVE_STATUS[CVE-2026-106588] = "not-applicable-platform: Requires the macOS 27 or later SDK and Darwin sandbox; Wrynose builds OpenSSH for Linux." PAM_SRC_URI = "file://sshd" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 07/10] openssh: Ignore CVE-2026-106589 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (5 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 06/10] openssh: Ignore CVE-2026-106588 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 08/10] openssh: Fix CVE-2026-106583 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (2 subsequent siblings) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> Analysis: - This issue concerns platforms lacking file descriptor passing and unprivileged PTY allocation, notably QNX 6 and SCO OpenServer 5. - Wrynose builds OpenSSH for Linux, where the affected platform-specific configuration is not selected. Reference: https://ubuntu.com/security/CVE-2026-106589 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- meta/recipes-connectivity/openssh/openssh_10.3p1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 6799e10b99..cd8b7169a8 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -57,6 +57,7 @@ CVE_STATUS[CVE-2026-3497] = "not-applicable-platform: Only affects GSSAPI Key Ex CVE_STATUS[CVE-2026-55653] = "not-applicable-platform: Only applies to RHEL FIPS patches." CVE_STATUS[CVE-2026-59998] = "${@bb.utils.contains('PACKAGECONFIG', 'kerberos', 'unpatched', 'not-applicable-config: GSSAPI/Kerberos support is disabled in the default OpenSSH configuration', d)}" CVE_STATUS[CVE-2026-106588] = "not-applicable-platform: Requires the macOS 27 or later SDK and Darwin sandbox; Wrynose builds OpenSSH for Linux." +CVE_STATUS[CVE-2026-106589] = "not-applicable-platform: Requires platforms without file descriptor passing and unprivileged PTY allocation, such as QNX 6 or SCO OpenServer 5; Wrynose targets Linux." PAM_SRC_URI = "file://sshd" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 08/10] openssh: Fix CVE-2026-106583 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (6 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 07/10] openssh: Ignore CVE-2026-106589 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 09/10] openssh: Fix CVE-2026-106552 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. The two other commits linked by [2] only add and adjust regression tests; they contain no functional security fix. [1] https://github.com/openssh/openssh-portable/commit/0c4c9a7b320bd7ff61c4a2dc345cb2e27e9663b2 [2] https://ubuntu.com/security/CVE-2026-106583 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106583.patch | 35 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106583.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106583.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106583.patch new file mode 100644 index 0000000000..094f4bad63 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106583.patch @@ -0,0 +1,35 @@ +From 0c4c9a7b320bd7ff61c4a2dc345cb2e27e9663b2 Mon Sep 17 00:00:00 2001 +From: "dtucker@openbsd.org" <dtucker@openbsd.org> +Date: Mon, 5 Oct 2026 06:03:40 +0000 +Subject: [PATCH] upstream: Further restrict the characters allowed in a command-line + +supplied user name, disallowing '$' and '\'. Reported by SecBuddyF KeenLab +Tencent (CodeBuddy Security). + +OpenBSD-Commit-ID: 13671c178f492af63b5c1296f284818c7809ed9a + +CVE: CVE-2026-106583 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/0c4c9a7b320bd7ff61c4a2dc345cb2e27e9663b2] + +Backport Changes: +- Omitted the upstream readconf.c OpenBSD revision-only hunk and retained + the Wrynose OpenSSH 10.3p1 revision. + +(cherry picked from commit 0c4c9a7b320bd7ff61c4a2dc345cb2e27e9663b2) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + readconf.c | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/readconf.c b/readconf.c +--- a/readconf.c ++++ b/readconf.c +@@ -3452 +3452 @@ ssh_valid_ruser(const char *s) +- if (strchr("'`\";&<>|(){}", s[i]) != NULL) ++ if (strchr("'`\";&<>|(){}$\\", s[i]) != NULL) +@@ -3457,3 +3457,0 @@ ssh_valid_ruser(const char *s) +- /* Disallow \ in last position */ +- if (s[i] == '\\' && s[i + 1] == '\0') +- return 0; +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index cd8b7169a8..4d9fd0c164 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -41,6 +41,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106587.patch \ file://CVE-2026-106582.patch \ file://CVE-2026-106585.patch \ + file://CVE-2026-106583.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 09/10] openssh: Fix CVE-2026-106552 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (7 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 08/10] openssh: Fix CVE-2026-106583 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://github.com/openssh/openssh-portable/commit/c07ea2180adebd6019a6ebdd89becb9d9f4b4897 [2] https://ubuntu.com/security/CVE-2026-106552 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../openssh/openssh/CVE-2026-106552.patch | 63 +++++++++++++++++++ .../openssh/openssh_10.3p1.bb | 1 + 2 files changed, 64 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch new file mode 100644 index 0000000000..a44d70a24f --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch @@ -0,0 +1,63 @@ +From c07ea2180adebd6019a6ebdd89becb9d9f4b4897 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Thu, 1 Oct 2026 03:11:49 +0000 +Subject: [PATCH] upstream: sftp: be stricter in accepting paths returned by the + +server for SSH_FXP_REALPATH or SSH2_FXP_READDIR replies, as these can be used +in some situations to decide the destination path for recursive transfers. + +Report and patch from Junghoon Cho + +OpenBSD-Commit-ID: ad357002a1b75c87113f01086a9f0c12c36082d8 + +CVE: CVE-2026-106552 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/c07ea2180adebd6019a6ebdd89becb9d9f4b4897] + +Backport Changes: +- Omitted upstream OpenBSD revision-only hunks and retained the Wrynose + OpenSSH 10.3p1 context. + +(cherry picked from commit c07ea2180adebd6019a6ebdd89becb9d9f4b4897) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + sftp-client.c | 3 ++- + sftp.c | 12 +++++++++--- + 2 files changed, 11 insertions(+), 4 deletions(-) + +diff --git a/sftp-client.c b/sftp-client.c +--- a/sftp-client.c ++++ b/sftp-client.c +@@ -785,7 +785,8 @@ sftp_lsreaddir(struct sftp_conn *conn, const char *path, + * These can be used to attack recursive ops + * (e.g. send '../../../../etc/passwd') + */ +- if (strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) { ++ if (*filename == '\0' || ++ strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) { + error("Server sent suspect path \"%s\" " + "during readdir of \"%s\"", filename, path); + } else if (dir) { +diff --git a/sftp.c b/sftp.c +--- a/sftp.c ++++ b/sftp.c +@@ -676,9 +676,15 @@ process_get(struct sftp_conn *conn, const char *src, const char *dst, + goto out; + } + +- /* Special handling for dest of '..' */ +- if (strcmp(filename, "..") == 0) +- filename = "."; /* Download to dest, not dest/.. */ ++ /* ++ * Special handling for destinations of '..' and remote roots. ++ * In particular, never select the local root as an implicit ++ * destination for a remote root. ++ */ ++ if (strcmp(filename, "..") == 0 || ++ (filename[0] != '\0' && ++ filename[strspn(filename, "/")] == '\0')) ++ filename = "."; + + if (g.gl_matchc == 1 && dst) { + if (local_is_dir(dst)) { +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index 4d9fd0c164..a2a5a3b924 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -42,6 +42,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106582.patch \ file://CVE-2026-106585.patch \ file://CVE-2026-106583.patch \ + file://CVE-2026-106552.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][wrynose][PATCH 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) ` (8 preceding siblings ...) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 09/10] openssh: Fix CVE-2026-106552 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 9 siblings, 0 replies; 14+ messages in thread From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:52 UTC (permalink / raw) To: openembedded-core; +Cc: xe-linux-external From: Hetvi Thakar <hthakar@cisco.com> This patch applies the shared upstream fixes referenced in [4] and [5], using the commits shown in [1], [2], and [3]. [1] https://github.com/openssh/openssh-portable/commit/670510d1e190b0f4e47066f24498c04ada1da0f0 [2] https://github.com/openssh/openssh-portable/commit/6f9cd19af05aa828d7778cfb047faaed1679e8b7 [3] https://github.com/openssh/openssh-portable/commit/d549f99da344c178c5f632a62a6aa60544d7236e [4] https://ubuntu.com/security/CVE-2026-106553 [5] https://ubuntu.com/security/CVE-2026-106555 Signed-off-by: Hetvi Thakar <hthakar@cisco.com> --- .../CVE-2026-106553_CVE-2026-106555_p1.patch | 100 ++++++++++++++++++ .../CVE-2026-106553_CVE-2026-106555_p2.patch | 80 ++++++++++++++ .../CVE-2026-106553_CVE-2026-106555_p3.patch | 42 ++++++++ .../openssh/openssh_10.3p1.bb | 3 + 4 files changed, 225 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch new file mode 100644 index 0000000000..b27d31d3c9 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch @@ -0,0 +1,100 @@ +From 670510d1e190b0f4e47066f24498c04ada1da0f0 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 00:37:07 +0000 +Subject: [PATCH] upstream: Reset GSSAPI client state before authentication + +Avoids situation where a partially-completed GSSAPI authentication attempt +can retain state that is subsequently used by a later attempt. + +Report and feedback Moritz Theile, also reported by several others. + +ok markus, deraadt + +OpenBSD-Commit-ID: 95758f23e358b7c19e6205ac1c979193a9145556 + +CVE: CVE-2026-106553 CVE-2026-106555 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/670510d1e190b0f4e47066f24498c04ada1da0f0] + +Backport Changes: +- Omit upstream OpenBSD revision-only hunks. + +(cherry picked from commit 670510d1e190b0f4e47066f24498c04ada1da0f0) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + auth2.c | 1 + + gss-serv.c | 19 ++++++++++++------- + monitor.c | 2 ++ + ssh-gss.h | 1 + + 4 files changed, 16 insertions(+), 7 deletions(-) + +diff --git a/auth2.c b/auth2.c +--- a/auth2.c ++++ b/auth2.c +@@ -338,3 +338,4 @@ input_userauth_request(int type, uint32_t seq, struct ssh *ssh) + #ifdef GSSAPI ++ ssh_gssapi_cleanup_global_client(); + /* XXX move to auth2_gssapi_stop() */ + ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); +diff --git a/gss-serv.c b/gss-serv.c +--- a/gss-serv.c ++++ b/gss-serv.c +@@ -361,12 +361,21 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep) + } + } + ++void ++ssh_gssapi_cleanup_global_client() ++{ ++ OM_uint32 lmin; ++ ++ gss_release_buffer(&lmin, &gssapi_client.displayname); ++ gss_release_buffer(&lmin, &gssapi_client.exportedname); ++ gss_release_cred(&lmin, &gssapi_client.creds); ++ explicit_bzero(&gssapi_client, sizeof(ssh_gssapi_client)); ++} ++ + /* Privileged */ + int + ssh_gssapi_userok(char *user) + { +- OM_uint32 lmin; +- + if (gssapi_client.exportedname.length == 0 || + gssapi_client.exportedname.value == NULL) { + debug("No suitable client data"); +@@ -377,11 +386,7 @@ ssh_gssapi_userok(char *user) + return 1; + else { + /* Destroy delegated credentials if userok fails */ +- gss_release_buffer(&lmin, &gssapi_client.displayname); +- gss_release_buffer(&lmin, &gssapi_client.exportedname); +- gss_release_cred(&lmin, &gssapi_client.creds); +- explicit_bzero(&gssapi_client, +- sizeof(ssh_gssapi_client)); ++ ssh_gssapi_cleanup_global_client(); + return 0; + } + else +diff --git a/monitor.c b/monitor.c +--- a/monitor.c ++++ b/monitor.c +@@ -1990,6 +1990,8 @@ mm_answer_gss_setup_ctx(struct ssh *ssh, int sock, struct sshbuf *m) + if (!options.gss_authentication) + fatal_f("GSSAPI authentication not enabled"); + ++ ssh_gssapi_cleanup_global_client(); ++ + if ((r = sshbuf_get_string(m, &p, &len)) != 0) + fatal_fr(r, "parse"); + goid.elements = p; +diff --git a/ssh-gss.h b/ssh-gss.h +--- a/ssh-gss.h ++++ b/ssh-gss.h +@@ -132,4 +132,5 @@ void ssh_gssapi_cleanup_creds(void); + void ssh_gssapi_storecreds(void); + const char *ssh_gssapi_displayname(void); ++void ssh_gssapi_cleanup_global_client(); + + #endif /* GSSAPI */ +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch new file mode 100644 index 0000000000..02b7d7661a --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch @@ -0,0 +1,80 @@ +From 6f9cd19af05aa828d7778cfb047faaed1679e8b7 Mon Sep 17 00:00:00 2001 +From: "djm@openbsd.org" <djm@openbsd.org> +Date: Wed, 16 Sep 2026 00:37:52 +0000 +Subject: [PATCH] upstream: Only store GSSAPI creds when authn succeeds + +Issue report and patch from Moritz Theile + +ok markus, deraadt + +OpenBSD-Commit-ID: 812bbd22b8dd5a1583094ab2b6ff0045e4088467 + +CVE: CVE-2026-106553 CVE-2026-106555 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/6f9cd19af05aa828d7778cfb047faaed1679e8b7] + +Backport Changes: +- Omit upstream OpenBSD revision-only hunks. + +(cherry picked from commit 6f9cd19af05aa828d7778cfb047faaed1679e8b7) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + gss-serv.c | 13 ++++++++++--- + ssh-gss.h | 1 + + 2 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/gss-serv.c b/gss-serv.c +--- a/gss-serv.c ++++ b/gss-serv.c +@@ -52,7 +52,7 @@ extern ServerOptions options; + + static ssh_gssapi_client gssapi_client = + { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER, +- GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL, NULL}}; ++ GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL, NULL}, 0}; + + ssh_gssapi_mech gssapi_null_mech = + { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL}; +@@ -281,6 +281,7 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client) + + gss_buffer_desc ename; + ++ client->userok = 0; + client->mech = NULL; + + while (supported_mechs[i]->name != NULL) { +@@ -332,4 +333,9 @@ ssh_gssapi_storecreds(void) + { ++ if (!gssapi_client.userok) { ++ debug_f("GSSAPI client was not authorized, doing nothing"); ++ return; ++ } ++ + if (options.gss_deleg_creds == 0) { + debug_f("delegate credential is disabled, doing nothing"); + return; +@@ -382,9 +388,10 @@ ssh_gssapi_userok(char *user) + } + if (gssapi_client.mech && gssapi_client.mech->userok) +- if ((*gssapi_client.mech->userok)(&gssapi_client, user)) ++ if ((*gssapi_client.mech->userok)(&gssapi_client, user)) { ++ gssapi_client.userok = 1; + return 1; +- else { ++ } else { + /* Destroy delegated credentials if userok fails */ + ssh_gssapi_cleanup_global_client(); + return 0; + } +diff --git a/ssh-gss.h b/ssh-gss.h +--- a/ssh-gss.h ++++ b/ssh-gss.h +@@ -72,6 +72,7 @@ typedef struct { + gss_cred_id_t creds; + struct ssh_gssapi_mech_struct *mech; + ssh_gssapi_ccache store; ++ int userok; + } ssh_gssapi_client; + + typedef struct ssh_gssapi_mech_struct { +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch new file mode 100644 index 0000000000..0d40de214b --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch @@ -0,0 +1,42 @@ +From d549f99da344c178c5f632a62a6aa60544d7236e Mon Sep 17 00:00:00 2001 +From: "robert@openbsd.org" <robert@openbsd.org> +Subject: [PATCH] upstream: ssh_gssapi_cleanup_global_client() needs a prototype + +CVE: CVE-2026-106553 CVE-2026-106555 +Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/d549f99da344c178c5f632a62a6aa60544d7236e] + +Backport Changes: +- Retain the Wrynose 10.3p1 context and omit upstream OpenBSD revision-only + hunks. + +(cherry picked from commit d549f99da344c178c5f632a62a6aa60544d7236e) +Signed-off-by: Hetvi Thakar <hthakar@cisco.com> +--- + gss-serv.c | 2 +- + ssh-gss.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gss-serv.c b/gss-serv.c +--- a/gss-serv.c ++++ b/gss-serv.c +@@ -368,7 +368,7 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep) + } + + void +-ssh_gssapi_cleanup_global_client() ++ssh_gssapi_cleanup_global_client(void) + { + OM_uint32 lmin; + +diff --git a/ssh-gss.h b/ssh-gss.h +--- a/ssh-gss.h ++++ b/ssh-gss.h +@@ -133,5 +133,5 @@ void ssh_gssapi_cleanup_creds(void); + void ssh_gssapi_storecreds(void); + const char *ssh_gssapi_displayname(void); +-void ssh_gssapi_cleanup_global_client(); ++void ssh_gssapi_cleanup_global_client(void); + + #endif /* GSSAPI */ +-- +2.43.0 diff --git a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb index a2a5a3b924..925b22e129 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.3p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.3p1.bb @@ -43,6 +43,9 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta file://CVE-2026-106585.patch \ file://CVE-2026-106583.patch \ file://CVE-2026-106552.patch \ + file://CVE-2026-106553_CVE-2026-106555_p1.patch \ + file://CVE-2026-106553_CVE-2026-106555_p2.patch \ + file://CVE-2026-106553_CVE-2026-106555_p3.patch \ " SRC_URI[sha256sum] = "56682a36bb92dcf4b4f016fd8ec8e74059b79a8de25c15d670d731e7d18e45f4" -- 2.35.6 ^ permalink raw reply related [flat|nested] 14+ messages in thread
end of thread, other threads:[~2026-11-09 14:30 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-10-16 3:52 [OE-core][wrynose][PATCH 00/10] openssh: Security fixes Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 01/10] openssh: Fix CVE-2026-106584 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-19 18:44 ` Yoann Congal 2026-11-06 11:00 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-11-09 14:30 ` Yoann Congal 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 02/10] openssh: Fix CVE-2026-106586 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 03/10] openssh: Fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 04/10] openssh: Fix CVE-2026-106582 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 05/10] openssh: Fix CVE-2026-106585 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 06/10] openssh: Ignore CVE-2026-106588 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 07/10] openssh: Ignore CVE-2026-106589 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 08/10] openssh: Fix CVE-2026-106583 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 09/10] openssh: Fix CVE-2026-106552 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) 2026-10-16 3:52 ` [OE-core][wrynose][PATCH 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox