Bug 1210673 (CVE-2015-1858) - CVE-2015-1858 qt: segmentation fault in qbmphandler.cpp
Summary: CVE-2015-1858 qt: segmentation fault in qbmphandler.cpp
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-1858
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1210677
Blocks: 1210676
TreeView+ depends on / blocked
 
Reported: 2015-04-10 10:48 UTC by Vasyl Kaigorodov
Modified: 2023-05-12 08:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A memory corruption flaw was found in the way Qt handled certain Bitmap (BMP) files. If a user loaded a specially crafted BMP image file with an application linked against Qt, it could cause the application to crash or, possibly, execute arbitrary code with the privileges of the user running the application.
Clone Of:
Environment:
Last Closed: 2015-12-22 10:53:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Vasyl Kaigorodov 2015-04-10 10:48:37 UTC
Fuzzing test revealed that for certain malformed bmp files, the handler would segfault.

Upstream fix: https://codereview.qt-project.org/#/c/108312/

Acknowledgements:

Red Hat would like to thank Richard Moore of KDE for reporting this issue.

Comment 1 Vasyl Kaigorodov 2015-04-10 10:52:28 UTC
Created qt tracking bugs for this issue:

Affects: fedora-all [bug 1210677]

Comment 2 Stefan Cornelius 2015-04-17 14:20:02 UTC
References:

Upstream advisory:
http://lists.qt-project.org/pipermail/announce/2015-April/000067.html

Comment 3 Fedora Update System 2015-04-21 19:11:40 UTC
qt5-qtbase-5.4.1-9.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Kevin Kofler 2015-04-21 23:35:03 UTC
To the best of my knowledge, Qt 3 is NOT vulnerable to this issue, for the following reason:
The security fix from Qt 4 changes the relevant code sequence in the BMP/DIB reader from "protection, get characters, update p" to "get characters, protection, update p". The Qt 3 code was already using the correct "get characters, protection, update p" order. ("get characters" increments the x and y variables, "protection" checks them.) The character reading code was modified for Qt 4, apparently introducing this bug.

Qt 4 and Qt 5 are vulnerable, and Fedora updates correcting this vulnerability have been issued.

Comment 5 Yaakov Selkowitz 2015-04-23 00:27:19 UTC
Wouldn't this and the others also affect mingw-qt and mingw-qt5-qtbase?

Comment 7 Fedora Update System 2015-04-23 16:10:06 UTC
qt-4.8.6-28.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-04-26 12:43:29 UTC
qt5-qtbase-5.4.1-9.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-04-26 12:45:49 UTC
qt5-qtbase-5.4.1-9.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-04-29 19:18:14 UTC
qt5-qtbase-5.4.1-9.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-04-30 11:45:38 UTC
qt-4.8.6-28.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, 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.