mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
ofono: patch CVE-2023-4232
Cherry-pick commit https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=2ff2da7ac374a790f8b2a0216bcb4e3126498225 (From OE-Core rev: 476ef12ab91aada032ea0e6acc5a0044497ace25) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
87143c52d6
commit
30506f0140
@@ -0,0 +1,31 @@
|
|||||||
|
From 2ff2da7ac374a790f8b2a0216bcb4e3126498225 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Sicelo A. Mhlongo" <absicsz@gmail.com>
|
||||||
|
Date: Wed, 4 Dec 2024 10:18:52 +0200
|
||||||
|
Subject: [PATCH] smsutil: check status report fits in buffer
|
||||||
|
|
||||||
|
Fixes CVE-2023-4232
|
||||||
|
|
||||||
|
CVE: CVE-2023-4232
|
||||||
|
Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=2ff2da7ac374a790f8b2a0216bcb4e3126498225]
|
||||||
|
Signed-off-by: Peter Marko <peter.marko@siemens.com>
|
||||||
|
---
|
||||||
|
src/smsutil.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/smsutil.c b/src/smsutil.c
|
||||||
|
index ac89f16c..a706e26f 100644
|
||||||
|
--- a/src/smsutil.c
|
||||||
|
+++ b/src/smsutil.c
|
||||||
|
@@ -1088,6 +1088,9 @@ static gboolean decode_status_report(const unsigned char *pdu, int len,
|
||||||
|
if ((len - offset) < expected)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
+ if (expected > (int)sizeof(out->status_report.ud))
|
||||||
|
+ return FALSE;
|
||||||
|
+
|
||||||
|
memcpy(out->status_report.ud, pdu + offset, expected);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.30.2
|
||||||
|
|
||||||
@@ -23,6 +23,7 @@ SRC_URI = "\
|
|||||||
file://CVE-2024-7546.patch \
|
file://CVE-2024-7546.patch \
|
||||||
file://CVE-2024-7547.patch \
|
file://CVE-2024-7547.patch \
|
||||||
file://CVE-2024-7540_CVE-2024-7541_CVE-2024-7542.patch \
|
file://CVE-2024-7540_CVE-2024-7541_CVE-2024-7542.patch \
|
||||||
|
file://CVE-2023-4232.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "93580adc1afd1890dc516efb069de0c5cdfef014415256ddfb28ab172df2d11d"
|
SRC_URI[sha256sum] = "93580adc1afd1890dc516efb069de0c5cdfef014415256ddfb28ab172df2d11d"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user