new file mode 100644
@@ -0,0 +1,36 @@
+From 0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 Mon Sep 17 00:00:00 2001
+From: Michael Niedermayer <michael@niedermayer.cc>
+Date: Tue, 6 Oct 2026 07:19:23 +0200
+Subject: [PATCH] avformat/wavenc: Reject peak envelope writing without
+ channels
+
+The fix is the one recommended in the report.
+
+Fixes: out of array write
+Fixes: LHiad3FmdAmI
+Fixes: AISLE-2026-0111-00337
+Out of array write Replicated through UnModified FFmpeg with ASAN
+Found-by: Joshua Rogers <joshua.rogers@aisle.com>
+
+CVE: CVE-2026-135722
+Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/0b1c279b62af82e422e3fc21ba6cc2fc3154dc76]
+
+Signed-off-by: Dickson Wu <dickson.wu@certik.com>
+---
+ libavformat/wavenc.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c
+index c9ced4a1bdf4f..9de3f7b7890a8 100644
+--- a/libavformat/wavenc.c
++++ b/libavformat/wavenc.c
+@@ -194,7 +194,8 @@ static av_cold int peak_init_writer(AVFormatContext *s)
+ "Writing 16 bit peak for 8 bit audio does not make sense\n");
+ return AVERROR(EINVAL);
+ }
+- if (par->ch_layout.nb_channels > INT_MAX / (wav->peak_bps * wav->peak_ppv))
++ if (par->ch_layout.nb_channels <= 0 ||
++ par->ch_layout.nb_channels > INT_MAX / (wav->peak_bps * wav->peak_ppv))
+ return AVERROR(ERANGE);
+ wav->size_increment = par->ch_layout.nb_channels * wav->peak_bps * wav->peak_ppv;
+
@@ -34,6 +34,7 @@ SRC_URI = " \
file://CVE-2025-22921.patch \
file://CVE-2026-135736.patch \
file://CVE-2026-135743.patch \
+ file://CVE-2026-135722.patch \
"
SRC_URI[sha256sum] = "a231e3d5742c44b1cdaebfb98ad7b6200d12763e0b6db9e1e2c5891f2c083a18"