Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ffmpeg-4 for openSUSE:Factory checked in at 2026-11-24 17:04:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ffmpeg-4 (Old) and /work/SRC/openSUSE:Factory/.ffmpeg-4.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ffmpeg-4" Tue Nov 24 17:04:00 2026 rev:102 rq:1400335 version:4.4.8 Changes: -------- --- /work/SRC/openSUSE:Factory/ffmpeg-4/ffmpeg-4.changes 2026-10-06 19:16:10.147889860 +0200 +++ /work/SRC/openSUSE:Factory/.ffmpeg-4.new.1340718/ffmpeg-4.changes 2026-11-24 17:04:28.290670991 +0100 @@ -1,0 +2,64 @@ +Tue Oct 27 09:52:41 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90816: avformat/hlsproto: derive the target duration + when EXT-X-TARGETDURATION is missing. (bsc#1280755) + * fix-CVE-2026-90816-part04.patch + +------------------------------------------------------------------- +Tue Oct 27 09:34:37 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90816: avformat/hlsproto: reject NaN and out of range + EXTINF. (bsc#1280755) + * fix-CVE-2026-90816-part03.patch + +------------------------------------------------------------------- +Tue Oct 27 08:30:29 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90816: avformat/hlsproto: reject out of range + EXT-X-TARGETDURATION. (bsc#1280755) + * fix-CVE-2026-90816-part02.patch + +------------------------------------------------------------------- +Tue Oct 27 08:30:29 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90816: avformat/hlsproto: clamp EXTINF and target + duration to a 1ms minimum. (bsc#1280755) + * fix-CVE-2026-90816-part01.patch + +------------------------------------------------------------------- +Tue Oct 27 08:30:29 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90815: avfilter/vf_convolution: don't assume frame is + multiple of 16 pixels wide. (bsc#1280754) + * fix-CVE-2026-90815-part02.patch + +------------------------------------------------------------------- +Tue Oct 27 07:22:18 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2026-90815: avfilter/vf_convolution: Use avpriv_mirror. + (bsc#1280754) + * fix-CVE-2026-90815-part01.patch + +------------------------------------------------------------------- +Tue Oct 27 06:51:11 UTC 2026 - Cliff Zhao <[email protected]> + +- ffmpeg-4-CVE-2026-65705-part02-24c322f.patch: + avfilter/vf_floodfill: size the point stack for the current frame. + (bsc#1272761) + * fix-CVE-2026-65705.patch + +------------------------------------------------------------------- +Tue Oct 27 06:22:18 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2024-36615: lavc/vp9: Fix regression introduced in 0ba05857. + (bsc#1234017) + * fix-CVE-2024-36615-part02.patch + +------------------------------------------------------------------- +Tue Oct 27 05:44:56 UTC 2026 - Cliff Zhao <[email protected]> + +- CVE-2024-36615: avcodec/vp9: Fix race when attaching side-data + for show-existing frame. (bsc#1234017) + * fix-CVE-2024-36615-part01.patch + +------------------------------------------------------------------- @@ -73,0 +138,8 @@ +Wed Aug 14 08:27:50 UTC 2026 - Cliff Zhao <[email protected]> + +- Add ffmpeg-4-CVE-2026-70631-part02-ad89cd9.patch: + Backport ad89cd9 from upstream, avcodec/tiff: clear the separated + intermediate buffer. + (CVE-2026-70631, bsc#1274287) + +------------------------------------------------------------------- @@ -76 +148 @@ -- Add ffmpeg-4-CVE-2026-70631.patch: +- Add ffmpeg-4-CVE-2026-70631-part01-3c287af.patch: @@ -105,0 +178,8 @@ +Wed Aug 14 06:28:40 UTC 2026 - Cliff Zhao <[email protected]> + +- Add ffmpeg-4-CVE-2026-66036-part02-ca9aa7e.patch: + Backport ca9aa7e from upstream, avfilter/vf_hqdn3d: forget the + configured width when the buffers are freed. + (CVE-2026-66036, bsc#1272763) + +------------------------------------------------------------------- @@ -108 +188 @@ -- Add ffmpeg-4-CVE-2026-66036.patch: +- Add ffmpeg-4-CVE-2026-66036-part01-b3c7ebc.patch: @@ -116 +196 @@ -- Add ffmpeg-4-CVE-2026-66036-shim01.patch +- Add ffmpeg-4-CVE-2026-66036-shim01-e3d0c71.patch: @@ -133 +213 @@ -- Add ffmpeg-4-CVE-2026-65705.patch: +- Add ffmpeg-4-CVE-2026-65705-part01-30a5227.patch: @@ -234,0 +315,4 @@ +- CVE-2026-52296: avcodec/wmaenc: Fix missing padding in ex/tradata + (bsc#1280752) +- CVE-2026-38344: swscale/utils: initialize chroma when luma switched to cascade + (bsc#1277309) Old: ---- ffmpeg-4-CVE-2026-65705.patch ffmpeg-4-CVE-2026-66036-shim01.patch ffmpeg-4-CVE-2026-66036.patch ffmpeg-4-CVE-2026-70631.patch New: ---- ffmpeg-4-CVE-2026-65705-part01-30a5227.patch ffmpeg-4-CVE-2026-65705-part02-24c322f.patch ffmpeg-4-CVE-2026-66036-part01-b3c7ebc.patch ffmpeg-4-CVE-2026-66036-part02-ca9aa7e.patch ffmpeg-4-CVE-2026-66036-shim01-e3d0c71.patch ffmpeg-4-CVE-2026-70631-part01-3c287af.patch ffmpeg-4-CVE-2026-70631-part02-ad89cd9.patch fix-CVE-2024-36615-part01.patch fix-CVE-2024-36615-part02.patch fix-CVE-2026-90815-part01.patch fix-CVE-2026-90815-part02.patch fix-CVE-2026-90816-part01.patch fix-CVE-2026-90816-part02.patch fix-CVE-2026-90816-part03.patch fix-CVE-2026-90816-part04.patch ----------(Old B)---------- Old: WARN: ffmpeg-4-CVE-2026-65705.patch not found in changes Old: WARN: ffmpeg-4-CVE-2026-66036-shim01.patch not found in changes Old: WARN: ffmpeg-4-CVE-2026-66036.patch not found in changes Old: WARN: ffmpeg-4-CVE-2026-70631.patch not found in changes ----------(Old E)---------- ----------(New B)---------- New: - Add ffmpeg-4-CVE-2026-65705-part01-30a5227.patch: Backport 30a52276 from upstream, avfilter/vf_floodfill: remove New: - ffmpeg-4-CVE-2026-65705-part02-24c322f.patch: avfilter/vf_floodfill: size the point stack for the current frame. New: - Add ffmpeg-4-CVE-2026-66036-part01-b3c7ebc.patch: Backport 62294b6a from upstream, avfilter/vf_hqdn3d: support New: - Add ffmpeg-4-CVE-2026-66036-part02-ca9aa7e.patch: Backport ca9aa7e from upstream, avfilter/vf_hqdn3d: forget the New: - Add ffmpeg-4-CVE-2026-66036-shim01-e3d0c71.patch: Backport e3d0c719 from upstream, avfilter/vf_hqdn3d: reject New: - Add ffmpeg-4-CVE-2026-70631-part01-3c287af.patch: Backport 3c287af3 from upstream, avcodec/tiff: reject inflate New: - Add ffmpeg-4-CVE-2026-70631-part02-ad89cd9.patch: Backport ad89cd9 from upstream, avcodec/tiff: clear the separated New: for show-existing frame. (bsc#1234017) * fix-CVE-2024-36615-part01.patch New: (bsc#1234017) * fix-CVE-2024-36615-part02.patch New: (bsc#1280754) * fix-CVE-2026-90815-part01.patch New: multiple of 16 pixels wide. (bsc#1280754) * fix-CVE-2026-90815-part02.patch New: duration to a 1ms minimum. (bsc#1280755) * fix-CVE-2026-90816-part01.patch New: EXT-X-TARGETDURATION. (bsc#1280755) * fix-CVE-2026-90816-part02.patch New: EXTINF. (bsc#1280755) * fix-CVE-2026-90816-part03.patch New: when EXT-X-TARGETDURATION is missing. (bsc#1280755) * fix-CVE-2026-90816-part04.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ffmpeg-4.spec ++++++ --- /var/tmp/diff_new_pack.wJN6aj/_old 2026-11-24 17:04:30.309756530 +0100 +++ /var/tmp/diff_new_pack.wJN6aj/_new 2026-11-24 17:04:30.311756615 +0100 @@ -160,23 +160,34 @@ Patch51: ffmpeg-4-CVE-2026-64834.patch Patch52: ffmpeg-4-CVE-2026-65703.patch Patch53: ffmpeg-4-CVE-2026-65704.patch -Patch54: ffmpeg-4-CVE-2026-65705.patch -Patch55: ffmpeg-4-CVE-2026-65706.patch -Patch56: ffmpeg-4-CVE-2026-66036-shim01.patch -Patch57: ffmpeg-4-CVE-2026-66036.patch -Patch58: ffmpeg-4-CVE-2026-70628.patch -Patch59: ffmpeg-4-CVE-2026-70629.patch -Patch60: ffmpeg-4-CVE-2026-70630.patch -Patch61: ffmpeg-4-CVE-2026-70631.patch -Patch62: ffmpeg-4-CVE-2026-70632.patch -Patch63: ffmpeg-4-CVE-2026-75141.patch -Patch64: ffmpeg-4-CVE-2026-75142.patch -Patch65: ffmpeg-4-CVE-2026-75143.patch -Patch66: ffmpeg-4-CVE-2026-75144.patch -Patch67: ffmpeg-4-CVE-2026-75146.patch -Patch68: ffmpeg-4-CVE-2026-38345.patch -Patch69: ffmpeg-4-CVE-2026-38350-part01-aca41d3.patch -Patch70: ffmpeg-4-CVE-2026-38350-part02-c44d237.patch +Patch54: ffmpeg-4-CVE-2026-65705-part01-30a5227.patch +Patch55: ffmpeg-4-CVE-2026-65705-part02-24c322f.patch +Patch56: ffmpeg-4-CVE-2026-65706.patch +Patch57: ffmpeg-4-CVE-2026-66036-shim01-e3d0c71.patch +Patch58: ffmpeg-4-CVE-2026-66036-part01-b3c7ebc.patch +Patch59: ffmpeg-4-CVE-2026-66036-part02-ca9aa7e.patch +Patch60: ffmpeg-4-CVE-2026-70628.patch +Patch61: ffmpeg-4-CVE-2026-70629.patch +Patch62: ffmpeg-4-CVE-2026-70630.patch +Patch63: ffmpeg-4-CVE-2026-70631-part01-3c287af.patch +Patch64: ffmpeg-4-CVE-2026-70631-part02-ad89cd9.patch +Patch65: ffmpeg-4-CVE-2026-70632.patch +Patch66: ffmpeg-4-CVE-2026-75141.patch +Patch67: ffmpeg-4-CVE-2026-75142.patch +Patch68: ffmpeg-4-CVE-2026-75143.patch +Patch69: ffmpeg-4-CVE-2026-75144.patch +Patch70: ffmpeg-4-CVE-2026-75146.patch +Patch71: ffmpeg-4-CVE-2026-38345.patch +Patch72: ffmpeg-4-CVE-2026-38350-part01-aca41d3.patch +Patch73: ffmpeg-4-CVE-2026-38350-part02-c44d237.patch +Patch74: fix-CVE-2024-36615-part01.patch +Patch75: fix-CVE-2024-36615-part02.patch +Patch76: fix-CVE-2026-90815-part01.patch +Patch77: fix-CVE-2026-90815-part02.patch +Patch78: fix-CVE-2026-90816-part01.patch +Patch79: fix-CVE-2026-90816-part02.patch +Patch80: fix-CVE-2026-90816-part03.patch +Patch81: fix-CVE-2026-90816-part04.patch BuildRequires: ladspa-devel BuildRequires: libgsm-devel BuildRequires: libmp3lame-devel ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.wJN6aj/_old 2026-11-24 17:04:30.383759666 +0100 +++ /var/tmp/diff_new_pack.wJN6aj/_new 2026-11-24 17:04:30.391760005 +0100 @@ -1,5 +1,5 @@ -mtime: 1791218466 -commit: e36a0b011c4fc0972838eb6f373b2679d081fa7f7e16adf43c640f2035cfa76a +mtime: 1795420279 +commit: 6d31033f53e035692dd1caa90b1e17cebd59dd648f668bd21cfc32fc9a078b50 url: https://src.opensuse.org/jengelh/ffmpeg-4 revision: master ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-23 08:51:19.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ ffmpeg-4-CVE-2026-65705-part01-30a5227.patch ++++++ >From 30a52276f9dff60fe732d8bb8d463e587ff69c94 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sun, 12 Jul 2026 03:27:47 +0200 Subject: [PATCH] avfilter/vf_floodfill: remove unneeded variables Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit f186c50cf53aec20e9a29059cb22ca3f2d59201c) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_floodfill.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff -a a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c --- a/libavfilter/vf_floodfill.c +++ b/libavfilter/vf_floodfill.c @@ -39,7 +39,6 @@ typedef struct FloodfillContext { int d[4]; int nb_planes; - int back, front; Points *points; int (*is_same)(AVFrame *frame, int x, int y, @@ -270,7 +269,6 @@ static int config_input(AVFilterLink *in } } - s->front = s->back = 0; s->points = av_calloc(inlink->w * inlink->h, 4 * sizeof(Points)); if (!s->points) return AVERROR(ENOMEM); @@ -293,6 +291,7 @@ static int filter_frame(AVFilterLink *li const int w = frame->width; const int h = frame->height; int i, ret; + int front = 0; if (is_inside(s->x, s->y, w, h)) { s->pick_pixel(frame, s->x, s->y, &s0, &s1, &s2, &s3); @@ -310,42 +309,42 @@ static int filter_frame(AVFilterLink *li goto end; if (s->is_same(frame, s->x, s->y, s0, s1, s2, s3)) { - s->points[s->front].x = s->x; - s->points[s->front].y = s->y; - s->front++; + s->points[front].x = s->x; + s->points[front].y = s->y; + front++; } if (ret = av_frame_make_writable(frame)) return ret; - while (s->front > s->back) { + while (front > 0) { int x, y; - s->front--; - x = s->points[s->front].x; - y = s->points[s->front].y; + front--; + x = s->points[front].x; + y = s->points[front].y; if (s->is_same(frame, x, y, s0, s1, s2, s3)) { s->set_pixel(frame, x, y, d0, d1, d2, d3); if (is_inside(x + 1, y, w, h)) { - s->points[s->front] .x = x + 1; - s->points[s->front++].y = y; + s->points[front] .x = x + 1; + s->points[front++].y = y; } if (is_inside(x - 1, y, w, h)) { - s->points[s->front] .x = x - 1; - s->points[s->front++].y = y; + s->points[front] .x = x - 1; + s->points[front++].y = y; } if (is_inside(x, y + 1, w, h)) { - s->points[s->front] .x = x; - s->points[s->front++].y = y + 1; + s->points[front] .x = x; + s->points[front++].y = y + 1; } if (is_inside(x, y - 1, w, h)) { - s->points[s->front] .x = x; - s->points[s->front++].y = y - 1; + s->points[front] .x = x; + s->points[front++].y = y - 1; } } } ++++++ ffmpeg-4-CVE-2026-65705-part02-24c322f.patch ++++++ >From 24c322fdb232d0a3f3790d544dcb64e5c2138e79 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sat, 11 Jul 2026 16:47:28 +0200 Subject: [PATCH] avfilter/vf_floodfill: size the point stack for the current frame Fixes: out of array access Fixes: 8aj_floodfill_dynamic_size.pgm / 8aj_generate_floodfill_dynamic_size_pgm.py Fixes: 3MleMXjGZvu3 Found-by: Adrian Junge (vurlo) <[email protected]> --- libavfilter/vf_floodfill.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_floodfill.c b/libavfilter/vf_floodfill.c index 3876211ecab2761cac9111a7345768eafb9a56e5..f9f8ee9327aab98f84f420e134affd3710daa0f8 100644 --- a/libavfilter/vf_floodfill.c +++ b/libavfilter/vf_floodfill.c @@ -40,6 +40,7 @@ typedef struct FloodfillContext { int nb_planes; Points *points; + unsigned int points_size; int (*is_same)(AVFrame *frame, int x, int y, unsigned s0, unsigned s1, unsigned s2, unsigned s3); @@ -269,9 +270,6 @@ static int config_input(AVFilterLink *inlink) } } - s->points = av_calloc(inlink->w * inlink->h, 4 * sizeof(Points)); - if (!s->points) - return AVERROR(ENOMEM); return 0; } @@ -290,9 +288,23 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) int s3 = s->s[3]; const int w = frame->width; const int h = frame->height; + size_t nb_points, points_size; int i, ret; int front = 0; + if (w > UINT16_MAX + 1 || h > UINT16_MAX + 1 || + av_size_mult(w, h, &nb_points) < 0 || + av_size_mult(nb_points, 4 * sizeof(*s->points), &points_size) < 0) { + av_frame_free(&frame); + return AVERROR(EINVAL); + } + + av_fast_malloc(&s->points, &s->points_size, points_size); + if (!s->points) { + av_frame_free(&frame); + return AVERROR(ENOMEM); + } + if (is_inside(s->x, s->y, w, h)) { s->pick_pixel(frame, s->x, s->y, &s0, &s1, &s2, &s3); -- 2.51.1 ++++++ ffmpeg-4-CVE-2026-66036-part01-b3c7ebc.patch ++++++ >From b3c7ebc1edc401fd9881277fdfae93f3f24ceb81 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sat, 11 Jul 2026 16:46:39 +0200 Subject: [PATCH] avfilter/vf_swaprect: size the temp row buffer for the widest plane Fixes: out of array access Fixes: 7aj_swaprect_odd17_nv12.nut / 7aj_generate_swaprect_odd17_nv12.py Fixes: VRAXYvKtmKa8 Found-by: Adrian Junge (vurlo) <[email protected]> (cherry picked from commit a7e38b617b32f996beaa371bbf04b39907d7a527) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_swaprect.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff a/libavfilter/avfilter.c b/libavfilter/avfilter.c --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1104,7 +1104,8 @@ int ff_filter_frame(AVFilterLink *link, strcmp(link->dst->filter->name, "format") && strcmp(link->dst->filter->name, "idet") && strcmp(link->dst->filter->name, "null") && - strcmp(link->dst->filter->name, "scale")) { + strcmp(link->dst->filter->name, "scale") && + strcmp(link->dst->filter->name, "hqdn3d")) { av_assert1(frame->format == link->format); av_assert1(frame->width == link->w); av_assert1(frame->height == link->h); diff a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -322,21 +322,28 @@ static int filter_frame(AVFilterLink *in AVFrame *out; int direct = av_frame_is_writable(in) && !ctx->is_disabled; ThreadData td; - int ret[3]; + int err, ret[3]; - if (in->format != s->format || - in->width != s->width || - in->height != s->height) { - av_log(ctx, AV_LOG_ERROR, - "Frame size or format changed without filter graph reinitialization\n"); + if (in->format != s->format) { av_frame_free(&in); return AVERROR(EINVAL); } + if (in->width != s->width || in->height != s->height) { + inlink->w = in->width; + inlink->h = in->height; + if ((err = config_input(inlink)) < 0) { + av_frame_free(&in); + return err; + } + outlink->w = in->width; + outlink->h = in->height; + } + if (direct) { out = in; } else { - out = ff_get_video_buffer(outlink, outlink->w, outlink->h); + out = ff_get_video_buffer(outlink, in->width, in->height); if (!out) { av_frame_free(&in); return AVERROR(ENOMEM); ++++++ ffmpeg-4-CVE-2026-66036-part02-ca9aa7e.patch ++++++ >From ca9aa7edd60622d8548114cbf09f165d358e5705 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 13 Oct 2026 06:25:02 +0200 Subject: [PATCH] avfilter/vf_hqdn3d: forget the configured width when the buffers are freed Fixes: WDZyf7w7BNU1 Fixes: NULL pointer dereference NULL dereference after a failed allocation Replicated through API with ASAN Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765 --- libavfilter/vf_hqdn3d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c index 80495aaa27..3b46b6d4f8 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -254,6 +254,7 @@ static int config_input(AVFilterLink *inlink) int i, depth; uninit(inlink->dst); + s->width = 0; s->hsub = desc->log2_chroma_w; s->vsub = desc->log2_chroma_h; -- 2.51.1 ++++++ ffmpeg-4-CVE-2026-66036-shim01-e3d0c71.patch ++++++ >From e3d0c719fddd259709c8e275942ab56af3afc35d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sun, 12 Jul 2026 13:05:07 +0200 Subject: [PATCH] avfilter/vf_hqdn3d: reject unsupported frame parameter changes Fixes: out of array access Fixes: 9aj_hqdn3d_dynamic_res.mjpg / 9aj_generate_hqdn3d_dynamic_res_mjpg.py Fixes: wWDsy2oDvMuR Found-by: Adrian Junge (vurlo) <[email protected]> (cherry picked from commit f0f634b6585fdc7bbb43ab3ae461499bfca9ad2e) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_hqdn3d.c | 34 +++++++++++++++++++++++++--------- libavfilter/vf_hqdn3d.h | 2 ++ 2 files changed, 27 insertions(+), 9 deletions(-) diff -a a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -164,12 +164,8 @@ static int denoise_depth(HQDN3DContext * case 14: ret = denoise_depth(__VA_ARGS__, 14); break; \ case 16: ret = denoise_depth(__VA_ARGS__, 16); break; \ } \ - if (ret < 0) { \ - av_frame_free(&out); \ - if (!direct) \ - av_frame_free(&in); \ + if (ret < 0) \ return ret; \ - } \ } while (0) static void precalc_coefs(double dist25, int depth, int16_t *ct) @@ -288,12 +284,15 @@ static int config_input(AVFilterLink *in if (ARCH_X86) ff_hqdn3d_init_x86(s); + s->format = inlink->format; + s->width = inlink->w; + s->height = inlink->h; + return 0; } typedef struct ThreadData { AVFrame *in, *out; - int direct; } ThreadData; static int do_denoise(AVFilterContext *ctx, void *data, int job_nr, int n_jobs) @@ -302,7 +301,6 @@ static int do_denoise(AVFilterContext *c const ThreadData *td = data; AVFrame *out = td->out; AVFrame *in = td->in; - int direct = td->direct; denoise(s, in->data[job_nr], out->data[job_nr], s->line[job_nr], &s->frame_prev[job_nr], @@ -319,10 +317,21 @@ static int filter_frame(AVFilterLink *in { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; + HQDN3DContext *s = ctx->priv; AVFrame *out; int direct = av_frame_is_writable(in) && !ctx->is_disabled; ThreadData td; + int ret[3]; + + if (in->format != s->format || + in->width != s->width || + in->height != s->height) { + av_log(ctx, AV_LOG_ERROR, + "Frame size or format changed without filter graph reinitialization\n"); + av_frame_free(&in); + return AVERROR(EINVAL); + } if (direct) { out = in; @@ -338,9 +347,16 @@ static int filter_frame(AVFilterLink *in td.in = in; td.out = out; - td.direct = direct; /* one thread per plane */ - ctx->internal->execute(ctx, do_denoise, &td, NULL, 3); + ctx->internal->execute(ctx, do_denoise, &td, ret, 3); + for (int i = 0; i < FF_ARRAY_ELEMS(ret); i++) { + if (ret[i] < 0) { + av_frame_free(&out); + if (!direct) + av_frame_free(&in); + return ret[i]; + } + } if (ctx->is_disabled) { av_frame_free(&out); diff -a a/libavfilter/vf_hqdn3d.h b/libavfilter/vf_hqdn3d.h --- a/libavfilter/vf_hqdn3d.h +++ b/libavfilter/vf_hqdn3d.h @@ -36,6 +36,8 @@ typedef struct HQDN3DContext { double strength[4]; int hsub, vsub; int depth; + int width, height; + enum AVPixelFormat format; void (*denoise_row[17])(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal); } HQDN3DContext; ++++++ ffmpeg-4-CVE-2026-70631-part01-3c287af.patch ++++++ >From 3c287af3affe1286350faa69c02bcc5d49de18bb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Wed, 22 Jul 2026 05:44:41 +0200 Subject: [PATCH] avcodec/tiff: reject inflate output shorter than the strip Fixes: use of uninitialized memory Fixes: tiff_short_deflate_heap_disclosure.tiff Fixes: 1cRIkpUVMQtn Found-by: Adrian Junge (vurlo) (cherry picked from commit 2f234ea34c81288e3840fca632dd16481d8de39f) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/tiff.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 8a179f0fd0..b8ce7b0b55 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -526,6 +526,7 @@ static int tiff_unpack_zlib(TiffContext *s, AVFrame *p, uint8_t *dst, int stride uint8_t *zbuf; unsigned long outlen; int ret, line; + int rows = is_yuv ? (lines + s->subsampling[1] - 1) / s->subsampling[1] : lines; outlen = width * lines; zbuf = av_malloc(outlen); if (!zbuf) @@ -545,6 +546,12 @@ static int tiff_unpack_zlib(TiffContext *s, AVFrame *p, uint8_t *dst, int stride av_free(zbuf); return AVERROR_UNKNOWN; } + if (outlen < (unsigned long)width * rows) { + av_log(s->avctx, AV_LOG_ERROR, "Deflated %lu bytes, but %lu are needed\n", + outlen, (unsigned long)width * rows); + av_free(zbuf); + return AVERROR_INVALIDDATA; + } src = zbuf; for (line = 0; line < lines; line++) { if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8) { @@ -592,6 +599,7 @@ static int tiff_unpack_lzma(TiffContext *s, AVFrame *p, uint8_t *dst, int stride { uint64_t outlen = width * (uint64_t)lines; int ret, line; + int rows = is_yuv ? (lines + s->subsampling[1] - 1) / s->subsampling[1] : lines; uint8_t *buf = av_malloc(outlen); if (!buf) return AVERROR(ENOMEM); @@ -610,6 +618,12 @@ static int tiff_unpack_lzma(TiffContext *s, AVFrame *p, uint8_t *dst, int stride av_free(buf); return AVERROR_UNKNOWN; } + if (outlen < (uint64_t)width * rows) { + av_log(s->avctx, AV_LOG_ERROR, "Uncompressed %"PRIu64" bytes, but %"PRIu64" are needed\n", + outlen, (uint64_t)width * rows); + av_free(buf); + return AVERROR_INVALIDDATA; + } src = buf; for (line = 0; line < lines; line++) { if (s->bpp < 8 && s->avctx->pix_fmt == AV_PIX_FMT_PAL8) { -- 2.49.0 ++++++ ffmpeg-4-CVE-2026-70631-part02-ad89cd9.patch ++++++ >From ad89cd9d072a252d197e9174c7e53e7945d30083 Mon Sep 17 00:00:00 2001 From: Ayoub Nabil Boubagrat <[email protected]> Date: Wed, 9 Sep 2026 21:50:01 +0200 Subject: [PATCH] avcodec/tiff: clear the separated intermediate buffer Strip decoding errors are tolerated unless AV_EF_EXPLODE is set. The separated-to-RGBA conversion still consumes the full intermediate buffer, including lines that the failed strip did not initialize. Allocate the buffer with av_calloc() so undecoded lines cannot expose heap contents in the output frame. Fixes: read of uninitialized memory Fixes: 6nbtoGQYPUjZ Found-by: Ayoub Nabil Boubagrat <[email protected]> Use of uninitialized memory Replicated through UnModified FFmpeg with Valgrind Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index 41db29d6e2..efe7ae7056 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -2216,7 +2216,7 @@ again: s->avctx->pix_fmt == AV_PIX_FMT_RGBA) { stride = stride * 5 / 4; five_planes = - dst = av_malloc(stride * s->height); + dst = av_calloc(s->height, stride); if (!dst) return AVERROR(ENOMEM); } -- 2.51.1 ++++++ fix-CVE-2024-36615-part01.patch ++++++ >From 415ed8bb0936a81737269d8428b55f7cb19f664f Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <[email protected]> Date: Fri, 12 Aug 2022 03:05:34 +0200 Subject: [PATCH] avcodec/vp9: Fix race when attaching side-data for show-existing frame When outputting a show-existing frame, the VP9 decoder simply created a reference to said frame and returned it immediately to the caller, without waiting for it to have finished decoding. In case of frame-threading it is possible for the frame to only be decoded while it was waiting to be output. This is normally benign. But there is one case where it is not: If the user wants video encoding parameters to be exported, said side data will only be attached to the src AVFrame at the end of decoding the frame that is actually being shown. Without synchronisation adding said side data in the decoder thread and the reads in av_frame_ref() in the output thread constitute a data race. This happens e.g. when using the venc_data_dump tool with vp90-2-10-show-existing-frame.webm from the FATE-suite. Fix this by actually waiting for the frame to be output. Backport comment: in 7.1 there was a switch to ProgressFrames (7bd3b737163), so there was the need to convert the calls back to ThreadFrames calls. Fixes: CVE-2024-36615 Signed-off-by: Andreas Rheinhardt <[email protected]> (cherry picked from commit 0ba058579f332b3060d8470a04ddd3fbf305be61) Signed-off-by: Carlos Henrique Lima Melara <[email protected]> --- libavcodec/vp9.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index fd0bab14a2..bc58d647ab 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1566,6 +1566,8 @@ static int vp9_decode_frame(AVCodecContext *avctx, void *frame, av_log(avctx, AV_LOG_ERROR, "Requested reference %d not available\n", ref); return AVERROR_INVALIDDATA; } + ff_thread_await_progress(&s->s.refs[ref], INT_MAX, 0); + if ((ret = av_frame_ref(frame, s->s.refs[ref].f)) < 0) return ret; ((AVFrame *)frame)->pts = pkt->pts; @@ -1732,10 +1734,8 @@ FF_ENABLE_DEPRECATION_WARNINGS #endif { ret = decode_tiles(avctx, data, size); - if (ret < 0) { - ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); - return ret; - } + if (ret < 0) + goto fail; } // Sum all counts fields into td[0].counts for tile threading @@ -1749,18 +1749,19 @@ FF_ENABLE_DEPRECATION_WARNINGS ff_thread_finish_setup(avctx); } } while (s->pass++ == 1); - ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); if (s->td->error_info < 0) { av_log(avctx, AV_LOG_ERROR, "Failed to decode tile data\n"); s->td->error_info = 0; - return AVERROR_INVALIDDATA; + ret = AVERROR_INVALIDDATA; + goto fail; } if (avctx->export_side_data & AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS) { ret = vp9_export_enc_params(s, &s->s.frames[CUR_FRAME]); if (ret < 0) - return ret; + goto fail; } + ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); finish: // ref frame setup @@ -1779,6 +1780,9 @@ finish: } return pkt->size; +fail: + ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); + return ret; } static void vp9_decode_flush(AVCodecContext *avctx) -- 2.51.1 ++++++ fix-CVE-2024-36615-part02.patch ++++++ >From 2d32a6611a5a9e540d7e2b9bad14c73ceeb8c0a6 Mon Sep 17 00:00:00 2001 From: Haihao Xiang <[email protected]> Date: Mon, 22 Apr 2024 14:57:08 +0800 Subject: [PATCH] lavc/vp9: Fix regression introduced in 0ba05857 It is possible that ff_progress_frame_await() is called but ff_progress_frame_report() isn't called when a hardware acceleration method is used, so a thread for vp9 decoding might get stuck. Backport comment: in 7.1 there was a switch to ProgressFrames (7bd3b737163), so there was the need to convert the calls back to ThreadFrames calls. In this case, it was just moving the progress report function inside the finish label. Reviewed-by: Andreas Rheinhardt <[email protected]> Signed-off-by: Haihao Xiang <[email protected]> (cherry picked from commit 8c62d77139ca07390414fcfd26b2a4d506fed3b9) Signed-off-by: Carlos Henrique Lima Melara <[email protected]> --- libavcodec/vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index bc58d647ab..3ea02e0773 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1761,9 +1761,9 @@ FF_ENABLE_DEPRECATION_WARNINGS if (ret < 0) goto fail; } - ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); finish: + ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0); // ref frame setup for (i = 0; i < 8; i++) { if (s->s.refs[i].f->buf[0]) -- 2.51.1 ++++++ fix-CVE-2026-90815-part01.patch ++++++ >From 8970658472d1cb62d663ece0b6cacf4a1f465da3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 24 Feb 2026 23:37:21 +0100 Subject: [PATCH] avfilter/vf_convolution: Use avpriv_mirror Fixes: out of array read Fixes: #YWH-PGM40646-35 Found-by: jpraveenrao Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_convolution.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c index 08aaa6c..73d4502 100644 --- a/libavfilter/vf_convolution.c +++ b/libavfilter/vf_convolution.c @@ -515,11 +515,8 @@ static void setup_3x3(int radius, const uint8_t *c[], const uint8_t *src, int st int i; for (i = 0; i < 9; i++) { - int xoff = FFABS(x + ((i % 3) - 1)); - int yoff = FFABS(y + (i / 3) - 1); - - xoff = xoff >= w ? 2 * w - 1 - xoff : xoff; - yoff = yoff >= h ? 2 * h - 1 - yoff : yoff; + int xoff = avpriv_mirror(x + (i % 3) - 1, w - 1); + int yoff = avpriv_mirror(y + (i / 3) - 1, h - 1); c[i] = src + xoff * bpc + yoff * stride; } -- 2.51.1 ++++++ fix-CVE-2026-90815-part02.patch ++++++ >From 241fe649406143735cb559b53b48044c933801d5 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler <[email protected]> Date: Fri, 25 Sep 2026 22:55:01 +0200 Subject: [PATCH] avfilter/vf_convolution: don't assume frame is multiple of 16 pixels wide Limit the 8-bit column filter to the pixels remaining in the current slice. Pass slice_end - y at all three call sites so both the 8-bit and high-bit-depth column filters receive the correct remaining width. This handles partial 16-pixel blocks at frame and thread-slice boundaries. The non-column callbacks do not use this argument. Fixes: #YWH-PGM40646-36 (cherry picked from commit 8b9e02cc17126bf42416624e0fea329aa42126b0) --- libavfilter/vf_convolution.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c index 08aaa6cde8..cb780e014b 100644 --- a/libavfilter/vf_convolution.c +++ b/libavfilter/vf_convolution.c @@ -493,16 +493,17 @@ static void filter_column(uint8_t *dst, int height, int dstride, int stride, int size) { DECLARE_ALIGNED(64, unsigned, sum)[16]; + const int width = FFMIN(16, size); for (int y = 0; y < height; y++) { memset(sum, 0, sizeof(sum)); for (int i = 0; i < 2 * radius + 1; i++) { - for (int off16 = 0; off16 < 16; off16++) + for (int off16 = 0; off16 < width; off16++) sum[off16] += (unsigned)c[i][0 + y * stride + off16] * matrix[i]; } - for (int off16 = 0; off16 < 16; off16++) { + for (int off16 = 0; off16 < width; off16++) { dst[off16] = av_clip_uint8((int)sum[off16] * rdiv + bias + 0.5f); } dst += dstride; @@ -627,12 +628,12 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) s->setup[plane](radius, c, src, stride, x, width, y, height, bpc); s->filter[plane](dst + yoff + xoff, 1, rdiv, bias, matrix, c, s->max, radius, - dstride, stride, slice_end - step); + dstride, stride, slice_end - y); } s->setup[plane](radius, c, src, stride, left, width, y, height, bpc); s->filter[plane](dst + yoff + xoff, right - left, rdiv, bias, matrix, c, s->max, radius, - dstride, stride, slice_end - step); + dstride, stride, slice_end - y); for (x = right; x < sizew; x++) { const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc; const int yoff = mode == MATRIX_COLUMN ? x * dstride : 0; @@ -640,7 +641,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) s->setup[plane](radius, c, src, stride, x, width, y, height, bpc); s->filter[plane](dst + yoff + xoff, 1, rdiv, bias, matrix, c, s->max, radius, - dstride, stride, slice_end - step); + dstride, stride, slice_end - y); } if (mode != MATRIX_COLUMN) dst += dstride; -- 2.51.1 ++++++ fix-CVE-2026-90816-part01.patch ++++++ >From 06b9b57beef852cab1b3f9b6ba7bed7e9e8d38c1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 11 Aug 2026 02:58:47 +0200 Subject: [PATCH] avformat/hlsproto: clamp EXTINF and target duration to a 1ms minimum Fixes: infinite loop Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21492 Found-by: Kery --- libavformat/hlsproto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 1c63a191cb..0ab2b52520 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -131,6 +131,7 @@ static int parse_playlist(URLContext *h, const char *url) bandwidth = atoi(info.bandwidth); } else if (av_strstart(line, "#EXT-X-TARGETDURATION:", &ptr)) { s->target_duration = atoi(ptr) * AV_TIME_BASE; + s->target_duration = FFMAX(s->target_duration, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#EXT-X-MEDIA-SEQUENCE:", &ptr)) { s->start_seq_no = atoi(ptr); } else if (av_strstart(line, "#EXT-X-ENDLIST", &ptr)) { @@ -138,6 +139,7 @@ static int parse_playlist(URLContext *h, const char *url) } else if (av_strstart(line, "#EXTINF:", &ptr)) { is_segment = 1; duration = atof(ptr) * AV_TIME_BASE; + duration = FFMAX(duration, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#", NULL)) { continue; } else if (line[0]) { -- 2.51.1 ++++++ fix-CVE-2026-90816-part02.patch ++++++ >From 9bec746fe08748285de4b002dc0f93e9a6668fed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 11 Aug 2026 03:56:22 +0200 Subject: [PATCH] avformat/hlsproto: reject out of range EXT-X-TARGETDURATION Fixes: signed integer overflow: 2148 * 1000000 cannot be represented in type 'int' --- libavformat/hlsproto.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 0ab2b52520..d0cd9e9fa4 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -130,7 +130,12 @@ static int parse_playlist(URLContext *h, const char *url) &info); bandwidth = atoi(info.bandwidth); } else if (av_strstart(line, "#EXT-X-TARGETDURATION:", &ptr)) { - s->target_duration = atoi(ptr) * AV_TIME_BASE; + int64_t t = strtoll(ptr, NULL, 10); + if (t < 0 || t >= INT64_MAX / AV_TIME_BASE) { + ret = AVERROR_INVALIDDATA; + goto fail; + } + s->target_duration = t * AV_TIME_BASE; s->target_duration = FFMAX(s->target_duration, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#EXT-X-MEDIA-SEQUENCE:", &ptr)) { s->start_seq_no = atoi(ptr); -- 2.51.1 ++++++ fix-CVE-2026-90816-part03.patch ++++++ >From f76bd694c361d1ef7619528009efe043fc5df626 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 11 Aug 2026 03:56:32 +0200 Subject: [PATCH] avformat/hlsproto: reject NaN and out of range EXTINF Fixes: #EXTINF:nan and #EXTINF:1e300 --- libavformat/hlsproto.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index d0cd9e9fa4..906f1bbaf2 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -142,9 +142,13 @@ static int parse_playlist(URLContext *h, const char *url) } else if (av_strstart(line, "#EXT-X-ENDLIST", &ptr)) { s->finished = 1; } else if (av_strstart(line, "#EXTINF:", &ptr)) { + double d = atof(ptr) * AV_TIME_BASE; + if (!(d >= 0 && d < INT64_MAX)) { + ret = AVERROR_INVALIDDATA; + goto fail; + } is_segment = 1; - duration = atof(ptr) * AV_TIME_BASE; - duration = FFMAX(duration, 0.001 * AV_TIME_BASE); + duration = FFMAX(d, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#", NULL)) { continue; } else if (line[0]) { -- 2.51.1 ++++++ fix-CVE-2026-90816-part04.patch ++++++ >From 17943768e42c2044f91ebe34d509da782fa2922b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 11 Aug 2026 03:56:46 +0200 Subject: [PATCH] avformat/hlsproto: derive the target duration when EXT-X-TARGETDURATION is missing Fixes: infinite loop --- libavformat/hlsproto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 906f1bbaf2..f0e2230a70 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -245,6 +245,10 @@ static int hls_open(URLContext *h, const char *uri, int flags) ret = AVERROR(EIO); goto fail; } + if (!s->target_duration) { + av_log(h, AV_LOG_WARNING, "Missing #EXT-X-TARGETDURATION\n"); + s->target_duration = s->segments[s->n_segments - 1]->duration; + } s->cur_seq_no = s->start_seq_no; if (!s->finished && s->n_segments >= 3) s->cur_seq_no = s->start_seq_no + s->n_segments - 3; -- 2.51.1
