First published: Sun May 29 2022(Updated: )
libjpeg 1.63 has a heap-based buffer over-read in HierarchicalBitmapRequester::FetchRegion in hierarchicalbitmaprequester.cpp because the MCU size can be different between allocation and use.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
IJG libjpeg | =1.63 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31796 is rated as a moderate severity vulnerability due to the potential for heap-based buffer over-read which could lead to information leak.
To fix CVE-2022-31796, upgrade libjpeg to version 1.63 or later where the vulnerability has been addressed.
CVE-2022-31796 is caused by a heap-based buffer over-read in the HierarchicalBitmapRequester::FetchRegion function due to discrepancies in MCU size between allocation and usage.
CVE-2022-31796 specifically affects libjpeg version 1.63.
There is currently no public evidence indicating that CVE-2022-31796 is actively exploited in the wild, but it is recommended to apply the fix promptly.