[GDK] patch - avoid integer overflow when allocating a large block of memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTK+ |
Fix Released
|
Low
|
|||
gtk+2.0 (Debian) |
Fix Released
|
Unknown
|
|||
gtk+2.0 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Marc Deslauriers | ||
Trusty |
Fix Released
|
Medium
|
Marc Deslauriers | ||
Wily |
Fix Released
|
Medium
|
Marc Deslauriers | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
gtk+3.0 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Marc Deslauriers | ||
Trusty |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Due to a logic error, an attempt to allocate a large block of memory fails in gdk_cairo_
This issue had been fixed [2] in GTK+3, but GTK+2 apps that use the mentioned function still crash when trying to allocate a lot of memory. An example of such app is eom (Eye of MATE), an image viewer, which crashes when trying to load a large image.
I propose fixing it in current Ubuntu releases with the patch which fixes the crash.
The debdiffs are in the attachments in the comments below.
[Test Case]
Steps to reproduce:
1. Have a 64-bit installation of Ubuntu.
2. Install eom if it isn't installed.
3. Download the archive from the attachment of this post and unpack it. (Firefox doesn't allow me to upload image as is - tries to make thumbnail of it right in the file open dialog, then crashes.)
4. Open the unpacked image (27000_
5. eom crashes. The full backtrace is at [3].
You'll also see an error message: "failed to allocate 184467440723305
[Regression Potential]
After several months of testing the patch in Debian Jessie, Debian Testing and Ubuntu 14.04, I haven't noticed any regressions.
[1] https:/
[2] https:/
[3] https:/
Related branches
CVE References
Changed in gtk+2.0 (Debian): | |
status: | Unknown → New |
Changed in gtk+2.0 (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in gtk: | |
importance: | Unknown → Low |
status: | Unknown → Fix Released |
Changed in gtk+3.0 (Ubuntu Precise): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in gtk+3.0 (Ubuntu Trusty): | |
status: | New → Fix Released |
Changed in gtk+3.0 (Ubuntu Wily): | |
status: | New → Fix Released |
Changed in gtk+3.0 (Ubuntu Xenial): | |
status: | New → Fix Released |
Changed in gtk+2.0 (Debian): | |
status: | New → Confirmed |
Changed in gtk+3.0 (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in gtk+3.0 (Ubuntu Wily): | |
importance: | Undecided → Medium |
Changed in gtk+3.0 (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in gtk+2.0 (Debian): | |
status: | Confirmed → Fix Committed |
Changed in gtk+2.0 (Debian): | |
status: | Fix Committed → Fix Released |
The attachment "debdiff with the fix for Precise" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]