public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/libinstpatch] epel10.2: Apply a proposed fix for CVE-2026-111136
Date: Sat, 17 Oct 2026 12:33:11 GMT	[thread overview]
Message-ID: <179224039192.1.5034297160385537177.rpms-libinstpatch-e72df1e74720@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libinstpatch
Branch : epel10.2
Commit : e72df1e747209a8a74d48830d49d9d2c00a1da7b
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-17T10:53:51+01:00
Stats  : +39/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libinstpatch/c/e72df1e747209a8a74d48830d49d9d2c00a1da7b?branch=epel10.2

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 47a0488..0cc13ff 100644
--- a/libinstpatch.spec
+++ b/libinstpatch.spec
@@ -38,6 +38,14 @@ SourceLicense:  %{license} AND GPL-2.0-only
 %global forgeurl https://github.com/swami/libinstpatch
 Source:         %{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
+Patch:          %{forgeurl}/pull/87.patch
+
 BuildRequires:  cmake
 BuildRequires:  gcc
 BuildRequires:  ninja-build

                 reply	other threads:[~2026-10-17 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179224039192.1.5034297160385537177.rpms-libinstpatch-e72df1e74720@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox