Details: https://nvd.nist.gov/vuln/detail/CVE-2025-56225

Pick the PR content referenced by the NVD advisoy.

Signed-off-by: Gyorgy Sarvari <[email protected]>
---
 .../fluidsynth/CVE-2025-56225.patch           | 25 +++++++++++++++++++
 .../fluidsynth/fluidsynth_git.bb              | 10 ++++----
 2 files changed, 30 insertions(+), 5 deletions(-)
 create mode 100644 
meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/CVE-2025-56225.patch

diff --git 
a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/CVE-2025-56225.patch 
b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/CVE-2025-56225.patch
new file mode 100644
index 0000000000..a1de14ca19
--- /dev/null
+++ 
b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/CVE-2025-56225.patch
@@ -0,0 +1,25 @@
+From 18ab31c1dad215188edf2bedc78be98a32492ec9 Mon Sep 17 00:00:00 2001
+From: "Tom M." <[email protected]>
+Date: Mon, 14 Jul 2025 18:13:38 +0200
+Subject: [PATCH] Fix a nullpointer dereference during legato mode (#1607)
+
+CVE: CVE-2025-56225
+Upstream-Status: Backport 
[https://github.com/FluidSynth/fluidsynth/commit/45f2a79f4265dcc4f98cfbafdb10727fb1c0d411]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ src/synth/fluid_synth_monopoly.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/synth/fluid_synth_monopoly.c 
b/src/synth/fluid_synth_monopoly.c
+index d1de1319..6e6e2a90 100644
+--- a/src/synth/fluid_synth_monopoly.c
++++ b/src/synth/fluid_synth_monopoly.c
+@@ -410,7 +410,7 @@ int fluid_synth_noteoff_mono_LOCAL(fluid_synth_t *synth, 
int chan, int key)
+                 fluid_channel_breath_msb(channel))
+         {
+             /* legato playing detection */
+-            if(channel->mode  & FLUID_CHANNEL_LEGATO_PLAYING)
++            if (channel->mode & FLUID_CHANNEL_LEGATO_PLAYING && 
channel->preset != NULL)
+             {
+                 /* the list contains others notes */
+                 if(i_prev >= 0)
diff --git a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb 
b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb
index 984f37b756..bcae74adca 100644
--- a/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb
+++ b/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb
@@ -2,11 +2,11 @@ require ${BPN}.inc
 
 DEPENDS = "${BPN}-native alsa-lib ncurses glib-2.0"
 
-SRC_URI += " \
-    file://0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch \
-    file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \
-    file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \
-"
+SRC_URI += 
"file://0001-Do-not-build-gentables-helper-we-have-to-use-native-.patch \
+           
file://0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch \
+           
file://0003-Use-ARM-NEON-accelaration-for-float-multithreaded-se.patch \
+           file://CVE-2025-56225.patch \
+           "
 
 EXTRA_OECMAKE = "-Denable-floats=ON 
-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123521): 
https://lists.openembedded.org/g/openembedded-devel/message/123521
Mute This Topic: https://lists.openembedded.org/mt/117294290/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to