Bug 2085236 - CVE-2022-24675 golang-github-openprinting-ipp-usb: golang: encoding/pem: fix stack overflow in Decode [fedora-35]
Summary: CVE-2022-24675 golang-github-openprinting-ipp-usb: golang: encoding/pem: fix ...
Keywords:
Status: CLOSED DUPLICATE of bug 2085646
Alias: None
Product: Fedora
Classification: Fedora
Component: golang-github-openprinting-ipp-usb
Version: 35
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-12 20:48 UTC by Sage McTaggart
Modified: 2022-05-16 10:05 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-16 10:05:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sage McTaggart 2022-05-12 20:48:27 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-35.

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.

Comment 1 Sage McTaggart 2022-05-12 20:48:28 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=2077688,2085236

# 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 Zdenek Dohnal 2022-05-13 06:13:47 UTC
Hi Ane,

thank you for reporting the bug!

Unfortunately, the bug is missing the link to the original vulnerability bug - it would be great if you added it.

Additionally I will need a link to the CVE bug for golang - since I can only fix the vulnerability in my package once the fix arrives into golang or create a side tag/buildroot override with fixed golang, and build my package with it.

Comment 3 Sage McTaggart 2022-05-13 17:41:54 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=2077688 Here you go! Hope this helps. 


encoding/pem: fix stack overflow in Decode

A large (more than 5 MB) PEM input can cause a stack overflow in Decode, leading the program to crash.

Thanks to Juho Nurminen of Mattermost who reported the error.

This is CVE-2022-24675 and https://go.dev/issue/51853.

Patch is here: https://go-review.googlesource.com/c/go/+/399816/


(In reply to Zdenek Dohnal from comment #2)
> Hi Ane,
> 
> thank you for reporting the bug!
> 
> Unfortunately, the bug is missing the link to the original vulnerability bug
> - it would be great if you added it.
> 
> Additionally I will need a link to the CVE bug for golang - since I can only
> fix the vulnerability in my package once the fix arrives into golang or
> create a side tag/buildroot override with fixed golang, and build my package
> with it.

Comment 4 Zdenek Dohnal 2022-05-16 09:35:43 UTC
Thank you for the link! It would suffice to add the link into 'Blocks' field of this bug, no need to create a new bugzilla.

Additionally it would be great to have golang bug for Fedora product in 'Blocks' field as well, since the golang library is linked statically and I need to have my package to be built with the fixed golang.

Comment 5 Zdenek Dohnal 2022-05-16 10:05:18 UTC

*** This bug has been marked as a duplicate of bug 2085646 ***


Note You need to log in before you can comment on or make changes to this bug.