Bug 2030790

Summary: CVE-2021-43565 golang: golang.org/x/crypto: empty plaintext packet causes panic [fedora-all]
Product: [Fedora] Fedora Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: golangAssignee: Alejandro Sáez Morollón <asm>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 35CC: amurdaca, asm, deparker, eduardo.ramalho, jakob, jcajka, lemenkov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-19 12:59:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2030787    

Description Guilherme de Almeida Suckevicz 2021-12-09 18:13:02 UTC
This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

NOTE: this issue affects multiple supported versions of Fedora. While only
one tracking bug has been filed, please correct all affected versions at
the same time.  If you need to fix the versions independent of each other,
you may clone this bug as appropriate.

Comment 1 Guilherme de Almeida Suckevicz 2021-12-09 18:13:03 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2030787,2030790

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Alejandro Sáez Morollón 2021-12-21 09:57:05 UTC
Fix unreleased

Upstream issue: https://github.com/golang/go/issues/49932

Comment 3 EduRam 2022-05-19 12:19:38 UTC
Hi! I think this Issue could be closed.
This fix is for a package that is not included on golang build (package crypto/ssh).

⬢[e@toolbox crypto]$ pwd
/var/home/e/wrk/goroot/src/vendor/golang.org/x/crypto

⬢[e@toolbox crypto]$ ll
total 16
-rw-r--r--. 1 e e  174 May 11 09:09 AUTHORS
-rw-r--r--. 1 e e  171 May 11 09:09 CONTRIBUTORS
-rw-r--r--. 1 e e 1479 May 11 09:09 LICENSE
-rw-r--r--. 1 e e 1303 May 11 09:09 PATENTS
drwxr-xr-x. 1 e e  258 May 19 12:03 chacha20
drwxr-xr-x. 1 e e  280 May 19 12:03 chacha20poly1305
drwxr-xr-x. 1 e e   60 May 19 11:56 cryptobyte
drwxr-xr-x. 1 e e   42 May 19 12:03 curve25519
drwxr-xr-x. 1 e e   14 May 11 09:09 hkdf
drwxr-xr-x. 1 e e   28 May 19 12:03 internal

Comment 4 Alejandro Sáez Morollón 2022-05-19 12:59:50 UTC
(In reply to EduRam from comment #3)
> Hi! I think this Issue could be closed.
> This fix is for a package that is not included on golang build (package
> crypto/ssh).

You are 100% right.

Go doesn't use x/crypto/ssh:

https://github.com/golang/go/tree/release-branch.go1.18/src/vendor/golang.org/x/crypto

I'll close this.
Thanks!