Vulnerabilities > CVE-2022-27114 - Integer Overflow or Wraparound vulnerability in multiple products
Attack vector
LOCAL Attack complexity
LOW Privileges required
NONE Confidentiality impact
NONE Integrity impact
NONE Availability impact
HIGH Summary
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.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 | |
OS | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Forced Integer Overflow This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
References
- https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275
- https://github.com/michaelrsweet/htmldoc/commit/31f780487e5ddc426888638786cdc47631687275
- https://github.com/michaelrsweet/htmldoc/issues/471
- https://github.com/michaelrsweet/htmldoc/issues/471
- https://lists.debian.org/debian-lts-announce/2022/05/msg00014.html
- https://lists.debian.org/debian-lts-announce/2022/05/msg00014.html