From: Oliver via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Oliver <oliver93721@gmail.com>
Subject: [FFmpeg-devel] patch to disable SMUSH codec from autoselect
Date: Tue, 4 Nov 2025 09:49:03 +0800
Message-ID: <925799c2-bf87-4fb9-8a93-ab4be107709a@gmail.com> (raw)
This is a simple patch to mark SMUSH experimental so it doesn't 
autoselect when choosing the codec.  This prevents a malicious file from 
exploiting CVE-2025-59734 when a user isn't explicitly choosing that codec.
I have tested this against Google's reference payload with and without 
this change.
I've never submitted to ffmpeg before, so apologies if I'm in the wrong 
place or missing something.
---
  libavformat/smush.c | 1 +
  1 file changed, 1 insertion(+)
  mode change 100644 => 100755 libavformat/smush.c
diff --git a/libavformat/smush.c b/libavformat/smush.c
old mode 100644
new mode 100755
index d380bfbff1..3389bb630f
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -256,6 +256,7 @@ static int smush_read_packet(AVFormatContext *ctx, 
AVPacket *pkt)
  const FFInputFormat ff_smush_demuxer = {
      .p.name         = "smush",
      .p.long_name    = NULL_IF_CONFIG_SMALL("LucasArts Smush"),
+    .p.flags        = AVFMT_EXPERIMENTAL,
      .priv_data_size = sizeof(SMUSHContext),
      .read_probe     = smush_read_probe,
      .read_header    = smush_read_header,
--
2.43.0
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next             reply	other threads:[~2025-11-04  1:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04  1:49 Oliver via ffmpeg-devel [this message]
2025-11-04  9:56 ` [FFmpeg-devel] " Rémi Denis-Courmont via ffmpeg-devel
2025-11-04 10:35   ` Oliver via ffmpeg-devel
2025-11-04 12:32     ` Kieran Kunhya via ffmpeg-devel
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=925799c2-bf87-4fb9-8a93-ab4be107709a@gmail.com \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=oliver93721@gmail.com \
    /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