Bug 1377361 (CVE-2016-7415) - CVE-2016-7415 icu: Stack based buffer overflow in locid.cpp
Summary: CVE-2016-7415 icu: Stack based buffer overflow in locid.cpp
Status: CLOSED WONTFIX
Alias: CVE-2016-7415
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: impact=moderate,public=20160903,repor...
Keywords: Security
Depends On: 1377363 1377364 1377362
Blocks: 1360344
TreeView+ depends on / blocked
 
Reported: 2016-09-19 13:30 UTC by Adam Mariš
Modified: 2016-11-30 03:50 UTC (History)
18 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2016-11-30 03:50:33 UTC


Attachments (Terms of Use)

Description Adam Mariš 2016-09-19 13:30:18 UTC
It was found that big locale string causes stack based overflow inside libicu.

PHP bug:

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

CVE assignment:

http://seclists.org/oss-sec/2016/q3/518

Comment 1 Adam Mariš 2016-09-19 13:31:23 UTC
Created mingw-icu tracking bugs for this issue:

Affects: fedora-all [bug 1377363]
Affects: epel-7 [bug 1377364]

Comment 2 Adam Mariš 2016-09-19 13:31:36 UTC
Created icu tracking bugs for this issue:

Affects: fedora-all [bug 1377362]

Comment 3 Doran Moppert 2016-09-29 04:06:40 UTC
If there is an upstream icu bug, it is still private.  I have attempted to repro on rhel-7.2 based on variants of the PHP function, but no success so far.

PHP upstream crash report shows a stack overflow in Locale::Locale(char*).  RHEL builds icu with -fstack-protector, which prevents traditional code execution vectors through stack smashing.  I don't see any dangerous adjacent stack contents in that constructor, so the impact here is limited to a crash.

Comment 5 Doran Moppert 2016-11-04 08:36:45 UTC
Upstream bug (ICU) (private as at 2016-11-04):

http://bugs.icu-project.org/trac/ticket/12745


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