diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-26529.patch | 33 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-26529.patch b/meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-26529.patch new file mode 100644 index 0000000000..ea3f472f30 --- /dev/null +++ b/meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-26529.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From e29799cba6f1d08cf6463a2b190c0e6502b885df Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Zillgith <michael.zillgith@mz-automation.de> | ||
| 3 | Date: Fri, 2 Feb 2024 06:44:47 +0000 | ||
| 4 | Subject: [PATCH] CVE-2024-26529 | ||
| 5 | |||
| 6 | fixed - null pointer dereference in mmsServer_handleDeleteNamedVariableListRequest when receiving malformed message (LIB61850-430) | ||
| 7 | |||
| 8 | CVE: CVE-2024-26529 | ||
| 9 | Upstream-Status: Backport [https://github.com/mz-automation/libiec61850/commit/cf94d64206cf53298edf4799a75b31657bb7cbb3] | ||
| 10 | |||
| 11 | (cherry picked from commit cf94d64206cf53298edf4799a75b31657bb7cbb3) | ||
| 12 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 13 | --- | ||
| 14 | src/mms/iso_mms/server/mms_named_variable_list_service.c | 6 ++++++ | ||
| 15 | 1 file changed, 6 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/src/mms/iso_mms/server/mms_named_variable_list_service.c b/src/mms/iso_mms/server/mms_named_variable_list_service.c | ||
| 18 | index 3a27061c..3365f771 100644 | ||
| 19 | --- a/src/mms/iso_mms/server/mms_named_variable_list_service.c | ||
| 20 | +++ b/src/mms/iso_mms/server/mms_named_variable_list_service.c | ||
| 21 | @@ -140,6 +140,12 @@ mmsServer_handleDeleteNamedVariableListRequest(MmsServerConnection connection, | ||
| 22 | mmsMsg_createMmsRejectPdu(&invokeId, MMS_ERROR_REJECT_INVALID_PDU, response); | ||
| 23 | goto exit_function; | ||
| 24 | } | ||
| 25 | + | ||
| 26 | + if (request->listOfVariableListName == NULL) | ||
| 27 | + { | ||
| 28 | + mmsMsg_createMmsRejectPdu(&invokeId, MMS_ERROR_REJECT_INVALID_PDU, response); | ||
| 29 | + goto exit_function; | ||
| 30 | + } | ||
| 31 | |||
| 32 | long scopeOfDelete = DeleteNamedVariableListRequest__scopeOfDelete_specific; | ||
| 33 | |||
diff --git a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb index 0e1f50164a..c41c570e31 100644 --- a/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb +++ b/meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb | |||
| @@ -18,6 +18,7 @@ SRCREV = "6f557c490f0b46ab5d7ef1b01bb3bc9fab3f442f" | |||
| 18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https \ | 18 | SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https \ |
| 19 | file://0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch \ | 19 | file://0001-pyiec61850-don-t-break-CMAKE_INSTALL_PATH-by-trying-.patch \ |
| 20 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ | 20 | file://0001-pyiec61850-Use-CMAKE_INSTALL_LIBDIR-from-GNUInstallD.patch \ |
| 21 | file://CVE-2024-26529.patch \ | ||
| 21 | " | 22 | " |
| 22 | 23 | ||
| 23 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
