CVE-2022-27114 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...
MediumCVSS 5.5
EPSS 0.96%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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 blosmaller than the expected size, and it will cause a buffer overflow/Address boundary error in the jpeg_read_scanlines function.
Upgrade path
11 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/htmldoc(Debian 12) | < 1.9.15-2 | 1.9.15-2 | Fixed |
| debian/htmldoc(Debian 13) | < 1.9.15-2 | 1.9.15-2 | Fixed |
| debian/htmldoc(Debian 14) | < 1.9.15-2 | 1.9.15-2 | Fixed |
| ubuntu/htmldoc(Ubuntu 22.04) | < 1.9.15-1ubuntu0.1~esm1 | 1.9.15-1ubuntu0.1~esm1 | Fixed |
| ubuntu/htmldoc(Ubuntu Pro 14.04) | < 1.8.27-8ubuntu1+esm4; = 1.8.27-8ubuntu1; = 1.8.27-8ubuntu1+esm1; = 1.8.27-8ubuntu1+esm2 +1 more | 1.8.27-8ubuntu1+esm4 | Fixed |
| ubuntu/htmldoc(Ubuntu Pro 16.04) | < 1.8.27-8ubuntu1.1+esm3; = 1.8.27-8ubuntu1; = 1.8.27-8ubuntu1.1; = 1.8.27-8ubuntu1.1+esm1 +1 more | 1.8.27-8ubuntu1.1+esm3 | Fixed |
| ubuntu/htmldoc(Ubuntu Pro 18.04) | < 1.9.2-1ubuntu0.2+esm2; = 1.8.27-8ubuntu2; = 1.8.27-8ubuntu3; = 1.9.2-1 +3 more | 1.9.2-1ubuntu0.2+esm2 | Fixed |
| ubuntu/htmldoc(Ubuntu Pro 20.04) | < 1.9.7-1ubuntu0.3+esm2; = 1.9.3-1; = 1.9.7-1; = 1.9.7-1build1 +3 more | 1.9.7-1ubuntu0.3+esm2 | Fixed |
| ubuntu/htmldoc(Ubuntu Pro 22.04) | < 1.9.15-1ubuntu0.1~esm1; = 1.9.11-4; = 1.9.12-1; = 1.9.13-1 +2 more | 1.9.15-1ubuntu0.1~esm1 | Fixed |
| debian linux | = 9.0 | No fix listed | Versions listed |
| htmldoc project htmldoc | = 1.9.16 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/htmldoc(Ubuntu:22.04) | < 1.9.15-1ubuntu0.1~esm1 | 1.9.15-1ubuntu0.1~esm1 |
| htmldoc project htmldoc | = 1.9.16 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian/htmldoc(Debian:12) | < 1.9.15-2 | 1.9.15-2 |
| debian/htmldoc(Debian:14) | < 1.9.15-2 | 1.9.15-2 |
| debian/htmldoc(Debian:13) | < 1.9.15-2 | 1.9.15-2 |
| ubuntu/htmldoc(Ubuntu:Pro:14.04) | < 1.8.27-8ubuntu1+esm4 | 1.8.27-8ubuntu1+esm4 |
| ubuntu/htmldoc(Ubuntu:Pro:14.04) | = 1.8.27-8ubuntu1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:14.04) | = 1.8.27-8ubuntu1+esm1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:14.04) | = 1.8.27-8ubuntu1+esm2 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:14.04) | = 1.8.27-8ubuntu1+esm3 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:16.04) | < 1.8.27-8ubuntu1.1+esm3 | 1.8.27-8ubuntu1.1+esm3 |
| ubuntu/htmldoc(Ubuntu:Pro:16.04) | = 1.8.27-8ubuntu1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:16.04) | = 1.8.27-8ubuntu1.1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:16.04) | = 1.8.27-8ubuntu1.1+esm1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:16.04) | = 1.8.27-8ubuntu1.1+esm2 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | < 1.9.2-1ubuntu0.2+esm2 | 1.9.2-1ubuntu0.2+esm2 |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.8.27-8ubuntu2 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.8.27-8ubuntu3 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.9.2-1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.9.2-1ubuntu0.1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.9.2-1ubuntu0.2 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:18.04) | = 1.9.2-1ubuntu0.2+esm1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | < 1.9.7-1ubuntu0.3+esm2 | 1.9.7-1ubuntu0.3+esm2 |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.3-1 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.7-1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.7-1build1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.7-1ubuntu0.2 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.7-1ubuntu0.3 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:20.04) | = 1.9.7-1ubuntu0.3+esm1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | < 1.9.15-1ubuntu0.1~esm1 | 1.9.15-1ubuntu0.1~esm1 |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | = 1.9.11-4 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | = 1.9.12-1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | = 1.9.13-1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | = 1.9.14-1 | No fix listed |
| ubuntu/htmldoc(Ubuntu:Pro:22.04) | = 1.9.15-1 | No fix listed |
References
- Debian Security Tracker CVE-2022-27114 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com exploit issue-tracking third-party-advisory
- [debian-lts-announce] 20220513 [SECURITY] [DLA 3004-1] htmldoc security update mailing-list third-party-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7225-1 vendor-advisory
- www.cve.org issue-tracking