FFmpeg through 9.0.2 contains an integer overflow vulnerability in hap_parse_frame_header() in libavcodec/hapdec.c that allows attackers to trigger a heap buffer overflow on 32-bit builds. Attackers can craft Hap video frames with Snappy length prefixes that wrap tex_size, causing decompress_chunks_thread() to write outside tex_buf and crash the application or potentially execute code.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125222.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "9.0.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "62c308e0416bb701447817fe6f0bff074d206215"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125222.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "324604161265288039490615368542998831342",
"length": 2376
},
"id": "CVE-2026-125222-029ee0d8",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215",
"target": {
"file": "libavcodec/hapdec.c",
"function": "hap_parse_frame_header"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"285148472084757820517681095195918658636",
"4658609381411951591833824313677497407",
"69843058187308822610085122380560615689",
"97876018029299664345813899650635272960",
"326202291905620659118545393064851793630",
"191493449563411098803305270735530496946",
"82773544755686229306924564379524094232",
"43823228210849181876788817471101022168",
"191554121831070933676300455466039641666",
"190899507665369559759508231706257316002",
"288896432555651419591562739388832152088",
"141880290796066680175279442846685197196",
"28672449023467364967064532676937749734",
"183844862148101741651754763827652262515",
"71180251508342932004532228706518674129",
"242919125354610941271742138064391758503",
"254350471846143892462299062991324531932",
"321982336592623703586768949069013870681",
"298556790480869369011910269412965214069",
"2092362361875710360173925720876201796",
"116436067690681194096478160214019882185"
],
"threshold": 0.9
},
"id": "CVE-2026-125222-922d35d7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215",
"target": {
"file": "libavcodec/hapdec.c"
}
}
]
"2026-11-15T07:04:18Z"