diff --git a/debian/changelog b/debian/changelog index d403a8b4..e79bcf33 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,21 @@ +ffmpeg (7:6.1.5-0deepin16) unstable; urgency=medium + + * fix(cve): CVE-2026-125203 (high) - avcodec/cook: require the channel + mask to cover every subpacket channel Upstream: + https://github.com/FFmpeg/FFmpeg/commit/3e09f5e24eb277a6d011745ff03e + 602f61c5c171 + * fix(cve): CVE-2026-125267 (high) - avcodec/apac: Check + bitstream_size to avoid integer overflow Upstream: + https://github.com/FFmpeg/FFmpeg/commit/63958ce2b5dd1b22f534fc968c86 + 329cbbceef07,https://github.com/FFmpeg/FFmpeg/commit/e15ddb7f9a2f9b3 + ab8ac305efb6f94ddc18463d0 + * fix(cve): CVE-2026-125228 (medium) - avcodec/vorbisenc: dont assert + on non finite input Upstream: + https://github.com/FFmpeg/FFmpeg/commit/e33548ad13fd3495466a651792e8 + 206b1c6f7fd7 + + -- deepin-ci-robot Mon, 23 Nov 2026 14:05:00 +0800 + ffmpeg (7:6.1.5-0deepin15) unstable; urgency=medium * Fix the truncated Add-slice-param-of-vaapi-hevc quilt patch so the diff --git a/debian/patches/CVE-2026-125203.patch b/debian/patches/CVE-2026-125203.patch new file mode 100644 index 00000000..b271f507 --- /dev/null +++ b/debian/patches/CVE-2026-125203.patch @@ -0,0 +1,36 @@ +Description: CVE-2026-125203 (high) - libavcodec/cook: the channel mask was not checked against the number of subpacket channels, so a crafted Cook multichannel stream could describe more channels than the channel mask covers, leading to an out of array write. Require av_popcount(channel_mask) to equal total_channels, otherwise reject the stream with AVERROR_INVALIDDATA. +Author: deepin-ci-robot +Origin: https://github.com/FFmpeg/FFmpeg/commit/3e09f5e24eb277a6d011745ff03e602f61c5c171 +Bug: https://security-tracker.debian.org/tracker/CVE-2026-125203 +Last-Update: 2026-11-16 +--- +diff --git a/libavcodec/cook.c b/libavcodec/cook.c +index 705213de..204c1722 100644 +--- a/libavcodec/cook.c ++++ b/libavcodec/cook.c +@@ -1078,6 +1078,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) + GetByteContext gb; + int s = 0; + unsigned int channel_mask = 0; ++ int total_channels = 0; + int samples_per_frame = 0; + int ret; + int channels = avctx->ch_layout.nb_channels; +@@ -1241,10 +1242,17 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) + return AVERROR_INVALIDDATA; + } + ++ total_channels += q->subpacket[s].num_channels; + q->num_subpackets++; + s++; + } + ++ if (channel_mask && av_popcount(channel_mask) != total_channels) { ++ av_log(avctx, AV_LOG_ERROR, "Channel mask 0x%x does not match %d subpacket channels\n", ++ channel_mask, total_channels); ++ return AVERROR_INVALIDDATA; ++ } ++ + /* Try to catch some obviously faulty streams, otherwise it might be exploitable */ + if (q->samples_per_channel != 256 && q->samples_per_channel != 512 && + q->samples_per_channel != 1024) { diff --git a/debian/patches/CVE-2026-125228.patch b/debian/patches/CVE-2026-125228.patch new file mode 100644 index 00000000..9e8a95e4 --- /dev/null +++ b/debian/patches/CVE-2026-125228.patch @@ -0,0 +1,19 @@ +Description: CVE-2026-125228 (medium) - FFmpeg 8.1.3 之前版本及 9.x 9.0.2 之前的 libavcodec/vorbisenc.c 的 put_vector() 存在越界读取漏洞:当输入含 NaN 浮点样本时,codebook 条目保持为 -1,导致数组前的堆内存读取,可使应用崩溃或将相邻堆内存泄漏到输出中。 +Author: Michael Niedermayer +Origin: https://github.com/FFmpeg/FFmpeg/commit/e33548ad13fd3495466a651792e8206b1c6f7fd7 +Bug: https://security-tracker.debian.org/tracker/CVE-2026-125228 +Last-Update: Mon, 7 Sep 2026 00:11:34 +0200 +--- +diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c +index 378a3b38..c440f91b 100644 +--- a/libavcodec/vorbisenc.c ++++ b/libavcodec/vorbisenc.c +@@ -892,7 +892,7 @@ static int floor_encode(vorbis_enc_context *venc, vorbis_enc_floor *fc, + static float *put_vector(vorbis_enc_codebook *book, PutBitContext *pb, + float *num) + { +- int i, entry = -1; ++ int i, entry = 0; + float distance = FLT_MAX; + assert(book->dimensions); + for (i = 0; i < book->nentries; i++) { diff --git a/debian/patches/CVE-2026-125267.patch b/debian/patches/CVE-2026-125267.patch new file mode 100644 index 00000000..1fc380db --- /dev/null +++ b/debian/patches/CVE-2026-125267.patch @@ -0,0 +1,26 @@ +Description: CVE-2026-125267 (high) - APAC decoder: integer overflow in bitstream buffer size handling could lead to OOM and out-of-array access +Author: Anxious Koisi +Author: Umar Pathan +Origin: https://github.com/FFmpeg/FFmpeg/commit/63958ce2b5dd1b22f534fc968c86329cbbceef07,https://github.com/FFmpeg/FFmpeg/commit/e15ddb7f9a2f9b3ab8ac305efb6f94ddc18463d0 +Bug: https://security-tracker.debian.org/tracker/CVE-2026-125267 +Last-Update: Mon, 7 Sep 2026 01:06:36 +0200 +--- +diff --git a/libavcodec/apac.c b/libavcodec/apac.c +index 98c34b99..8bd34cf1 100644 +--- a/libavcodec/apac.c ++++ b/libavcodec/apac.c +@@ -141,8 +141,12 @@ static int apac_decode(AVCodecContext *avctx, AVFrame *frame, + buf_size = pkt->size; + input_buf_size = buf_size; + +- if (s->bitstream_index > 0 && s->bitstream_size > 0) { +- memmove(s->bitstream, &s->bitstream[s->bitstream_index], s->bitstream_size); ++ if ((int64_t)s->bitstream_size + buf_size > INT_MAX / (16 * 8)) ++ return AVERROR_INVALIDDATA; ++ ++ if (s->bitstream_index > 0) { ++ if (s->bitstream_size > 0) ++ memmove(s->bitstream, &s->bitstream[s->bitstream_index], s->bitstream_size); + s->bitstream_index = 0; + } + diff --git a/debian/patches/series b/debian/patches/series index 4280119c..aa9dac01 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -120,3 +120,6 @@ CVE-2026-125071.patch CVE-2026-125224.patch CVE-2026-125252.patch Add-slice-param-of-vaapi-hevc.patch +CVE-2026-125203.patch +CVE-2026-125267.patch +CVE-2026-125228.patch