Skip to contentSkip to conversation

stkutil: ensure data fits in buffer

PATCH Applied Sicelo A. Mhlongo 2 participants 2 messages Dec 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stkutil: ensure data fits in buffer

Fixes CVE-2024-7545

---
 src/stkutil.c | 4 ++++
 1 file changed, 4 insertions(+)
src/stkutil.c +4 -0
index 60cad102..bd261b1c 100644
@@ -1916,6 +1916,10 @@ static bool parse_dataobj_mms_content_id(
 
 	data = comprehension_tlv_iter_get_data(iter);
 	mci->len = len;
+
+	if (len > sizeof(mci->id))
+		return false;
+
 	memcpy(mci->id, data, len);
 
 	return true;
Signature · 1 line
2.45.2
#1 lore raw
This patch was applied to ofono.git (master) by Denis Kenzior <[email protected]>:

Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:

Quoted 4 lines · On Wed, 4 Dec 2024 12:07:34 +0200 you wrote:

Fixes CVE-2024-7545

---
 src/stkutil.c | 4 ++++
 1 file changed, 4 insertions(+)

Here is the summary with links:
- stkutil: ensure data fits in buffer

    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=556e14548c38

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html