new file mode 100644
@@ -0,0 +1,30 @@
+From 6faed707cfb760a4cbd726ddc8406f576cf35bf7 Mon Sep 17 00:00:00 2001
+From: Andrew Murray <3112309+radarhere@users.noreply.github.com>
+Date: Sun, 4 Oct 2026 09:18:28 +1100
+Subject: [PATCH] Do not keep size from failed GIF decompression bomb check
+ (#10116)
+
+Co-authored-by: Jeffrey 'Alex' Clark <aclark@aclark.net>
+Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
+
+CVE: CVE-2026-112400
+Upstream-Status: Backport [https://github.com/python-pillow/Pillow/commit/6faed707cfb760a4cbd726ddc8406f576cf35bf7]
+Backport note: Omit upstream test changes in Tests/test_decompression_bomb.py.
+Signed-off-by: Dickson Wu <dickson.wu@certik.com>
+---
+diff --git a/src/PIL/GifImagePlugin.py b/src/PIL/GifImagePlugin.py
+index 48ba0f9deb1..c6b327ef8f5 100644
+--- a/src/PIL/GifImagePlugin.py
++++ b/src/PIL/GifImagePlugin.py
+@@ -286,8 +286,9 @@ def _seek(self, frame: int, update_image: bool = True) -> None:
+ x0, y0 = i16(s, 0), i16(s, 2)
+ x1, y1 = x0 + i16(s, 4), y0 + i16(s, 6)
+ if (x1 > self.size[0] or y1 > self.size[1]) and update_image:
+- self._size = max(x1, self.size[0]), max(y1, self.size[1])
+- Image._decompression_bomb_check(self._size)
++ size = max(x1, self.size[0]), max(y1, self.size[1])
++ Image._decompression_bomb_check(size)
++ self._size = size
+ frame_dispose_extent = x0, y0, x1, y1
+ flags = s[8]
+
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https
file://CVE-2026-112393.patch \
file://CVE-2026-112398_CVE-2026-112403.patch \
file://CVE-2026-112900.patch \
+ file://CVE-2026-112400.patch \
"
SRCREV = "5c89d88eee199ba53f64581ea39b6a1bc52feb1a"