Bug 2052010 - CVE-2022-0546 blender: Out-of-bounds memory access due to malformed HDR image file [fedora-all]
Summary: CVE-2022-0546 blender: Out-of-bounds memory access due to malformed HDR image...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: blender
Version: 34
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CVE-2022-0546
TreeView+ depends on / blocked
 
Reported: 2022-02-08 14:11 UTC by Mauro Matteo Cascella
Modified: 2022-05-11 01:34 UTC (History)
5 users (show)

Fixed In Version: blender-2.93.8-2.fc34
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-11 01:34:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2022-02-08 14:11:42 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 Mauro Matteo Cascella 2022-02-08 14:11:44 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=high

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2052008,2052010

# 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 Ben Beasley 2022-04-08 14:30:10 UTC
https://nvd.nist.gov/vuln/detail/CVE-2022-0545
https://developer.blender.org/T94629

Based on upstream git, the fix is included in 3.1.0 and later releases (F35, F36, F37), and in 2.93.8 final (F34), so it appears that this is already resolved in current Fedora releases.

> commit e07f16776bca5e9494e6b143170f31d5eeb160ce
> Author: Jesse Yurkovich <jesse.y>
> Date:   Thu Jan 6 21:35:04 2022 -0800
> 
>     Fix T94629: The IMB_flip API would fail with large images
>     
>     Fix IMB_flip[xy] to handle cases where integer overflow might occur when
>     given sufficiently large image dimensions.
>     
>     All of these fixes were of a similar class where the intermediate
>     sub-expression would overflow silently. Widen the types as necessary.
>     
>     Differential Revision: https://developer.blender.org/D13744

Comment 3 Ben Beasley 2022-04-08 16:06:05 UTC
Sorry, I mixed this up with bug 2052014 for CVE-2022-0545. Corrected analysis is below:

https://nvd.nist.gov/vuln/detail/CVE-2022-0546
https://developer.blender.org/T94572

Based on upstream git, the fix is included in 3.1.0 and later releases (F35, F36, F37), but NOT in 2.93.8 final (F34).

> commit 77616082f44da5258faf9ec0d53618c721b88c62
> Author: Jesse Yurkovich <jesse.y>
> Date:   Tue Jan 11 20:48:32 2022 -0800
> 
>     Fix T89542: Crash when loading certain .hdr files
>     
>     The direct cause of the bug in question was passing in the raw memory
>     buffer to sscanf. It should be called with a null-terminated buffer;
>     which isn't guaranteed when blindly trusting the file data.
>     
>     When attempting to fuzz this code path, a variety of other crashes were
>     discovered and fixed.
>     
>     Differential Revision: https://developer.blender.org/D11952

I have therefore set the Version to 34, since that appears to be the only affected current Fedora release.

Comment 5 Fedora Update System 2022-05-02 18:47:34 UTC
FEDORA-2022-d9d630891d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d9d630891d

Comment 6 Fedora Update System 2022-05-03 14:32:26 UTC
FEDORA-2022-d9d630891d has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-d9d630891d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-d9d630891d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-05-11 01:34:03 UTC
FEDORA-2022-d9d630891d has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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