FFmpeg through 8.1.2, fixed in commit 8670835, contains an information disclosure vulnerability in the LCL/ZLIB video decoder that allows attackers to expose uninitialized heap memory by supplying a valid zlib stream that inflates to fewer bytes than the expected frame size. The zlib_decomp() function in lcldec.c treats short decompression as non-fatal and continues to the RGB24 conversion path, which copies a full frame's worth of rows from the allocation buffer using original frame dimensions, causing uninitialized heap contents including pointer-derived allocator bytes to be copied into the attacker-observable AVFrame output and potentially defeating ASLR in long-lived media processing services.
{
"cwe_ids": [
"CWE-908"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66038.json",
"cna_assigner": "VulnCheck",
"unresolved_ranges": [
{
"extracted_events": [
{
"last_affected": "8.1.2"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"last_affected": "8.1.2"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"fixed": "8.1.2"
}
],
"source": "DESCRIPTION"
}
]
}{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "8.1.2"
}
],
"source": "CPE_RANGE"
}