Vulnerability · Published May 29, 2022 · Assigned by mitre
CVE-2022-31796
Medium 6.5
In plain English
A medium-severity security flaw in the libjpeg package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)0.9%top 38.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libjpeg | 0.0~git20220615.842c7ba-1 | DEBIAN-CVE-2022-31796 |
| Debian:13 | libjpeg | 0.0~git20220615.842c7ba-1 | DEBIAN-CVE-2022-31796 |
| Debian:14 | libjpeg | 0.0~git20220615.842c7ba-1 | DEBIAN-CVE-2022-31796 |
| Ubuntu:22.04:LTS | libjpeg | no fix listed | UBUNTU-CVE-2022-31796 |
| Ubuntu:24.04:LTS | libjpeg | no fix listed | UBUNTU-CVE-2022-31796 |
| Ubuntu:25.10 | libjpeg | no fix listed | UBUNTU-CVE-2022-31796 |
| Ubuntu:26.04:LTS | libjpeg | no fix listed | UBUNTU-CVE-2022-31796 |
| Ubuntu:26.10 | libjpeg | no fix listed | UBUNTU-CVE-2022-31796 |
Affected products (as reported)
References
- https://github.com/thorfdbg/libjpeg/issues/71 x_refsource_MISC
- https://github.com/thorfdbg/libjpeg/commit/187035b9726710b4fe11d565c7808975c930895d x_refsource_MISC