Bug 1311882 (CVE-2014-9766) - CVE-2014-9766 pixman: integer overflow in create_bits function
Summary: CVE-2014-9766 pixman: integer overflow in create_bits function
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2014-9766
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: 972647
Blocks: 1312311
TreeView+ depends on / blocked
 
Reported: 2016-02-25 09:26 UTC by Andrej Nemec
Modified: 2021-02-17 04:17 UTC (History)
23 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-05 02:20:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-02-25 09:26:31 UTC
In create_bits() both height and stride are ints, so the result is
also an int, which will overflow if height or stride are big enough
and size_t is bigger than int.

External references:

http://lists.freedesktop.org/archives/pixman/2014-April/003244.html

CVE assignment:

http://seclists.org/oss-sec/2016/q1/425

Comment 1 Doran Moppert 2016-06-10 00:56:36 UTC
Updated affects list for RHEL components.

Not affected because they already have the patch:
    rhel-6/pixman
    rhel-7/pixman
    rhel-7/qemu-guest-agent

Not affected because the guard is _pixman_multiply_overflows_int which
matches the type of each operand and thus the result of the multiplication:
    rhel-5/pixman
    rhel-5/qpixman
    rhel-7/qemu-qvm

Removed from whiteboard because these packages don't appear to exist in
current manifests:
    epel-7/mingw-pixman
    rhev-m-3/mingw-virt-viewer

Ping Kurt - not sure if I'm treating rhev-m correctly or looking in the
right places to audit.

Comment 5 Kurt Seifried 2016-06-10 16:09:09 UTC
What info is needed?

Comment 8 Doran Moppert 2016-07-05 02:17:38 UTC
Based on assertions from Mozilla that they believe their products only use the affected code in a safe context (with bounded width & height), and testing with firefox and thunderbird that has failed to disprove this assertion, I am marking Firefox, Thunderbird and Xulrunner as unaffected.

Testing has shown that the calls through Thebes only reach pixman with dimensions limited by display size.  Since exploitation requires a buffer of around at least 33MP, this can be considered safe.  Ditto for print to PDF/PS with any close to reasonable page size / DPI.


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