Bug 1168326 (CVE-2020-7064) - VUL-1: CVE-2020-7064: php5,php72,php7,php53: read one byte of uninitialized memory via malicious data
Summary: VUL-1: CVE-2020-7064: php5,php72,php7,php53: read one byte of uninitialized ...
Status: RESOLVED FIXED
Alias: CVE-2020-7064
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Normal
Target Milestone: ---
Deadline: 2020-05-18
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/256210/
Whiteboard: CVSSv3.1:SUSE:CVE-2020-7064:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-01 12:32 UTC by Alexandros Toptsoglou
Modified: 2020-07-10 09:48 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
POC (80 bytes, application/x-php)
2020-04-01 12:42 UTC, Alexandros Toptsoglou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros Toptsoglou 2020-04-01 12:32:09 UTC
CVE-2020-7064

In PHP versions 7.2.x below 7.2.9, 7.3.x below 7.3.16 and 7.4.x below 7.4.4,
while parsing EXIF data with exif_read_data() function, it is possible for
malicious data to cause PHP to read one byte of uninitialized memory. This could
potentially lead to information disclosure or crash.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-7064
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7064
https://bugs.php.net/bug.php?id=79282
Comment 1 Alexandros Toptsoglou 2020-04-01 12:42:33 UTC
I could not reproduce the issue with valgrind probably the issue is reproducible with ASAN only. The same is reported in the upstream bug [1]. I attach the POC which is taken from the test case. The fix can be found at [2].
All our supported versions are affected. That are: 

php7 --> SLE15-SP2,SLE15,SLE12 
php72 --> SLE12
php53 -->SLE11-SP3
php5 --> SLE10-SP3,SLE11,SLE12 

Factory already ships the fixed version 7.4.4 

[1] https://bugs.php.net/bug.php?id=79282
[2] http://git.php.net/?p=php-src.git;a=commit;h=41f66e2a2cfd611e35be5ac3bf747f0b56161216
Comment 2 Alexandros Toptsoglou 2020-04-01 12:42:56 UTC
Created attachment 834545 [details]
POC
Comment 3 Petr Gajdos 2020-04-07 12:00:13 UTC
Thanks for checking testcase. Considering unusable for us.
Comment 4 Petr Gajdos 2020-04-07 12:00:22 UTC
Packages submitted for: 15sp2/php7, 15/php7, 12/php72, 12/php5, 11sp3/php53, 11/php5, 10sp3/php5 and devel:languages:php:php56/php5.
Comment 5 Petr Gajdos 2020-04-07 12:01:03 UTC
I believe all fixed.
Comment 7 Swamp Workflow Management 2020-05-04 08:01:46 UTC
An update workflow for this issue was started.
This issue was rated as moderate.
Please submit fixed packages until 2020-05-18.
When done, reassign the bug to security-team@suse.de.
https://swamp.suse.de/webswamp/wf/64435
Comment 8 Swamp Workflow Management 2020-05-06 16:30:48 UTC
SUSE-SU-2020:1199-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1168326,1168352
CVE References: CVE-2020-7064,CVE-2020-7066
Sources used:
SUSE Linux Enterprise Module for Web Scripting 15-SP1 (src):    php7-7.2.5-4.55.7, tidy-5.4.0-3.2.1
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src):    php7-7.2.5-4.55.7, tidy-5.4.0-3.2.1
SUSE Linux Enterprise Module for Development Tools 15-SP1 (src):    tidy-5.4.0-3.2.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Swamp Workflow Management 2020-05-11 09:25:24 UTC
openSUSE-SU-2020:0642-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1168326,1168352
CVE References: CVE-2020-7064,CVE-2020-7066
Sources used:
openSUSE Leap 15.1 (src):    php7-7.2.5-lp151.6.25.1, php7-test-7.2.5-lp151.6.25.1, tidy-5.4.0-lp151.3.3.1
Comment 11 Swamp Workflow Management 2020-06-05 14:41:35 UTC
SUSE-SU-2020:1546-1: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 1168326,1168352,1171999
CVE References: CVE-2019-11048,CVE-2020-7064,CVE-2020-7066
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    php72-7.2.5-1.46.1
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    php72-7.2.5-1.46.1
SUSE Linux Enterprise Module for Web Scripting 12 (src):    php72-7.2.5-1.46.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Swamp Workflow Management 2020-06-23 16:13:13 UTC
SUSE-SU-2020:1714-1: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 1168326,1168352,1171999
CVE References: CVE-2019-11048,CVE-2020-7064,CVE-2020-7066
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    php5-5.5.14-109.76.1
SUSE Linux Enterprise Module for Web Scripting 12 (src):    php5-5.5.14-109.76.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 13 Alexandros Toptsoglou 2020-07-10 09:48:20 UTC
Done