diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-03-11 09:52:21 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-03-24 08:52:09 +0530 |
| commit | 75e3ed18503126c3fadbadc2084d5f02493470b7 (patch) | |
| tree | 5da998bec754ccd3f4698fd756752578b18ee4fb | |
| parent | 59b94e41bf969076da983306a388a56cfb51bc7e (diff) | |
| download | meta-openembedded-75e3ed18503126c3fadbadc2084d5f02493470b7.tar.gz | |
ettercap: patch CVE-2026-3603
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3606
Pick the commit that is marked to solve the related Github
issue[1]. Its commit message also references the CVE ID explicitly.
[1]: https://github.com/Ettercap/ettercap/issues/1297
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
| -rw-r--r-- | meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch | 48 | ||||
| -rw-r--r-- | meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb | 4 |
2 files changed, 51 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch b/meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch new file mode 100644 index 0000000000..8affaffce5 --- /dev/null +++ b/meta-networking/recipes-support/ettercap/ettercap/CVE-2026-3606.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From 94c25ba50ed6e83b20527acdbc3f54edafef9c93 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Koeppe <alexander@koeppe.rocks> | ||
| 3 | Date: Sun, 8 Mar 2026 17:57:39 +0100 | ||
| 4 | Subject: [PATCH] Fix heap-out-of-bounds read issue in etterfilter | ||
| 5 | (CVE-2026-3606) | ||
| 6 | |||
| 7 | CVE: CVE-2026-3606 | ||
| 8 | Upstream-Status: Backport [https://github.com/Ettercap/ettercap/commit/41c312d4be6f6067968a275bf66b2abd2a0ba385] | ||
| 9 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 10 | --- | ||
| 11 | include/ec.h | 6 ++++++ | ||
| 12 | utils/etterfilter/ef_output.c | 4 ++-- | ||
| 13 | 2 files changed, 8 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/include/ec.h b/include/ec.h | ||
| 16 | index 4e363b0a..66da146e 100644 | ||
| 17 | --- a/include/ec.h | ||
| 18 | +++ b/include/ec.h | ||
| 19 | @@ -81,6 +81,12 @@ | ||
| 20 | ON_ERROR(x, NULL, "virtual memory exhausted"); \ | ||
| 21 | } while(0) | ||
| 22 | |||
| 23 | +#define SAFE_RECALLOC(x, s) do { \ | ||
| 24 | + x = realloc(x, s); \ | ||
| 25 | + ON_ERROR(x, NULL, "virtual memory exhausted"); \ | ||
| 26 | + memset(x, 0, s); \ | ||
| 27 | +} while(0) | ||
| 28 | + | ||
| 29 | #define SAFE_STRDUP(x, s) do{ \ | ||
| 30 | x = strdup(s); \ | ||
| 31 | ON_ERROR(x, NULL, "virtual memory exhausted"); \ | ||
| 32 | diff --git a/utils/etterfilter/ef_output.c b/utils/etterfilter/ef_output.c | ||
| 33 | index 2530e599..2f49177e 100644 | ||
| 34 | --- a/utils/etterfilter/ef_output.c | ||
| 35 | +++ b/utils/etterfilter/ef_output.c | ||
| 36 | @@ -150,10 +150,10 @@ static size_t create_data_segment(u_char** data, struct filter_header *fh, struc | ||
| 37 | static size_t add_data_segment(u_char **data, size_t base, u_char **string, size_t slen) | ||
| 38 | { | ||
| 39 | /* make room for the new string */ | ||
| 40 | - SAFE_REALLOC(*data, base + slen + 1); | ||
| 41 | + SAFE_RECALLOC(*data, base + slen + 1); | ||
| 42 | |||
| 43 | /* copy the string, NULL separated */ | ||
| 44 | - memcpy(*data + base, *string, slen + 1); | ||
| 45 | + memcpy(*data + base, *string, slen); | ||
| 46 | |||
| 47 | /* | ||
| 48 | * change the pointer to the new string location | ||
diff --git a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb index 723d7c8f78..b7f550ef7b 100644 --- a/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb +++ b/meta-networking/recipes-support/ettercap/ettercap_0.8.3.1.bb | |||
| @@ -21,7 +21,9 @@ DEPENDS += "ethtool \ | |||
| 21 | RDEPENDS:${PN} += "bash ethtool libgcc" | 21 | RDEPENDS:${PN} += "bash ethtool libgcc" |
| 22 | 22 | ||
| 23 | SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \ | 23 | SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https \ |
| 24 | file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch" | 24 | file://0001-sslstrip-Enhance-the-libcurl-version-check-to-consid.patch \ |
| 25 | file://CVE-2026-3606.patch \ | ||
| 26 | " | ||
| 25 | 27 | ||
| 26 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" | 28 | SRCREV = "7281fbddb7da7478beb1d21e3cb105fff3778b31" |
| 27 | 29 | ||
