Bug 2083365 (CVE-2022-27114) - CVE-2022-27114 htmldoc: image_load_jpeg can cause integer overflow
Summary: CVE-2022-27114 htmldoc: image_load_jpeg can cause integer overflow
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-27114
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2083366 2083367 2083368
Blocks: 2083369
TreeView+ depends on / blocked
 
Reported: 2022-05-09 19:21 UTC by Anten Skrabec
Modified: 2022-05-27 15:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 00:14:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Anten Skrabec 2022-05-09 19:21:46 UTC
There is a vulnerability in htmldoc 1.9.16. In image_load_jpeg function image.cxx when it calls malloc,'img->width' and 'img->height' they are large enough to cause an integer overflow. So, the malloc function may return a heap blop smaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.

https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275
https://github.com/michaelrsweet/htmldoc/issues/471

Comment 1 Anten Skrabec 2022-05-09 19:21:59 UTC
Created htmldoc tracking bugs for this issue:

Affects: fedora-all [bug 2083366]

Comment 2 Anten Skrabec 2022-05-09 19:23:05 UTC
Created htmldoc tracking bugs for this issue:

Affects: epel-7 [bug 2083367]
Affects: fedora-34 [bug 2083368]

Comment 3 Product Security DevOps Team 2022-05-10 00:14:53 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.