A heap out-of-bounds memory write exists in FFMPEG since version 5.1. The size calculation in build_open_gop_key_points()
goes through all entries in the loop and adds sc->ctts_data[i].count
to sc->sample_offsets_count
. This can lead to an integer overflow resulting in a small allocation with av_calloc()
. An attacker can cause remote code execution via a malicious mp4 file. We recommend upgrading past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
{ "vanir_signatures": [ { "digest": { "line_hashes": [ "229648891667041450029361493606381806304", "135872466468465938462320271973817091921", "210085637948337441042887757423541642970", "86198498164871402896199974580337423354", "121449979526773324259872295402571671113", "50255533385114424664651841403325448377", "32389276260174103705251316886652202128", "319058207834156408004807609848915542153", "150489999679500154117254249613797223827", "280751541028273460609967900500999004211", "7058286243398018117911243721609085803", "212616978249885233513896020834881085416", "309461606343329441956372708679658228926", "16390099522419099115180149235540250455" ], "threshold": 0.9 }, "source": "https://github.com/ffmpeg/ffmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05", "signature_type": "Line", "target": { "file": "libavformat/mov.c" }, "deprecated": false, "signature_version": "v1", "id": "CVE-2022-2566-64df0c29" }, { "digest": { "length": 1772.0, "function_hash": "143989625785103494375096093135229489196" }, "source": "https://github.com/ffmpeg/ffmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05", "signature_type": "Function", "target": { "function": "build_open_gop_key_points", "file": "libavformat/mov.c" }, "deprecated": false, "signature_version": "v1", "id": "CVE-2022-2566-ffc21973" } ] }