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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31796.json",
"cna_assigner": "mitre"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31796.json"
"2026-07-23T08:25:05Z"
[
{
"source": "https://github.com/thorfdbg/libjpeg/commit/187035b9726710b4fe11d565c7808975c930895d",
"target": {
"file": "control/hierarchicalbitmaprequester.cpp",
"function": "HierarchicalBitmapRequester::PrepareForDecoding"
},
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 967.0,
"function_hash": "119444156195613824511099033342764519263"
},
"deprecated": false,
"id": "CVE-2022-31796-8bccecfc"
},
{
"source": "https://github.com/thorfdbg/libjpeg/commit/187035b9726710b4fe11d565c7808975c930895d",
"target": {
"file": "control/hierarchicalbitmaprequester.cpp"
},
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"275194022272869071068134012543535481483",
"268265372830608522807979456787937917286",
"262621107754778797773294723602385097369",
"294690950030755224121112201988537691422"
]
},
"deprecated": false,
"id": "CVE-2022-31796-a8404c91"
}
]