Skip to contentSkip to conversation

suricata: update to 7.0.10

PATCH New Clayton Casciato 1 participant 1 message May 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 suricata: update to 7.0.10

7.0.3:
CVE-2024-23835
CVE-2024-23836
CVE-2024-24568

7.0.4:
CVE-2024-28870

7.0.5:
CVE-2024-32663
CVE-2024-32664
CVE-2024-32867

7.0.6:
CVE-2024-37151
CVE-2024-38534
CVE-2024-38535
CVE-2024-38536

7.0.7:
CVE-2024-47187
CVE-2024-47188
CVE-2024-47522
CVE-2024-45795
CVE-2024-45796
CVE-2024-45797

7.0.8:
CVE-2024-55605
CVE-2024-55626
CVE-2024-55627
CVE-2024-55628
CVE-2024-55629

7.0.9:
CVE-2025-29915
CVE-2025-29916
CVE-2025-29917
CVE-2025-29918

7.0.10:
"This is an extra release to address a critical issue in 7.0.9 affecting AF_PACKET users: setting a BPF would cause Suricata to fail to start up"

---
Sponsor: 21SoftWare LLC

I wasn't able to use update_crates, so that piece was completed manually

 .../suricata/files/CVE-2024-37151.patch       |  53 ----
 .../suricata/files/CVE-2024-38534.patch       |  44 ---
 .../suricata/files/CVE-2024-38535.patch       |  57 ----
 .../suricata/files/CVE-2024-38535_pre.patch   | 292 ------------------
 .../suricata/files/CVE-2024-38536.patch       |  40 ---
 recipes-ids/suricata/files/fixup.patch        |  46 +--
 recipes-ids/suricata/suricata-crates.inc      | 100 +++---
 .../{suricata_7.0.0.bb => suricata_7.0.10.bb} |   7 +-
 8 files changed, 78 insertions(+), 561 deletions(-)
 delete mode 100644 recipes-ids/suricata/files/CVE-2024-37151.patch
 delete mode 100644 recipes-ids/suricata/files/CVE-2024-38534.patch
 delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535.patch
 delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535_pre.patch
 delete mode 100644 recipes-ids/suricata/files/CVE-2024-38536.patch
 rename recipes-ids/suricata/{suricata_7.0.0.bb => suricata_7.0.10.bb} (95%)
recipes-ids/suricata/files/CVE-2024-37151.patch deleted +0 -53
deleted file mode 100644
index 7e5d8e2..0000000
@@ -1,53 +0,0 @@
-From a6052dca1e27f3c8f96ec7be0fe7514c56a0d56f Mon Sep 17 00:00:00 2001
-From: Victor Julien <[email protected]>
-Date: Tue, 4 Jun 2024 14:43:22 +0200
-Subject: [PATCH 1/4] defrag: don't use completed tracker
-
-When a Tracker is set up for a IPID, frags come in for it and it's
-reassembled and complete, the `DefragTracker::remove` flag is set. This
-is mean to tell the hash cleanup code to recyle the tracker and to let
-the lookup code skip the tracker during lookup.
-
-A logic error lead to the following scenario:
-
-1. there are sufficient frag trackers to make sure the hash table is
-   filled with trackers
-2. frags for a Packet with IPID X are processed correctly (X1)
-3. frags for a new Packet that also has IPID X come in quickly after the
-   first (X2).
-4. during the lookup, the frag for X2 hashes to a hash row that holds
-   more than one tracker
-5. as the trackers in hash row are evaluated, it finds the tracker for
-   X1, but since the `remove` bit is not checked, it is returned as the
-   tracker for X2.
-6. reassembly fails, as the tracker is already complete
-
-The logic error is that only for the first tracker in a row the `remove`
-bit was checked, leading to reuse to a closed tracker if there were more
-trackers in the hash row.
-
-Ticket: #7042.
-
-Upstream-Status: Backport from [https://github.com/OISF/suricata/commit/aab7f35c76721df19403a7c0c0025feae12f3b6b]
-CVE: CVE-2024-37151
-Signed-off-by: Siddharth Doshi <[email protected]>
----
- src/defrag-hash.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/defrag-hash.c b/src/defrag-hash.c
-index 2f19ce2..87d40f9 100644
---- a/src/defrag-hash.c
-+++ b/src/defrag-hash.c
-@@ -591,7 +591,7 @@ DefragTracker *DefragGetTrackerFromHash (Packet *p)
-                 return dt;
-             }
- 
--            if (DefragTrackerCompare(dt, p) != 0) {
-+            if (!dt->remove && DefragTrackerCompare(dt, p) != 0) {
-                 /* we found our tracker, lets put it on top of the
-                  * hash list -- this rewards active trackers */
-                 if (dt->hnext) {
--- 
-2.44.0
-
recipes-ids/suricata/files/CVE-2024-38534.patch deleted +0 -44

44 lines not on this page · raw message

recipes-ids/suricata/files/CVE-2024-38535.patch deleted +0 -57

57 lines not on this page · raw message

recipes-ids/suricata/files/CVE-2024-38535_pre.patch deleted +0 -292

292 lines not on this page · raw message

recipes-ids/suricata/files/CVE-2024-38536.patch deleted +0 -40
deleted file mode 100644
index 2d4b3d7..0000000
@@ -1,40 +0,0 @@
-From 4026bca7f04c419dd3f3ba17a1af17bbcbcf18bc Mon Sep 17 00:00:00 2001
-From: Philippe Antoine <[email protected]>
-Date: Fri, 17 May 2024 09:39:52 +0200
-Subject: [PATCH 4/4] http: fix nul deref on memcap reached
-
-HttpRangeOpenFileAux may return NULL in different cases, including
-when memcap is reached.
-But is only caller did not check it before calling HttpRangeAppendData
-which would dereference the NULL value.
-
-Ticket: 7029
-(cherry picked from commit fd262df457f67f2174752dd6505ba2ed5911fd96)
-
-Upstream-Status: Backport from [https://github.com/OISF/suricata/commit/2bd3bd0e318f19008e9fe068ab17277c530ffb92]
-CVE: CVE-2024-38536
-Signed-off-by: Siddharth Doshi <[email protected]>
----
- src/app-layer-htp-range.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/app-layer-htp-range.c b/src/app-layer-htp-range.c
-index 3cdde35..f0d75a9 100644
---- a/src/app-layer-htp-range.c
-+++ b/src/app-layer-htp-range.c
-@@ -351,8 +351,10 @@ static HttpRangeContainerBlock *HttpRangeOpenFile(HttpRangeContainerFile *c, uin
- {
-     HttpRangeContainerBlock *r =
-             HttpRangeOpenFileAux(c, start, end, total, sbcfg, name, name_len, flags);
--    if (HttpRangeAppendData(sbcfg, r, data, len) < 0) {
--        SCLogDebug("Failed to append data while opening");
-+    if (r) {
-+        if (HttpRangeAppendData(sbcfg, r, data, len) < 0) {
-+            SCLogDebug("Failed to append data while opening");
-+        }
-     }
-     return r;
- }
--- 
-2.44.0
-
recipes-ids/suricata/files/fixup.patch +27 -19

59 lines not on this page · raw message

recipes-ids/suricata/suricata-crates.inc +50 -50

264 lines not on this page · raw message

recipes-ids/suricata/suricata_7.0.10.bb renamed from recipes-ids/suricata/suricata_7.0.0.bb +1 -6
similarity index 95%
rename from recipes-ids/suricata/suricata_7.0.0.bb
rename to recipes-ids/suricata/suricata_7.0.10.bb
index 910e21e..453ddc0 100644
@@ -5,7 +5,7 @@ require suricata.inc
 LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=c70d8d3310941dcdfcd1e02800a1f548"
 
 SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-${PV}.tar.gz"
-SRC_URI[sha256sum] = "7bcd1313118366451465dc3f8385a3f6aadd084ffe44dd257dda8105863bb769"
+SRC_URI[sha256sum] = "197f925ea701bdcb4a15aca024b06546b002674cd958b58958f29a5bb214d759"
 
 DEPENDS = "lz4 libhtp"
 
@@ -16,11 +16,6 @@ SRC_URI += " \
     file://suricata.service \
     file://run-ptest \
     file://fixup.patch \
-    file://CVE-2024-37151.patch \
-    file://CVE-2024-38534.patch \
-    file://CVE-2024-38535_pre.patch \
-    file://CVE-2024-38535.patch \
-    file://CVE-2024-38536.patch \
     "
 
 inherit autotools pkgconfig python3native systemd ptest cargo cargo-update-recipe-crates