Bug 1190975 (CVE-2021-41617) - VUL-0: CVE-2021-41617: openssh-openssl1,openssh: privilege escalation when AuthorizedKeysCommand/AuthorizedPrincipalsCommand are configured
Summary: VUL-0: CVE-2021-41617: openssh-openssl1,openssh: privilege escalation when Au...
Status: RESOLVED FIXED
Alias: CVE-2021-41617
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P1 - Urgent : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/310923/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-41617:7.0:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 15:14 UTC by Gabriele Sonnu
Modified: 2024-11-25 04:38 UTC (History)
10 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
backport of CVE-2021-41617 patchset (1.94 KB, application/gzip)
2021-11-24 16:25 UTC, Ali Abdallah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriele Sonnu 2021-09-27 15:14:49 UTC
sshd in OpenSSH 6.2 through 8.x before 8.8, when certain non-default
configurations are used, allows privilege escalation because supplemental groups
are not initialized as expected. Helper programs for AuthorizedKeysCommand and
AuthorizedPrincipalsCommand may run with privileges associated with group
memberships of the sshd process, if the configuration specifies running the
command as a different user.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-41617
https://www.openwall.com/lists/oss-security/2021/09/26/1
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41617
http://www.cvedetails.com/cve/CVE-2021-41617/
https://www.openssh.com/txt/release-8.8
https://www.openssh.com/security.html
Comment 1 Gabriele Sonnu 2021-09-27 15:17:39 UTC
Affected Packages:

 - SUSE:Carwos:1/openssh           8.1p1
 - SUSE:SLE-11-SP1:Update/openssh  6.6p1
 - SUSE:SLE-11-SP3:Update/openssh  6.6p1
 - SUSE:SLE-11-SP4:Update/openssh  6.6p1
 - SUSE:SLE-12-SP2:Update/openssh  7.2p2
 - SUSE:SLE-12-SP4:Update/openssh  7.2p2
 - SUSE:SLE-15-SP1:Update/openssh  7.9p1
 - SUSE:SLE-15-SP2:Update/openssh  8.1p1
 - SUSE:SLE-15-SP3:Update/openssh  8.4p1
 - SUSE:SLE-15:Update/openssh      7.6p1
 - openSUSE:Factory/openssh        8.4p1


I found a couple of related commits, but I may have missed something. Please double check.

https://github.com/openssh/openssh-portable/commit/f3cbe43e28fe71427d41cfe3a17125b972710455
https://github.com/openssh/openssh-portable/commit/bf944e3794eff5413f2df1ef37cddf96918c6bde
Comment 2 Marcus Meissner 2021-11-24 09:08:08 UTC
can you please submit fixed packages?
Comment 3 Ali Abdallah 2021-11-24 16:25:55 UTC
Created attachment 854015 [details]
backport of  CVE-2021-41617 patchset

FYI, I got an L3 request to fix CVE-2021-41617 on 12-SP5. I backported the upstream fixes to 12-SP5 (relatively trivial), and while on it, I also backported the fixes to 11, 15-SP0, 15-SP1, 15-SP2 and 15-SP3, so attaching them here, hopping that helps.
Comment 4 Hans Petter Jansson 2021-11-26 03:31:55 UTC
Thanks, Gabriele and Ali.

Submitted for:

SUSE:SLE-11-SP1:Update/openssh
SUSE:SLE-11-SP3:Update/openssh
SUSE:SLE-11-SP4:Update/openssh
SUSE:SLE-12-SP2:Update/openssh
SUSE:SLE-12-SP4:Update/openssh
SUSE:SLE-12:Update/openssh
SUSE:SLE-15-SP1:Update/openssh
SUSE:SLE-15-SP2:Update/openssh
SUSE:SLE-15-SP3:Update/openssh
SUSE:SLE-15:Update/openssh

Not submitted for:

openSUSE:Factory/openssh - now has a newer unaffected version
SUSE:Carwos:1/openssh - not gotten from mbranch. Is this needed?
Comment 6 Ali Abdallah 2021-11-26 08:10:37 UTC
(In reply to Hans Petter Jansson from comment #4)
> Thanks, Gabriele and Ali.
> 
> Submitted for:
> SUSE:SLE-15-SP3:Update/openssh

Many thanks Hans, for 15-SP3, I would also include the fix for bug 1183137, it is a tiny one line fix from 'OpenBSD 6.8 errata 015'.
Comment 9 Swamp Workflow Management 2021-12-01 21:26:47 UTC
SUSE-SU-2021:14847-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS (src):    openssh-6.6p1-36.26.1, openssh-askpass-gnome-6.6p1-36.26.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    openssh-6.6p1-36.26.1, openssh-askpass-gnome-6.6p1-36.26.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Swamp Workflow Management 2021-12-02 12:12:37 UTC
SUSE-SU-2021:3875-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    openssh-7.2p2-78.13.1, openssh-askpass-gnome-7.2p2-78.13.1
SUSE OpenStack Cloud 9 (src):    openssh-7.2p2-78.13.1, openssh-askpass-gnome-7.2p2-78.13.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    openssh-7.2p2-78.13.1, openssh-askpass-gnome-7.2p2-78.13.1
SUSE Linux Enterprise Server 12-SP5 (src):    openssh-7.2p2-78.13.1, openssh-askpass-gnome-7.2p2-78.13.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    openssh-7.2p2-78.13.1, openssh-askpass-gnome-7.2p2-78.13.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Swamp Workflow Management 2021-12-03 14:29:33 UTC
SUSE-SU-2021:3887-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15 (src):    openssh-7.6p1-9.44.1, openssh-askpass-gnome-7.6p1-9.44.1
SUSE Linux Enterprise Server 15-LTSS (src):    openssh-7.6p1-9.44.1, openssh-askpass-gnome-7.6p1-9.44.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    openssh-7.6p1-9.44.1, openssh-askpass-gnome-7.6p1-9.44.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    openssh-7.6p1-9.44.1, openssh-askpass-gnome-7.6p1-9.44.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Swamp Workflow Management 2021-12-06 17:27:56 UTC
SUSE-SU-2021:3951-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 8 (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
SUSE OpenStack Cloud 8 (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
SUSE Linux Enterprise Server for SAP 12-SP3 (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
SUSE Linux Enterprise Server 12-SP3-LTSS (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1
HPE Helion Openstack 8 (src):    openssh-7.2p2-74.60.1, openssh-askpass-gnome-7.2p2-74.60.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 13 Swamp Workflow Management 2021-12-06 17:33:41 UTC
openSUSE-SU-2021:3950-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    openssh-8.4p1-3.6.1, openssh-askpass-gnome-8.4p1-3.6.1
Comment 14 Swamp Workflow Management 2021-12-06 17:55:27 UTC
SUSE-SU-2021:3947-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE Enterprise Storage 6 (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1
SUSE CaaS Platform 4.0 (src):    openssh-7.9p1-6.28.1, openssh-askpass-gnome-7.9p1-6.28.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 15 Swamp Workflow Management 2021-12-06 18:21:53 UTC
SUSE-SU-2021:3950-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE MicroOS 5.1 (src):    openssh-8.4p1-3.6.1
SUSE Linux Enterprise Module for Server Applications 15-SP3 (src):    openssh-8.4p1-3.6.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP3 (src):    openssh-askpass-gnome-8.4p1-3.6.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    openssh-8.4p1-3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 16 Swamp Workflow Management 2021-12-23 14:41:18 UTC
SUSE-SU-2021:14870-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SECURITY (src):    openssh-openssl1-6.6p1-19.12.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 21 Swamp Workflow Management 2022-03-10 20:25:03 UTC
SUSE-SU-2022:0805-1: An update that fixes one vulnerability is now available.

Category: security (important)
Bug References: 1190975
CVE References: CVE-2021-41617
JIRA References: 
Sources used:
SUSE Manager Server 4.1 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Manager Retail Branch Server 4.1 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Manager Proxy 4.1 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise Realtime Extension 15-SP2 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise Micro 5.0 (src):    openssh-8.1p1-5.21.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1
SUSE Enterprise Storage 7 (src):    openssh-8.1p1-5.21.1, openssh-askpass-gnome-8.1p1-5.21.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 22 Hans Petter Jansson 2022-03-29 22:56:05 UTC
All done.
Comment 27 Jia Zhaocong 2022-10-20 01:49:01 UTC
Cleaning up GNOME CVE backlog. The fix has been submitted and accepted. Assign back to security team.