new file mode 100644
@@ -0,0 +1,35 @@
+From df1ddf75db9a1ff36a35019511e17f795cf20c55 Mon Sep 17 00:00:00 2001
+From: Michael Niedermayer <michael@niedermayer.cc>
+Date: Sat, 14 Nov 2026 00:36:46 +0100
+Subject: [PATCH] avfilter/vf_readeia608: clip high bit depth samples to the
+ histogram
+
+Fixes: out of array write
+Fixes: 1gH0Fg8kXAvn
+Fixes: AISLE-2026-0166-00264
+
+Found-by: Joshua Rogers (AISLE)
+
+Out of array write Replicated through UnModified FFmpeg with ASAN
+
+CVE: CVE-2026-135740
+Upstream-Status: Backport [https://github.com/FFmpeg/FFmpeg/commit/df1ddf75db9a1ff36a35019511e17f795cf20c55]
+
+Signed-off-by: Dickson Wu <dickson.wu@certik.com>
+---
+ libavfilter/vf_readeia608.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c
+index 86e9019356aa8..2d23afdf196f9 100644
+--- a/libavfilter/vf_readeia608.c
++++ b/libavfilter/vf_readeia608.c
+@@ -173,7 +173,7 @@ static void build_histogram(ReadEIA608Context *s, ScanItem *scan, const LineItem
+ memset(scan->histogram, 0, (s->max + 1) * sizeof(*scan->histogram));
+
+ for (int i = LAG; i < len + LAG; i++)
+- scan->histogram[line[i].input]++;
++ scan->histogram[FFMIN(line[i].input, s->max)]++;
+ }
+
+ static void find_black_and_white(ReadEIA608Context *s, ScanItem *scan)
@@ -38,6 +38,7 @@ SRC_URI = " \
file://CVE-2026-135725.patch \
file://CVE-2026-135734.patch \
file://CVE-2026-135738.patch \
+ file://CVE-2026-135740.patch \
"
SRC_URI[sha256sum] = "a231e3d5742c44b1cdaebfb98ad7b6200d12763e0b6db9e1e2c5891f2c083a18"