From: Nicolas George via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: charles <code@ffmpeg.org>, Nicolas George <george@nsup.org>
Subject: [FFmpeg-devel] Re: [PATCH] Fix some CVEs in 4.3 release (PR #21275)
Date: Tue, 23 Dec 2025 10:11:27 +0100
Message-ID: <aUpcv2_QjqNi1ZEI@phare.normalesup.org> (raw)
In-Reply-To: <176645765089.60.2047066680547127790@2cb04c0e5124>
charles via ffmpeg-devel (HE12025-12-23):
> >From 48205aaee52aa6f34d45829a93a14b5c63141b59 Mon Sep 17 00:00:00 2001
> From: Jiasheng Jiang <jiashengjiangcool@gmail.com>
> Date: Wed, 6 Aug 2025 16:39:47 +0000
> Subject: [PATCH 9/9] libavfilter/af_firequalizer: Add check for
> av_malloc_array()
>
> Add check for the return value of av_malloc_array() to avoid potential NULL pointer dereference.
>
> Fixes: CVE-2025-10256
>
> Fixes: d3be186ed1 ("avfilter/firequalizer: add dumpfile and dumpscale option")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> (cherry picked from commit a25462482c02c004d685a8fcf2fa63955aaa0931)
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> (cherry picked from commit 00b5af29a4203a31574c11b3df892d78d5d862ec)
> Signed-off-by: Carlos Henrique Lima Melara <charlesmelara@riseup.net>
> ---
> libavfilter/af_firequalizer.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c
> index f4513a1c46..748172945a 100644
> --- a/libavfilter/af_firequalizer.c
> +++ b/libavfilter/af_firequalizer.c
> @@ -822,6 +822,8 @@ static int config_input(AVFilterLink *inlink)
> if (s->dumpfile) {
> s->analysis_rdft = av_rdft_init(rdft_bits, DFT_R2C);
> s->dump_buf = av_malloc_array(s->analysis_rdft_len, sizeof(*s->dump_buf));
> + if (!s->dump_buf)
> + return AVERROR(ENOMEM);
> }
>
> s->analysis_buf = av_malloc_array(s->analysis_rdft_len, sizeof(*s->analysis_buf));
This patch seems based on a very outdated version of the code. This
issue was fixed months ago.
Regards,
--
Nicolas George
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
prev parent reply other threads:[~2025-12-23 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 2:40 [FFmpeg-devel] " charles via ffmpeg-devel
2025-12-23 9:11 ` Nicolas George via ffmpeg-devel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aUpcv2_QjqNi1ZEI@phare.normalesup.org \
--to=ffmpeg-devel@ffmpeg.org \
--cc=code@ffmpeg.org \
--cc=george@nsup.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git