Bug 1926936 (CVE-2021-26825) - CVE-2021-26825 godot: integer overflow when loading specially crafted .TGA image files
Summary: CVE-2021-26825 godot: integer overflow when loading specially crafted .TGA im...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2021-26825
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1926937 1926938
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-09 17:31 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-09 22:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-09 22:09:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-02-09 17:31:10 UTC
An integer overflow issue exists in Godot Engine up to v3.2 that can be triggered when loading specially crafted.TGA image files. The vulnerability exists in ImageLoaderTGA::load_image() function at line: const size_t buffer_size = (tga_header.image_width * tga_header.image_height) * pixel_size; The bug leads to Dynamic stack buffer overflow. Depending on the context of the application, attack vector can be local or remote, and can lead to code execution and/or system crash.

Reference:
https://github.com/godotengine/godot/pull/45702

Upstream patch:
https://github.com/godotengine/godot/pull/45702/commits/113b5ab1c45c01b8e6d54d13ac8876d091f883a8

Comment 1 Guilherme de Almeida Suckevicz 2021-02-09 17:31:32 UTC
Created godot tracking bugs for this issue:

Affects: epel-7 [bug 1926938]
Affects: fedora-all [bug 1926937]

Comment 2 Product Security DevOps Team 2021-02-09 22:09:50 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


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