fluidsynth: patch CVE-2025-56225

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
Ankur Tyagi 2026-01-18 15:30:21 +13:00 committed by Anuj Mittal
parent 31777981d7
commit 0feefa82c0
No known key found for this signature in database
GPG Key ID: 4340AEFE69F5085C
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From b2a3432639798270b46f0a35c7e25196978389b4 Mon Sep 17 00:00:00 2001
From: "Tom M." <tom.mbrt@googlemail.com>
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: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
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)

View File

@ -10,6 +10,7 @@ SRC_URI = " \
git://github.com/FluidSynth/fluidsynth.git;branch=master;protocol=https \
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 \
"
SRCREV = "5ecdc4568e45123216c6888892caad07918ef127"