Bug 1377361 (CVE-2016-7415)

Summary: CVE-2016-7415 icu: Stack based buffer overflow in locid.cpp
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, caolanm, denis.arnaud_fedora, dmcphers, dmoppert, dsirrine, erack, erik-fedora, jialiu, jokerman, kseifried, lmeyer, mfabian, mmccomas, rmeggins, slawomir, tiwillia, tuxator
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: icu 58.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-30 03:50:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1377362, 1377363, 1377364    
Bug Blocks: 1360344    

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