public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libinstpatch] epel8: Apply a proposed fix for CVE-2026-111136
@ 2026-10-18  7:27 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-18  7:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libinstpatch
Branch : epel8
Commit : c36a67b6d0989eb4a875f899736c699f31becfa6
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-18T08:27:00+01:00
Stats  : +40/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libinstpatch/c/c36a67b6d0989eb4a875f899736c699f31becfa6?branch=epel8

Log:
Apply a proposed fix for CVE-2026-111136

---
diff --git a/87.patch b/87.patch
new file mode 100644
index 0000000..3cdd3b1
--- /dev/null
+++ b/87.patch
@@ -0,0 +1,31 @@
+From b8a6ff845d3d8a6b947567118d8ea4201759a964 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sat, 17 Oct 2026 08:48:04 +0100
+Subject: [PATCH] Fix for CVE-2026-111136
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Based on the “short term” fix proposed by @Haind03 (HaiND) in
+https://hackmd.io/@haind-pwn/cve-2026-111136-libinstpatch-sf2-generator-id-oob-write#Fix.
+---
+ libinstpatch/IpatchSF2Gen.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/libinstpatch/IpatchSF2Gen.c b/libinstpatch/IpatchSF2Gen.c
+index 1a4246ff..677a6731 100644
+--- a/libinstpatch/IpatchSF2Gen.c
++++ b/libinstpatch/IpatchSF2Gen.c
+@@ -191,7 +191,11 @@ _ipatch_sf2_gen_deinit (void)
+ gboolean
+ ipatch_sf2_gen_is_valid(guint genid, IpatchSF2GenPropsType propstype)
+ {
+-    if(genid == IPATCH_SF2_GEN_SAMPLE_MODES
++    if(genid >= IPATCH_SF2_GEN_COUNT)
++    {
++        return (FALSE);
++    }
++    else if(genid == IPATCH_SF2_GEN_SAMPLE_MODES
+             && propstype == IPATCH_SF2_GEN_PROPS_INST_GLOBAL)
+     {
+         return (FALSE);

diff --git a/libinstpatch.spec b/libinstpatch.spec
index 28c6820..8ddaf33 100644
--- a/libinstpatch.spec
+++ b/libinstpatch.spec
@@ -38,6 +38,14 @@ License:        LGPL-2.1-only AND LicenseRef-Fedora-Public-Domain
 %global forgeurl https://github.com/swami/libinstpatch
 Source0:        %{forgeurl}/archive/v%{version}/libinstpatch-%{version}.tar.gz
 
+# Fix for CVE-2026-111136
+# https://github.com/swami/libinstpatch/pull/87
+# https://github.com/swami/libinstpatch/issues/86
+# https://www.cve.org/CVERecord?id=CVE-2026-111136
+# https://bugzilla.redhat.com/show_bug.cgi?id=2554067
+# https://bugzilla.redhat.com/show_bug.cgi?id=2554068
+Patch0:          %{forgeurl}/pull/87.patch
+
 BuildRequires:  cmake
 BuildRequires:  gcc
 BuildRequires:  ninja-build
@@ -114,7 +122,7 @@ libinstpatch.
 
 
 %prep
-%autosetup
+%autosetup -p1
 
 # Remove example for nonexistent Python bindings
 find examples -type f -name '*.py' -print -delete

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-18  7:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-18  7:27 [rpms/libinstpatch] epel8: Apply a proposed fix for CVE-2026-111136 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox