Bug 1185905 - (CVE-2021-32493) VUL-0: CVE-2021-32493: djvulibre: Heap buffer overflow in function DJVU:GBitmap:decode() via crafted djvu file
(CVE-2021-32493)
VUL-0: CVE-2021-32493: djvulibre: Heap buffer overflow in function DJVU:GBitm...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Major
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/283899/
CVSSv3.1:SUSE:CVE-2021-32493:7.5:(AV:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-11 10:31 UTC by Gianluca Gabrielli
Modified: 2021-07-11 10:17 UTC (History)
1 user (show)

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


Attachments
Patch (648 bytes, patch)
2021-05-11 10:33 UTC, Gianluca Gabrielli
Details | Diff
PoC (768 bytes, image/vnd.djvu)
2021-05-11 10:33 UTC, Gianluca Gabrielli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2021-05-11 10:31:57 UTC
CVE-2021-32493

A flaw was found in latest djavulibre. A heap buffer overflow in function DJVU::GBitmap::decode() via crafted djvu file may lead to application crash and other consequences.

References:

https://bugzilla.redhat.com/show_bug.cgi?id=1943424

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1943690
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-32493
Comment 1 Gianluca Gabrielli 2021-05-11 10:32:45 UTC
Affected packages:

- SUSE:SLE-11:Update/djvulibre       3.5.21
- SUSE:SLE-12:Update/djvulibre       3.5.25.3
- SUSE:SLE-15-SP2:Update/djvulibre   3.5.27
- SUSE:SLE-15:Update/djvulibre       3.5.27
- openSUSE:Factory/djvulibre         3.5.28
Comment 2 Gianluca Gabrielli 2021-05-11 10:33:38 UTC
Created attachment 849251 [details]
Patch
Comment 3 Gianluca Gabrielli 2021-05-11 10:33:53 UTC
Created attachment 849252 [details]
PoC
Comment 4 Petr Gajdos 2021-05-12 09:06:11 UTC
BEFORE

TW,15,12,11/djvulibre

$ ddjvu CVE-2021-32493-poc.djvu 
free(): invalid pointer
Aborted (core dumped)
$
[or similar]


PATCH

in comment 2, no upstream commit in git so far
applies everywhere


AFTER

TW,15,12,11/djvulibre

$ ddjvu CVE-2021-32493-poc.djvu 
ddjvu: GBitmap: row size exceeds maximum (corrupted file?)
ddjvu: Cannot decode page 1.
$
Comment 5 Petr Gajdos 2021-05-12 10:12:06 UTC
Will submit for TW,15sp2,15,12,11/djvulibre.
Comment 6 Petr Gajdos 2021-05-12 10:20:52 UTC
Packages submitted. I believe all fixed.
Comment 8 OBSbugzilla Bot 2021-05-12 12:10:07 UTC
This is an autogenerated message for OBS integration:
This bug (1185905) was mentioned in
https://build.opensuse.org/request/show/892460 Factory / djvulibre
Comment 9 Swamp Workflow Management 2021-05-19 16:22:19 UTC
SUSE-SU-2021:1649-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1185895,1185900,1185904,1185905
CVE References: CVE-2021-32490,CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
SUSE Manager Server 4.0 (src):    djvulibre-3.5.27-3.11.1
SUSE Manager Retail Branch Server 4.0 (src):    djvulibre-3.5.27-3.11.1
SUSE Manager Proxy 4.0 (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise Server for SAP 15 (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise Server 15-LTSS (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    djvulibre-3.5.27-3.11.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    djvulibre-3.5.27-3.11.1
SUSE Enterprise Storage 6 (src):    djvulibre-3.5.27-3.11.1
SUSE CaaS Platform 4.0 (src):    djvulibre-3.5.27-3.11.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 10 Swamp Workflow Management 2021-05-19 16:23:37 UTC
SUSE-SU-2021:14728-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1185900,1185904,1185905
CVE References: CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS (src):    djvulibre-3.5.21-3.9.1
SUSE Linux Enterprise Point of Sale 11-SP3 (src):    djvulibre-3.5.21-3.9.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    djvulibre-3.5.21-3.9.1
SUSE Linux Enterprise Debuginfo 11-SP3 (src):    djvulibre-3.5.21-3.9.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 2021-05-19 16:35:34 UTC
SUSE-SU-2021:1641-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1185895,1185900,1185904,1185905
CVE References: CVE-2021-32490,CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src):    djvulibre-3.5.27-11.3.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP2 (src):    djvulibre-3.5.27-11.3.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP3 (src):    djvulibre-3.5.27-11.3.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP2 (src):    djvulibre-3.5.27-11.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 12 Swamp Workflow Management 2021-05-19 16:38:21 UTC
SUSE-SU-2021:1645-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1185900,1185904,1185905
CVE References: CVE-2019-18804,CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    djvulibre-3.5.25.3-5.9.1
SUSE OpenStack Cloud Crowbar 8 (src):    djvulibre-3.5.25.3-5.9.1
SUSE OpenStack Cloud 9 (src):    djvulibre-3.5.25.3-5.9.1
SUSE OpenStack Cloud 8 (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server for SAP 12-SP3 (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server 12-SP5 (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server 12-SP3-LTSS (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    djvulibre-3.5.25.3-5.9.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    djvulibre-3.5.25.3-5.9.1
HPE Helion Openstack 8 (src):    djvulibre-3.5.25.3-5.9.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 2021-05-22 10:35:40 UTC
openSUSE-SU-2021:0759-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1185895,1185900,1185904,1185905
CVE References: CVE-2021-32490,CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    djvulibre-3.5.27-lp152.7.3.1
Comment 14 Marcus Meissner 2021-06-09 14:06:11 UTC
done
Comment 15 Swamp Workflow Management 2021-07-11 10:17:27 UTC
openSUSE-SU-2021:1641-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1185895,1185900,1185904,1185905
CVE References: CVE-2021-32490,CVE-2021-32491,CVE-2021-32492,CVE-2021-32493
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    djvulibre-3.5.27-11.3.1