Skip to contentSkip to conversation

fluidsynth: patch CVE-2025-56225

PATCH Superseded Gyorgy Sarvari 1 participant 6 messages Jan 16

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 fluidsynth: patch CVE-2025-56225

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

Pick the PR content referenced by the NVD advisoy.

---
 .../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
meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/CVE-2025-56225.patch new file +25 -0
new file mode 100644
index 0000000000..a1de14ca19
@@ -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)
meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth_git.bb +5 -5
index 984f37b756..bcae74adca 100644
@@ -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', '')}"
 
#1 lore raw

PATCH 2/6 python3-django: upgrade 4.2.26 -> 4.2.27

Changelog:
- Fix CVE-2025-13372
- Fix CVE-2025-64460
- Fixed a regression in Django 4.2.26 where DisallowedRedirect was raised by HttpResponseRedirect and HttpResponsePermanentRedirect for URLs longer than 2048 characters. The limit is now 16384 characters

https://docs.djangoproject.com/en/6.0/releases/4.2.27/

---
 .../{python3-django_4.2.26.bb => python3-django_4.2.27.bb}    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-django_4.2.26.bb => python3-django_4.2.27.bb} (73%)
meta-python/recipes-devtools/python/python3-django_4.2.27.bb renamed from meta-python/recipes-devtools/python/python3-django_4.2.26.bb +2 -2
similarity index 73%
rename from meta-python/recipes-devtools/python/python3-django_4.2.26.bb
rename to meta-python/recipes-devtools/python/python3-django_4.2.27.bb
index 7f0b1c9239..32fd235937 100644
@@ -2,7 +2,7 @@ require python-django.inc
 #From 4.2.22 onwards setuptools configuration migrated to pyproject.toml
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "9398e487bcb55e3f142cb56d19fbd9a83e15bb03a97edc31f408361ee76d9d7a"
+SRC_URI[sha256sum] = "b865fbe0f4a3d1ee36594c5efa42b20db3c8bbb10dff0736face1c6e4bda5b92"
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-sqlparse \
@@ -13,5 +13,5 @@ PYPI_PACKAGE = "django"
 
 # Set DEFAULT_PREFERENCE so that the LTS version of django is built by
 # default. To build the 4.x branch, 
-# PREFERRED_VERSION_python3-django = "4.2.26" can be added to local.conf
+# PREFERRED_VERSION_python3-django = "4.2.27" can be added to local.conf
 DEFAULT_PREFERENCE = "-1"
#2 lore raw

PATCH 3/6 python3-bidict: upgrade 0.22.0 -> 0.22.1

In reply to Gyorgy Sarvari

From: Wang Mingyu <[email protected]>

Changelog:
==========
-Only include the source code in the source distribution. This reduces the
size of the source distribution from 200kB to 30kB.
-Fix the return type hint of bidict.inverted() to return an Iterator, rather
than an Iterable.

---
 .../{python3-bidict_0.22.0.bb => python3-bidict_0.22.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-bidict_0.22.0.bb => python3-bidict_0.22.1.bb} (79%)
meta-python/recipes-devtools/python/python3-bidict_0.22.1.bb renamed from meta-python/recipes-devtools/python/python3-bidict_0.22.0.bb +1 -1
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-bidict_0.22.0.bb
rename to meta-python/recipes-devtools/python/python3-bidict_0.22.1.bb
index 088931d148..1ed0af81a1 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://bidict.readthedocs.io/"
 LICENSE = "MPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=858e74278ef3830d46481172ae03c819"
 
-SRC_URI[sha256sum] = "5c826b3e15e97cc6e615de295756847c282a79b79c5430d3bfc909b1ac9f5bd8"
+SRC_URI[sha256sum] = "1e0f7f74e4860e6d0943a05d4134c63a2fad86f3d4732fb265bd79e4e856d81d"
 
 inherit pypi python_setuptools_build_meta
 
#3 lore raw

PATCH 4/6 python3-werkzeug: upgrade 2.1.1 -> 2.1.2

In reply to Gyorgy Sarvari

From: Xu Huan <[email protected]>

Changelog:
==========
The development server does not set Transfer-Encoding: chunked for 1xx, 204, 304, and HEAD responses. Response HTML for exceptions and redirects starts with <!doctype html> and <html lang=en>.
Fix ability to set some cache_control attributes to False.
Disable keep-alive connections in the development server, which are not supported sufficiently by Python’s http.server.

(cherry picked from commit 0704ebad0d31eec1737e0313b0f221085a9e8166)

Rebased patches in Kirkstone.

---
 .../python/python3-werkzeug/CVE-2023-23934.patch            | 3 +--
 .../python/python3-werkzeug/CVE-2023-25577.patch            | 6 +++---
 ...{python3-werkzeug_2.1.1.bb => python3-werkzeug_2.1.2.bb} | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-werkzeug_2.1.1.bb => python3-werkzeug_2.1.2.bb} (94%)
meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-23934.patch +1 -2
index 3a0f4324a1..69c3e3e56c 100644
@@ -33,9 +33,8 @@ index 6e809ba..13ef75b 100644
      resource use.
 +-   A cookie header that starts with ``=`` is treated as an empty key and discarded,
 +    rather than stripping the leading ``==``.
-+
  
- Version 2.1.1
+ Version 2.1.2
  -------------
 diff --git a/src/werkzeug/_internal.py b/src/werkzeug/_internal.py
 index a8b3523..d6290ba 100644
meta-python/recipes-devtools/python/python3-werkzeug/CVE-2023-25577.patch +3 -3
index 61551d8fca..351f939b78 100644
@@ -25,15 +25,15 @@ index a351d7c..6e809ba 100644
 +++ b/CHANGES.rst
 @@ -1,5 +1,10 @@
  .. currentmodule:: werkzeug
-
+ 
 +-   Specify a maximum number of multipart parts, default 1000, after which a
 +    ``RequestEntityTooLarge`` exception is raised on parsing. This mitigates a DoS
 +    attack where a larger number of form/file parts would result in disproportionate
 +    resource use.
 +
- Version 2.1.1
+ Version 2.1.2
  -------------
-
+ 
 diff --git a/docs/request_data.rst b/docs/request_data.rst
 index 83c6278..e55841e 100644
 --- a/docs/request_data.rst
meta-python/recipes-devtools/python/python3-werkzeug_2.1.2.bb renamed from meta-python/recipes-devtools/python/python3-werkzeug_2.1.1.bb +1 -1
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-werkzeug_2.1.1.bb
rename to meta-python/recipes-devtools/python/python3-werkzeug_2.1.2.bb
index 0a18a48406..3c50d19173 100644
@@ -18,7 +18,7 @@ SRC_URI += "file://CVE-2023-25577.patch \
             file://CVE-2024-34069-0002.patch \
             file://CVE-2024-49767.patch"
 
-SRC_URI[sha256sum] = "f8e89a20aeabbe8a893c24a461d3ee5dad2123b05cc6abd73ceed01d39c3ae74"
+SRC_URI[sha256sum] = "1ce08e8093ed67d638d63879fd1ba3735817f7a80de3674d293f5984f25fb6e6"
 
 inherit pypi setuptools3
 
#4 lore raw

PATCH 5/6 python3-smpplib: upgrade 2.2.1 -> 2.2.2

In reply to Gyorgy Sarvari

From: Wang Mingyu <[email protected]>

Changelog:
==========
Added python 3.10 tests to CircleCI
fix socket recv error being silently ignored Refactored Client.read_pdu()
Refactored Client.send_pdu()
increment sequence of commands as spec (fixes #214)

(cherry picked from commit 50bbe6ab5f49cc525fb85a985dd5981e1c86815e)
---
 .../{python3-smpplib_2.2.1.bb => python3-smpplib_2.2.2.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-smpplib_2.2.1.bb => python3-smpplib_2.2.2.bb} (87%)
meta-python/recipes-devtools/python/python3-smpplib_2.2.2.bb renamed from meta-python/recipes-devtools/python/python3-smpplib_2.2.1.bb +1 -1
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-smpplib_2.2.1.bb
rename to meta-python/recipes-devtools/python/python3-smpplib_2.2.2.bb
index be0bafd33f..5c635d6fb0 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://README.md;md5=8b4e2ac8cf248f7b991784f88b630852"
 
 PYPI_PACKAGE = "smpplib"
-SRC_URI[sha256sum] = "c0b01947b47e404f42ccb59e906b6e4eb507963c971d59b44350db0f29c76166"
+SRC_URI[sha256sum] = "f2191e73b24dba94f2889bf2ea1a60aeef6bd43afd3ddbbc632d7e41d9f30e47"
 
 inherit pypi setuptools3 ptest
 
#5 lore raw

PATCH 6/6 python3-smpplib: upgrade 2.2.2 -> 2.2.3

In reply to Gyorgy Sarvari

From: Wang Mingyu <[email protected]>

Changelog:
Fix: correct UCS2 part length following #184

(cherry picked from commit d4cb5d585ddf970e575dc71a9175a541c3c02269)
---
 .../{python3-smpplib_2.2.2.bb => python3-smpplib_2.2.3.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-smpplib_2.2.2.bb => python3-smpplib_2.2.3.bb} (87%)
meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb renamed from meta-python/recipes-devtools/python/python3-smpplib_2.2.2.bb +1 -1
similarity index 87%
rename from meta-python/recipes-devtools/python/python3-smpplib_2.2.2.bb
rename to meta-python/recipes-devtools/python/python3-smpplib_2.2.3.bb
index 5c635d6fb0..25f8f6afdd 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://README.md;md5=8b4e2ac8cf248f7b991784f88b630852"
 
 PYPI_PACKAGE = "smpplib"
-SRC_URI[sha256sum] = "f2191e73b24dba94f2889bf2ea1a60aeef6bd43afd3ddbbc632d7e41d9f30e47"
+SRC_URI[sha256sum] = "5215a95b0538d26f189600e0982b31da8281f7453cd6e2862c5b21e3e1002331"
 
 inherit pypi setuptools3 ptest