CVE-2022-27114

NameCVE-2022-27114
DescriptionThere 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 blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3004-1, ELA-610-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
htmldoc (PTS)jessie, jessie (lts)1.8.27-8+deb8u4fixed
stretch (security), stretch (lts), stretch1.8.27-8+deb9u3fixed
buster1.9.3-1+deb10u4fixed
buster (security), buster (lts)1.9.3-1+deb10u2vulnerable
bullseye1.9.11-4+deb11u3fixed
bookworm1.9.16-1fixed
sid, trixie1.9.20-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
htmldocsourcejessie1.8.27-8+deb8u4ELA-610-1
htmldocsourcestretch1.8.27-8+deb9u3DLA-3004-1
htmldocsourcebuster1.9.3-1+deb10u4
htmldocsourcebullseye1.9.11-4+deb11u3
htmldocsource(unstable)1.9.15-2

Notes

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

Search for package or bug name: Reporting problems