summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorYogita Urade <yogita.urade@windriver.com>2025-01-14 08:03:20 +0000
committerSteve Sakoman <steve@sakoman.com>2025-01-18 06:21:02 -0800
commit0c044be7430c1fd6c82b0379732b9c2bccae8bb0 (patch)
tree1d4ea9bf8dea45cdb61edead28505c3f897a95c6 /meta/recipes-connectivity
parent481b2600a934965246311afd5bdb86a299beb310 (diff)
downloadpoky-0c044be7430c1fd6c82b0379732b9c2bccae8bb0.tar.gz
ofono: fix CVE-2024-7545
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-23458. Reeference: https://security-tracker.debian.org/tracker/CVE-2024-7545 Upstream patch: https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=556e14548c38c2b96d85881542046ee7ed750bb5 (From OE-Core rev: f062d2e4ad3d0a35a2dadda679632d5d213b8487) 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-7545.patch32
-rw-r--r--meta/recipes-connectivity/ofono/ofono_1.34.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono/CVE-2024-7545.patch b/meta/recipes-connectivity/ofono/ofono/CVE-2024-7545.patch
new file mode 100644
index 0000000000..80dc3c9ab0
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono/CVE-2024-7545.patch
@@ -0,0 +1,32 @@
1From 556e14548c38c2b96d85881542046ee7ed750bb5 Mon Sep 17 00:00:00 2001
2From: Sicelo A. Mhlongo <absicsz@gmail.com>
3Date: Wed, Dec 4 12:07:34 2024 +0200
4Subject: [PATCH] stkutil: ensure data fits in buffer
5
6Fixes CVE-2024-7545
7
8CVE: CVE-2024-7545
9Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=556e14548c38c2b96d85881542046ee7ed750bb5]
10
11Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
12---
13 src/stkutil.c | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/src/stkutil.c b/src/stkutil.c
17index 475caaa..e1fd75c 100644
18--- a/src/stkutil.c
19+++ b/src/stkutil.c
20@@ -1938,6 +1938,10 @@ static bool parse_dataobj_mms_content_id(
21
22 data = comprehension_tlv_iter_get_data(iter);
23 mci->len = len;
24+
25+ if (len > sizeof(mci->id))
26+ return false;
27+
28 memcpy(mci->id, data, len);
29
30 return true;
31--
322.40.0
diff --git a/meta/recipes-connectivity/ofono/ofono_1.34.bb b/meta/recipes-connectivity/ofono/ofono_1.34.bb
index 54710aa9fd..0597caff3c 100644
--- a/meta/recipes-connectivity/ofono/ofono_1.34.bb
+++ b/meta/recipes-connectivity/ofono/ofono_1.34.bb
@@ -21,6 +21,7 @@ SRC_URI = "\
21 file://CVE-2024-7539.patch \ 21 file://CVE-2024-7539.patch \
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" 25"
25SRC_URI[sha256sum] = "c0b96d3013447ec2bcb74579bef90e4e59c68dbfa4b9c6fbce5d12401a43aac7" 26SRC_URI[sha256sum] = "c0b96d3013447ec2bcb74579bef90e4e59c68dbfa4b9c6fbce5d12401a43aac7"
26 27