Skip to contentSkip to conversation

libmodbus: patch CVE-2024-10918

PATCH New Peter Marko 1 participant 1 message Mar 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmodbus: patch CVE-2024-10918

From: Peter Marko <[email protected]>

Pick commit mentioning the bug and two follow-up commits mentioning the first commit.

Tested by running the test-suite (test starter scripts were copied from scarthgap version which has them working).

---
 .../recipes-extended/libmodbus/libmodbus.inc  |   7 +-
 .../libmodbus/CVE-2024-10918-01.patch         | 159 ++++++++++++
 .../libmodbus/CVE-2024-10918-02.patch         | 113 +++++++++
 .../libmodbus/CVE-2024-10918-03.patch         | 240 ++++++++++++++++++
 4 files changed, 518 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-01.patch
 create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-02.patch
 create mode 100644 meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-03.patch
meta-oe/recipes-extended/libmodbus/libmodbus.inc +6 -1
index 0857cc455b..62252a39d2 100644
@@ -8,7 +8,12 @@ SECTION = "libs"
 LICENSE = "LGPL-2.1-or-later"
 LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
 
-SRC_URI = "http://libmodbus.org/releases/${BP}.tar.gz"
+SRC_URI = " \
+    http://libmodbus.org/releases/${BP}.tar.gz \
+    file://CVE-2024-10918-01.patch \
+    file://CVE-2024-10918-02.patch \
+    file://CVE-2024-10918-03.patch \
+"
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[documentation] = "--with-documentation,--without-documentation,asciidoc-native xmlto-native"
meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-01.patch new file +159 -0

159 lines not on this page · raw message

meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-02.patch new file +113 -0

113 lines not on this page · raw message

meta-oe/recipes-extended/libmodbus/libmodbus/CVE-2024-10918-03.patch new file +240 -0

240 lines not on this page · raw message