Bug 1146212 - (CVE-2019-15140) VUL-1: CVE-2019-15140: ImageMagick: coders/mat.c in ImageMagick 7.0.8-43 Q16 allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by crafting a Matlab image file
(CVE-2019-15140)
VUL-1: CVE-2019-15140: ImageMagick: coders/mat.c in ImageMagick 7.0.8-43 Q16 ...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Minor
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/240405/
CVSSv3:SUSE:CVE-2019-15140:3.3:(AV:L/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-19 15:22 UTC by Wolfgang Frisch
Modified: 2020-07-03 15:43 UTC (History)
1 user (show)

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


Attachments
PoC-huaf_constitute.c_659_1.mat (2.57 KB, application/octet-stream)
2019-08-20 14:47 UTC, Wolfgang Frisch
Details
PoC-huaf_constitute.c_659_2.mat (2.62 KB, application/octet-stream)
2019-08-20 14:47 UTC, Wolfgang Frisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Frisch 2019-08-19 15:22:50 UTC
CVE-2019-15140

coders/mat.c in ImageMagick 7.0.8-43 Q16 allows remote attackers to cause a
denial of service (use-after-free and application crash) or possibly have
unspecified other impact by crafting a Matlab image file that is mishandled in
ReadImage in MagickCore/constitute.c.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-15140
http://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-15140.html
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-15140
https://github.com/ImageMagick/ImageMagick/issues/1554
https://github.com/ImageMagick/ImageMagick/commit/f7206618d27c2e69d977abf40e3035a33e5f6be0
Comment 1 Wolfgang Frisch 2019-08-20 14:47:05 UTC
Created attachment 814765 [details]
PoC-huaf_constitute.c_659_1.mat

PoC-huaf_constitute.c_659_1.mat

Reproducer usage:
convert $FILE /dev/null
Comment 2 Wolfgang Frisch 2019-08-20 14:47:57 UTC
Created attachment 814766 [details]
PoC-huaf_constitute.c_659_2.mat

Reproducer usage:
convert $FILE /dev/null
Comment 4 Petr Gajdos 2019-09-05 08:31:57 UTC
Yes, valgrind for 15,12,11/ImageMagick and asan for 15/ImageMagick is silent, no errors encountered.
Comment 5 Petr Gajdos 2019-09-05 09:32:47 UTC
Patch backported everywhere. 
Will submit for 15,12,11/ImageMagick.
Comment 6 Petr Gajdos 2019-09-05 10:08:03 UTC
GraphicsMagick: ASAN is silent, considering unaffected
Comment 7 Petr Gajdos 2019-09-05 10:26:11 UTC
I believe all fixed.
Comment 10 Swamp Workflow Management 2019-10-25 16:22:21 UTC
SUSE-SU-2019:2785-1: An update that fixes 10 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1146068,1146211,1146212,1146213,1151781,1151782,1151783,1151784,1151785,1151786
CVE References: CVE-2019-14980,CVE-2019-15139,CVE-2019-15140,CVE-2019-15141,CVE-2019-16708,CVE-2019-16709,CVE-2019-16710,CVE-2019-16711,CVE-2019-16712,CVE-2019-16713
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP4 (src):    ImageMagick-6.8.8.1-71.131.1
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    ImageMagick-6.8.8.1-71.131.1
SUSE Linux Enterprise Server 12-SP4 (src):    ImageMagick-6.8.8.1-71.131.1
SUSE Linux Enterprise Desktop 12-SP4 (src):    ImageMagick-6.8.8.1-71.131.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 11 Swamp Workflow Management 2019-11-05 14:15:05 UTC
SUSE-SU-2019:2896-1: An update that fixes 11 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1146065,1146068,1146211,1146212,1146213,1151781,1151782,1151783,1151784,1151785,1151786
CVE References: CVE-2019-14980,CVE-2019-14981,CVE-2019-15139,CVE-2019-15140,CVE-2019-15141,CVE-2019-16708,CVE-2019-16709,CVE-2019-16710,CVE-2019-16711,CVE-2019-16712,CVE-2019-16713
Sources used:
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src):    ImageMagick-7.0.7.34-3.72.1
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src):    ImageMagick-7.0.7.34-3.72.1
SUSE Linux Enterprise Module for Development Tools 15-SP1 (src):    ImageMagick-7.0.7.34-3.72.1
SUSE Linux Enterprise Module for Development Tools 15 (src):    ImageMagick-7.0.7.34-3.72.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP1 (src):    ImageMagick-7.0.7.34-3.72.1
SUSE Linux Enterprise Module for Desktop Applications 15 (src):    ImageMagick-7.0.7.34-3.72.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 2019-11-14 20:12:11 UTC
SUSE-SU-2019:2785-2: An update that fixes 10 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1146068,1146211,1146212,1146213,1151781,1151782,1151783,1151784,1151785,1151786
CVE References: CVE-2019-14980,CVE-2019-15139,CVE-2019-15140,CVE-2019-15141,CVE-2019-16708,CVE-2019-16709,CVE-2019-16710,CVE-2019-16711,CVE-2019-16712,CVE-2019-16713
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP5 (src):    ImageMagick-6.8.8.1-71.131.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    ImageMagick-6.8.8.1-71.131.1
SUSE Linux Enterprise Server 12-SP5 (src):    ImageMagick-6.8.8.1-71.131.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 Swamp Workflow Management 2019-11-15 11:12:13 UTC
openSUSE-SU-2019:2515-1: An update that fixes 11 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1146065,1146068,1146211,1146212,1146213,1151781,1151782,1151783,1151784,1151785,1151786
CVE References: CVE-2019-14980,CVE-2019-14981,CVE-2019-15139,CVE-2019-15140,CVE-2019-15141,CVE-2019-16708,CVE-2019-16709,CVE-2019-16710,CVE-2019-16711,CVE-2019-16712,CVE-2019-16713
Sources used:
openSUSE Leap 15.1 (src):    ImageMagick-7.0.7.34-lp151.7.12.1
Comment 14 Swamp Workflow Management 2019-11-16 14:11:22 UTC
openSUSE-SU-2019:2519-1: An update that fixes 11 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1146065,1146068,1146211,1146212,1146213,1151781,1151782,1151783,1151784,1151785,1151786
CVE References: CVE-2019-14980,CVE-2019-14981,CVE-2019-15139,CVE-2019-15140,CVE-2019-15141,CVE-2019-16708,CVE-2019-16709,CVE-2019-16710,CVE-2019-16711,CVE-2019-16712,CVE-2019-16713
Sources used:
openSUSE Leap 15.0 (src):    ImageMagick-7.0.7.34-lp150.2.41.1
Comment 15 Marcus Meissner 2020-07-03 15:43:47 UTC
released