Bug 1172491 - (CVE-2020-13790) VUL-1: CVE-2020-13790: libjpeg-turbo: heap-based buffer over-read in get_rgb_row() in rdppm.c via a malformed PPM input file
(CVE-2020-13790)
VUL-1: CVE-2020-13790: libjpeg-turbo: heap-based buffer over-read in get_rgb_...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P4 - Low : Normal
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/260630/
CVSSv3.1:SUSE:CVE-2020-13790:5.3:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-04 05:31 UTC by Wolfgang Frisch
Modified: 2021-06-17 08:59 UTC (History)
1 user (show)

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


Attachments
libjpeg-turbo-CVE-2020-13790-reproducer.zip (2.52 KB, application/octet-stream)
2020-06-04 05:44 UTC, Wolfgang Frisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Wolfgang Frisch 2020-06-04 05:44:04 UTC
Created attachment 838489 [details]
libjpeg-turbo-CVE-2020-13790-reproducer.zip

QA REPRODUCER:

valgrind -q cjpeg ./libjpeg-turbo-CVE-2020-13790-reproducer
Comment 3 Petr Gajdos 2020-06-08 11:49:26 UTC
BEFORE

Indeed:

TW,15,12/libjpeg-turbo and 10sp3,11/jpeg:

$ valgrind  -q cjpeg libjpeg-turbo-CVE-2020-13790-reproducer
==2280== Invalid read of size 1
==2280==    at 0x10B7C7: get_rgb_row (rdppm.c:434)
==2280==    by 0x10A5C3: main (cjpeg.c:664)
==2280==  Address 0x4a9ed36 is 15 bytes after a block of size 16,151 alloc'd
==2280==    at 0x483877F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==2280==    by 0x488B202: alloc_small (jmemmgr.c:318)
==2280==    by 0x10F273: jinit_read_ppm (rdppm.c:757)
==2280==    by 0x10A546: UnknownInlinedFun (cjpeg.c:118)
==2280==    by 0x10A546: main (cjpeg.c:636)
==2280== 
==2280== Invalid read of size 1
==2280==    at 0x10B7D2: get_rgb_row (rdppm.c:434)
==2280==    by 0x10A5C3: main (cjpeg.c:664)
==2280==  Address 0x4a9ed36 is 15 bytes after a block of size 16,151 alloc'd
==2280==    at 0x483877F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==2280==    by 0x488B202: alloc_small (jmemmgr.c:318)
==2280==    by 0x10F273: jinit_read_ppm (rdppm.c:757)
==2280==    by 0x10A546: UnknownInlinedFun (cjpeg.c:118)
==2280==    by 0x10A546: main (cjpeg.c:636)
==2280== 
==2280== Invalid read of size 1
==2280==    at 0x10B7E8: get_rgb_row (rdppm.c:434)
==2280==    by 0x10A5C3: main (cjpeg.c:664)
==2280==  Address 0x4a9ed36 is 15 bytes after a block of size 16,151 alloc'd
==2280==    at 0x483877F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==2280==    by 0x488B202: alloc_small (jmemmgr.c:318)
==2280==    by 0x10F273: jinit_read_ppm (rdppm.c:757)
==2280==    by 0x10A546: UnknownInlinedFun (cjpeg.c:118)
==2280==    by 0x10A546: main (cjpeg.c:636)
==2280== 
Premature end of input file
$


PATCH

referenced in comment 0


AFTER

$ valgrind  -q cjpeg libjpeg-turbo-CVE-2020-13790-reproducer
Premature end of input file
$

[11,10sp3: use of uninitialized value remains, invalid read gone]
Comment 4 Petr Gajdos 2020-06-08 11:57:41 UTC
Submitted for TW,15,12/libjpeg-turbo and 11,10sp3/jpeg.

I believe all fixed.
Comment 5 OBSbugzilla Bot 2020-06-08 12:30:07 UTC
This is an autogenerated message for OBS integration:
This bug (1172491) was mentioned in
https://build.opensuse.org/request/show/812575 Factory / libjpeg-turbo
Comment 8 Swamp Workflow Management 2020-06-24 12:57:01 UTC
An update workflow for this issue was started.
This issue was rated as low.
Please submit fixed packages until 2020-07-22.
When done, reassign the bug to security-team@suse.de.
https://swamp.suse.de/webswamp/wf/64472
Comment 9 Swamp Workflow Management 2020-09-08 16:14:00 UTC
SUSE-SU-2020:2570-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1172491
CVE References: CVE-2020-13790
JIRA References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    libjpeg-turbo-1.5.3-31.22.2, libjpeg62-turbo-1.5.3-31.22.2
SUSE Linux Enterprise Server 12-SP5 (src):    libjpeg-turbo-1.5.3-31.22.2, libjpeg62-turbo-1.5.3-31.22.2

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 10 Swamp Workflow Management 2020-09-08 16:14:50 UTC
SUSE-SU-2020:2569-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1172491
CVE References: CVE-2020-13790
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP2 (src):    libjpeg-turbo-1.5.3-5.15.7
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP1 (src):    libjpeg-turbo-1.5.3-5.15.7
SUSE Linux Enterprise Module for Desktop Applications 15-SP2 (src):    libjpeg-turbo-1.5.3-5.15.7
SUSE Linux Enterprise Module for Desktop Applications 15-SP1 (src):    libjpeg-turbo-1.5.3-5.15.7
SUSE Linux Enterprise Module for Basesystem 15-SP2 (src):    libjpeg-turbo-1.5.3-5.15.7, libjpeg62-turbo-1.5.3-5.15.7
SUSE Linux Enterprise Module for Basesystem 15-SP1 (src):    libjpeg-turbo-1.5.3-5.15.7, libjpeg62-turbo-1.5.3-5.15.7

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 2020-09-11 19:14:37 UTC
openSUSE-SU-2020:1413-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1172491
CVE References: CVE-2020-13790
JIRA References: 
Sources used:
openSUSE Leap 15.1 (src):    libjpeg-turbo-1.5.3-lp151.6.6.1, libjpeg62-turbo-1.5.3-lp151.6.6.1
Comment 12 Wolfgang Frisch 2020-09-15 09:13:03 UTC
Resolved.
Comment 13 Swamp Workflow Management 2020-09-19 16:23:48 UTC
openSUSE-SU-2020:1458-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1172491
CVE References: CVE-2020-13790
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    libjpeg-turbo-1.5.3-lp152.8.3.1, libjpeg62-turbo-1.5.3-lp152.8.3.1