32 lines
836 B
Diff
32 lines
836 B
Diff
From b6c102ae6db8f30ea327b6448c5d071f00cc573d Mon Sep 17 00:00:00 2001
|
|
From: John Thacker <johnthacker@gmail.com>
|
|
Date: Fri, 6 Feb 2026 20:42:03 -0500
|
|
Subject: [PATCH] RF4CE: Check that the input data is long enough
|
|
|
|
Prevent illegal memory access.
|
|
|
|
Fix: #21009
|
|
|
|
AI-Assisted: no
|
|
---
|
|
epan/dissectors/packet-rf4ce-secur.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/epan/dissectors/packet-rf4ce-secur.c b/epan/dissectors/packet-rf4ce-secur.c
|
|
index 3cf40993d89..09a0ae50c31 100644
|
|
--- a/epan/dissectors/packet-rf4ce-secur.c
|
|
+++ b/epan/dissectors/packet-rf4ce-secur.c
|
|
@@ -627,6 +627,10 @@ bool decrypt_data(
|
|
return false;
|
|
}
|
|
|
|
+ if (*len < payload_offset + RF4CE_CCM_M) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
while (idx < RF4CE_NWK_KEY_STORAGE_SIZE)
|
|
{
|
|
if (nwk_key_storage[idx].is_used)
|
|
--
|
|
GitLab
|
|
|