Bug 1305523 (CVE-2016-10712)

Summary: CVE-2016-10712 php: Output of stream_get_meta_data can be falsified by its input
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dmcphers, fedora, hhorak, jialiu, jokerman, jorton, lmeyer, mmaslano, mmccomas, rcollet, webstack-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 5.6.18, php 5.5.32 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-07 12:49:56 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: 1305565    
Bug Blocks: 1305564    

Description Adam Mariš 2016-02-08 13:52:14 UTC
It was found that php_stream_populate_meta_data is not restricted to writing into fields that are not already set, instead php_stream with ops set to php_stream_temp_ops fills the metadata with whatever the user supplies. 

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=6297a117d77fa3a0df2e21ca926a92c231819cd5

Comment 1 Adam Mariš 2016-02-08 15:13:23 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1305565]

Comment 2 Tomas Hoger 2017-09-07 12:49:56 UTC
Limited integrity impact, unlikely to affect many use cases.  No plan to backport the fix to existing products.