From: "Sicelo A. Mhlongo" <absicsz@gmail.com>
To: ofono@lists.linux.dev
Cc: ivo.g.dimitrov.75@gmail.com, "Sicelo A. Mhlongo" <absicsz@gmail.com>
Subject: [PATCH] stkutil: ensure data fits in buffer
Date: Wed, 4 Dec 2024 12:07:34 +0200 [thread overview]
Message-ID: <20241204100758.4931-1-absicsz@gmail.com> (raw)
Fixes CVE-2024-7545
---
src/stkutil.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/stkutil.c b/src/stkutil.c
index 60cad102..bd261b1c 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -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;
--
2.45.2
next reply other threads:[~2024-12-04 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 10:07 Sicelo A. Mhlongo [this message]
2024-12-04 18:00 ` [PATCH] stkutil: ensure data fits in buffer patchwork-bot+ofono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241204100758.4931-1-absicsz@gmail.com \
--to=absicsz@gmail.com \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=ofono@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox