FFmpeg before commit acf5d7c contains a heap buffer overflow in the hvcC box writer. When writing an HEVC configuration record with more NAL units of a single type than the count field can represent, the NAL unit count overflows, causing a heap buffer overflow. A crafted HEVC input file triggers the overflow during muxing.
7:2.8.17-0ubuntu0.1+esm177:3.4.11-0ubuntu0.1+esm157:4.2.7-0ubuntu0.1+esm167:4.4.2-0ubuntu0.22.04.1+esm157:6.1.1-3ubuntu5+esm137:8.0.1-3ubuntu2+esm4Exploitability
AV:LAC:LAT:NPR:NUI:PVulnerable System
VC:HVI:HVA:HSubsequent System
SC:NSI:NSA:NCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N