package/fluidsynth: upstream patch for CVE-2026-58264
PATCH 1/2 package/fluidsynth: upstream patch for CVE-2026-58264
This patch fixes the following vulnerability:
- CVE-2026-58264:
FluidSynth is a software synthesizer based on the SoundFont 2 specifications. From 1.1.2 until 2.5.6, the FluidSynth command handler accepts a pitch_bend_range command whose channel argument is not bounds checked before the supplied value is written through the selected synth channel. An out-of-range channel can therefore cause an out-of-bounds heap write, leading to denial of service or possible code execution. The issue is remotely reachable when the TCP server is enabled through new_fluid_server() or fluidsynth -s, and it is locally reachable through malicious commands delivered to the FluidSynth shell on standard input. Applications that do not use the shell, command handler, or TCP server are not affected. This issue is fixed in version 2.5.6.
https://www.cve.org/CVERecord?id=CVE-2026-58264
This vulnerability has been fixed on the master branch by the following package bump [1].
[1] 566bdcb97f package/fluidsynth: security bump to version 2.5.7
--- package/fluidsynth/0002-CVE-2026-58264.patch | 26 ++++++++++++++++++++ package/fluidsynth/fluidsynth.mk | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 package/fluidsynth/0002-CVE-2026-58264.patch
package/fluidsynth/0002-CVE-2026-58264.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 762a3bd39a431cd45abf3bbcce7286c87909d087 Mon Sep 17 00:00:00 2001 +From: derselbst <[email protected]> +Date: Fri, 19 Jun 2026 20:11:54 +0200 +Subject: [PATCH] Fix a heap-based buffer overrun in pitch_bend_range command + +Upstream: https://github.com/FluidSynth/fluidsynth/commit/762a3bd39a431cd45abf3bbcce7286c87909d087 +CVE: CVE-2026-58264 +Signed-off-by: Thomas Perale <[email protected]> +--- + src/bindings/fluid_cmd.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/bindings/fluid_cmd.c b/src/bindings/fluid_cmd.c +index 19cb78216..76723a2ba 100644 +--- a/src/bindings/fluid_cmd.c ++++ b/src/bindings/fluid_cmd.c +@@ -795,8 +795,7 @@ fluid_handle_pitch_bend_range(void *data, int ac, char **av, fluid_ostream_t out + + channum = atoi(av[0]); + value = atoi(av[1]); +- fluid_channel_set_pitch_wheel_sensitivity(handler->synth->channel[channum], value); +- return FLUID_OK; ++ return fluid_synth_pitch_wheel_sens(handler->synth, channum, value); + } + + int
package/fluidsynth/fluidsynth.mk +3 -0
@@ -15,6 +15,9 @@ FLUIDSYNTH_DEPENDENCIES = libglib2 # 0001-Fix-a-nullpointer-dereference-during-legato-mode.patch FLUIDSYNTH_IGNORE_CVES += CVE-2025-56225 +# 0002-CVE-2026-58264.patch +FLUIDSYNTH_IGNORE_CVES += CVE-2026-58264 + ifeq ($(BR2_PACKAGE_FLUIDSYNTH_ALSA_LIB),y) FLUIDSYNTH_CONF_OPTS += -Denable-alsa=1 FLUIDSYNTH_DEPENDENCIES += alsa-lib
Signature · 6 lines
2.56.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/fluidsynth: upstream patch for CVE-2026-61714
This patch fixes the following vulnerability:
- CVE-2026-61714:
FluidSynth is a software synthesizer based on the SoundFont 2 specifications. From 2.2.4 until 2.5.6, configuring synth.midi- channels above 16 allows the MIDI player to index _fluid_player_t::channel_isplaying outside its fixed-size heap allocation while tracking active channels. The resulting out-of-bounds reads and writes invoke undefined behavior and may compromise confidentiality, integrity, or availability. No crafted MIDI file is required because the unsafe condition is created by the channel-count configuration itself. Keeping synth.midi-channels at its default value of 16 avoids the vulnerable path. This issue is fixed in version 2.5.6.
https://www.cve.org/CVERecord?id=CVE-2026-61714
This vulnerability has been fixed on the master branch by the following package bump [1].
[1] 566bdcb97f package/fluidsynth: security bump to version 2.5.7
--- package/fluidsynth/0003-CVE-2026-61714.patch | 48 ++++++++++++++++++++ package/fluidsynth/fluidsynth.mk | 3 ++ 2 files changed, 51 insertions(+) create mode 100644 package/fluidsynth/0003-CVE-2026-61714.patch
package/fluidsynth/0003-CVE-2026-61714.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 772702e00cc6acc7c607efb40283e2269211effc Mon Sep 17 00:00:00 2001 +From: derselbst <[email protected]> +Date: Sat, 27 Jun 2026 08:51:10 +0200 +Subject: [PATCH] Fix heap buffer overflow in MIDI player GHSA-976m-35rw-h3m6 + +CVE: CVE-2026-61714 +Upstream: https://github.com/FluidSynth/fluidsynth/commit/772702e00cc6acc7c607efb40283e2269211effc +Signed-off-by: Thomas Perale <[email protected]> +--- + src/midi/fluid_midi.c | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/src/midi/fluid_midi.c b/src/midi/fluid_midi.c +index 6a501b277..39c06c910 100644 +--- a/src/midi/fluid_midi.c ++++ b/src/midi/fluid_midi.c +@@ -1617,10 +1617,11 @@ fluid_track_send_events(fluid_track_t *track, + { + if(player->playback_callback) + { ++ int *chan_is_playing = &player->channel_isplaying[event->channel % MAX_NUMBER_OF_CHANNELS]; + player->playback_callback(player->playback_userdata, event); +- if(event->type == NOTE_ON && event->param2 != 0 && !player->channel_isplaying[event->channel]) ++ if(event->type == NOTE_ON && event->param2 != 0 && !*chan_is_playing) + { +- player->channel_isplaying[event->channel] = TRUE; ++ *chan_is_playing = TRUE; + } + } + } +@@ -2138,7 +2139,7 @@ fluid_player_callback(void *data, unsigned int msec) + { + if(fluid_atomic_int_get(&player->stopping)) + { +- for(i = 0; i < synth->midi_channels; i++) ++ for(i = 0; i < MAX_NUMBER_OF_CHANNELS; i++) + { + if(player->channel_isplaying[i]) + { +@@ -2186,7 +2187,7 @@ fluid_player_callback(void *data, unsigned int msec) + seek_ticks = fluid_atomic_int_get(&player->seek_ticks); + if(seek_ticks >= 0) + { +- for(i = 0; i < synth->midi_channels; i++) ++ for(i = 0; i < MAX_NUMBER_OF_CHANNELS; i++) + { + if(player->channel_isplaying[i]) + {
package/fluidsynth/fluidsynth.mk +3 -0
@@ -18,6 +18,9 @@ FLUIDSYNTH_IGNORE_CVES += CVE-2025-56225 # 0002-CVE-2026-58264.patch FLUIDSYNTH_IGNORE_CVES += CVE-2026-58264 +#0003-CVE-2026-61714.patch +FLUIDSYNTH_IGNORE_CVES += CVE-2026-61714 + ifeq ($(BR2_PACKAGE_FLUIDSYNTH_ALSA_LIB),y) FLUIDSYNTH_CONF_OPTS += -Denable-alsa=1 FLUIDSYNTH_DEPENDENCIES += alsa-lib
Signature · 6 lines
2.56.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot