Bug 1351070 (CVE-2016-5769) - CVE-2016-5769 php: Integer Overflows in mcrypt_generic() and mdecrypt_generic() resulting in heap overflows
Summary: CVE-2016-5769 php: Integer Overflows in mcrypt_generic() and mdecrypt_generic...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2016-5769
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: 1351180
Blocks: 1351183
TreeView+ depends on / blocked
 
Reported: 2016-06-29 07:22 UTC by Andrej Nemec
Modified: 2021-02-17 03:39 UTC (History)
13 users (show)

Fixed In Version: php 5.5.37, php 5.6.23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-21 10:28:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2016-06-29 07:22:21 UTC
The mcrypt_generic() and mdecrypt_generic() functions are prone to an integer overflow, which result in heap based overflow.

Upstream bug:

https://bugs.php.net/bug.php?id=72455

Upstream patch:

http://git.php.net/?p=php-src.git;a=commitdiff;h=6c5211a0cef0cc2854eaa387e0eb036e012904d0

CVE assignment:

http://seclists.org/oss-sec/2016/q2/589

Comment 1 Andrej Nemec 2016-06-29 12:04:57 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1351180]

Comment 2 Fedora Update System 2016-07-02 15:27:30 UTC
php-5.6.23-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2016-07-02 19:22:19 UTC
php-5.6.23-1.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 Fedora Update System 2016-07-02 19:27:37 UTC
php-5.6.23-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Huzaifa S. Sidhpurwala 2016-07-11 10:21:52 UTC
Analysis:

This is a integer overflow, leading to a heap based buffer overflow in the mcrypt_generic and mdecrypt_generic function. A typical attack scenario is a user supplied file, which is encrypted or decrypted by a php application.

Comment 7 Huzaifa S. Sidhpurwala 2016-07-21 10:28:19 UTC
Statement:

The versions of PHP package shipped with Red Hat Enterprise Linux, do not have support for mcrypt.


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