Slice-buffer leak in vc1_decode_frame() (libavcodec/vc1dec.c) when
init_get_bits8() fails before n_slices++. The leaking error path was
introduced on master by 8a1c2779 ("avcodec/vc1dec: check return values
of all init_get_bits() calls", 2026-01-14), which added
`ret = init_get_bits8(...); if (ret < 0) goto err;` after each slice
buffer is allocated; upstream fix afdc555a frees the buffer on that
branch. 8a1c2779 is not on release/7.1 nor in n7.1.5: there, at all
three slice sites (VC1_CODE_FIELD, VC1_CODE_SLICE, WVC1 second field,
vc1dec.c lines 899, 929, 963) the call is the unchecked
`init_get_bits(&slices[n_slices].gb, slices[n_slices].buf,
buf_size3 << 3);` with no goto err between av_mallocz() of
slices[n_slices].buf and n_slices++, so the err: loop frees every
allocated slice buffer. No Debian or Echo patch touches vc1dec.c.
afdc555a has nothing to patch here. Re-evaluate if 8a1c2779 is ever
backported into this source.
Refs:
- https://security-tracker.debian.org/tracker/CVE-2026-125199
- https://github.com/FFmpeg/FFmpeg/commit/afdc555aace698b88c86d3f33a7773a6c8ba2897
- https://github.com/FFmpeg/FFmpeg/commit/8a1c2779a033bedb8e228e78747fde2fbe3c140c