summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorYogita Urade <yogita.urade@windriver.com>2025-01-14 08:03:21 +0000
committerSteve Sakoman <steve@sakoman.com>2025-01-18 06:21:02 -0800
commita551469f700bd621a1bbccbe904ac1bf749f1504 (patch)
tree4e78befae491de2afed41bb87b28a5bfc5bfaa6f /meta/recipes-connectivity
parent0c044be7430c1fd6c82b0379732b9c2bccae8bb0 (diff)
downloadpoky-a551469f700bd621a1bbccbe904ac1bf749f1504.tar.gz
ofono: fix CVE-2024-7546
oFono SimToolKit Heap-based Buffer Overflow Privilege Escalation Vulnerability. This vulnerability allows local attackers to execute arbitrary code on affected installations of oFono. An attacker must first obtain the ability to execute code on the target modem in order to exploit this vulnerability. The specific flaw exists within the parsing of STK command PDUs. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-23459. Reference: https://security-tracker.debian.org/tracker/CVE-2024-7546 Upstream patch: https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=79ea6677669e50b0bb9c231765adb4f81c375f63 (From OE-Core rev: 33b2a67b3134498e8c4845efddc7854b4d2315cd) Signed-off-by: Yogita Urade <yogita.urade@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/ofono/ofono/CVE-2024-7546.patch30
-rw-r--r--meta/recipes-connectivity/ofono/ofono_1.34.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono/CVE-2024-7546.patch b/meta/recipes-connectivity/ofono/ofono/CVE-2024-7546.patch
new file mode 100644
index 0000000000..aac6751625
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono/CVE-2024-7546.patch
@@ -0,0 +1,30 @@
1From 79ea6677669e50b0bb9c231765adb4f81c375f63 Mon Sep 17 00:00:00 2001
2From: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
3Date: Tue, 3 Dec 2024 21:43:52 +0200
4Subject: [PATCH] Fix CVE-2024-7546
5
6CVE: CVE-2024-7546
7Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=79ea6677669e50b0bb9c231765adb4f81c375f63]
8
9Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
10---
11 src/stkutil.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/src/stkutil.c b/src/stkutil.c
15index e1fd75c..88a715d 100644
16--- a/src/stkutil.c
17+++ b/src/stkutil.c
18@@ -1783,6 +1783,10 @@ static bool parse_dataobj_frame_layout(struct comprehension_tlv_iter *iter,
19
20 fl->layout = data[0];
21 fl->len = len - 1;
22+
23+ if (fl->len > sizeof(fl->size))
24+ return false;
25+
26 memcpy(fl->size, data + 1, fl->len);
27
28 return true;
29--
302.40.0
diff --git a/meta/recipes-connectivity/ofono/ofono_1.34.bb b/meta/recipes-connectivity/ofono/ofono_1.34.bb
index 0597caff3c..0c1e0ea6f8 100644
--- a/meta/recipes-connectivity/ofono/ofono_1.34.bb
+++ b/meta/recipes-connectivity/ofono/ofono_1.34.bb
@@ -22,6 +22,7 @@ SRC_URI = "\
22 file://CVE-2024-7543.patch \ 22 file://CVE-2024-7543.patch \
23 file://CVE-2024-7544.patch \ 23 file://CVE-2024-7544.patch \
24 file://CVE-2024-7545.patch \ 24 file://CVE-2024-7545.patch \
25 file://CVE-2024-7546.patch \
25" 26"
26SRC_URI[sha256sum] = "c0b96d3013447ec2bcb74579bef90e4e59c68dbfa4b9c6fbce5d12401a43aac7" 27SRC_URI[sha256sum] = "c0b96d3013447ec2bcb74579bef90e4e59c68dbfa4b9c6fbce5d12401a43aac7"
27 28