diff options
| author | Sana Kazi <sanakazi720@gmail.com> | 2025-07-14 15:40:20 +0530 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-09-06 16:26:35 +0200 |
| commit | a626bfdf31d5c3414605cacfa58d756fd9f400a6 (patch) | |
| tree | 91775bce4082cd4d1bb6d373ecca76f016b57834 | |
| parent | 06fc0278f10d630838d703dde707bbf0e2999873 (diff) | |
| download | meta-openembedded-a626bfdf31d5c3414605cacfa58d756fd9f400a6.tar.gz | |
tcpdump: Fix patch-fuzz issue
Fix patch-fuzz for CVE-2024-2397.patch
Signed-off-by: Sana Kazi <sanakazi720@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/tcpdump/tcpdump/CVE-2024-2397.patch | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump/CVE-2024-2397.patch b/meta-networking/recipes-support/tcpdump/tcpdump/CVE-2024-2397.patch index 169ec6be70..1207362b91 100644 --- a/meta-networking/recipes-support/tcpdump/tcpdump/CVE-2024-2397.patch +++ b/meta-networking/recipes-support/tcpdump/tcpdump/CVE-2024-2397.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b9811ef5bb1b7d45a90e042f81f3aaf233c8bcb2 Mon Sep 17 00:00:00 2001 | 1 | From 732d375501d687812866da0602457109a2088254 Mon Sep 17 00:00:00 2001 |
| 2 | From: Guy Harris <gharris@sonic.net> | 2 | From: Guy Harris <gharris@sonic.net> |
| 3 | Date: Tue, 12 Mar 2024 00:37:23 -0700 | 3 | Date: Tue, 12 Mar 2024 00:37:23 -0700 |
| 4 | Subject: [PATCH] ppp: use the buffer stack for the de-escaping buffer. | 4 | Subject: [PATCH] ppp: use the buffer stack for the de-escaping buffer. |
| @@ -29,20 +29,25 @@ Signed-off-by: Ashish Sharma <asharma@mvista.com> | |||
| 29 | print.c | 8 ++++++-- | 29 | print.c | 8 ++++++-- |
| 30 | 2 files changed, 23 insertions(+), 16 deletions(-) | 30 | 2 files changed, 23 insertions(+), 16 deletions(-) |
| 31 | 31 | ||
| 32 | --- | ||
| 33 | print-ppp.c | 31 +++++++++++++++++-------------- | ||
| 34 | print.c | 8 ++++++-- | ||
| 35 | 2 files changed, 23 insertions(+), 16 deletions(-) | ||
| 36 | |||
| 32 | diff --git a/print-ppp.c b/print-ppp.c | 37 | diff --git a/print-ppp.c b/print-ppp.c |
| 33 | index 2cf06c363..9aed23eb9 100644 | 38 | index aba243d..e5ae064 100644 |
| 34 | --- a/print-ppp.c | 39 | --- a/print-ppp.c |
| 35 | +++ b/print-ppp.c | 40 | +++ b/print-ppp.c |
| 36 | @@ -37,6 +37,8 @@ | 41 | @@ -42,6 +42,8 @@ |
| 37 | 42 | #include <net/if_ppp.h> | |
| 38 | #include "netdissect-stdinc.h" | 43 | #endif |
| 39 | 44 | ||
| 40 | +#include <stdlib.h> | 45 | +#include <stdlib.h> |
| 41 | + | 46 | + |
| 42 | #include "netdissect.h" | 47 | #include "netdissect.h" |
| 43 | #include "extract.h" | 48 | #include "extract.h" |
| 44 | #include "addrtoname.h" | 49 | #include "addrtoname.h" |
| 45 | @@ -1358,7 +1360,6 @@ ppp_hdlc(netdissect_options *ndo, | 50 | @@ -1363,7 +1365,6 @@ ppp_hdlc(netdissect_options *ndo, |
| 46 | u_char *b, *t, c; | 51 | u_char *b, *t, c; |
| 47 | const u_char *s; | 52 | const u_char *s; |
| 48 | u_int i, proto; | 53 | u_int i, proto; |
| @@ -50,7 +55,7 @@ index 2cf06c363..9aed23eb9 100644 | |||
| 50 | 55 | ||
| 51 | if (caplen == 0) | 56 | if (caplen == 0) |
| 52 | return; | 57 | return; |
| 53 | @@ -1366,9 +1367,11 @@ ppp_hdlc(netdissect_options *ndo, | 58 | @@ -1371,9 +1372,11 @@ ppp_hdlc(netdissect_options *ndo, |
| 54 | if (length == 0) | 59 | if (length == 0) |
| 55 | return; | 60 | return; |
| 56 | 61 | ||
| @@ -65,7 +70,7 @@ index 2cf06c363..9aed23eb9 100644 | |||
| 65 | 70 | ||
| 66 | /* | 71 | /* |
| 67 | * Unescape all the data into a temporary, private, buffer. | 72 | * Unescape all the data into a temporary, private, buffer. |
| 68 | @@ -1389,13 +1392,15 @@ ppp_hdlc(netdissect_options *ndo, | 73 | @@ -1394,13 +1397,15 @@ ppp_hdlc(netdissect_options *ndo, |
| 69 | } | 74 | } |
| 70 | 75 | ||
| 71 | /* | 76 | /* |
| @@ -87,7 +92,7 @@ index 2cf06c363..9aed23eb9 100644 | |||
| 87 | length = ND_BYTES_AVAILABLE_AFTER(b); | 92 | length = ND_BYTES_AVAILABLE_AFTER(b); |
| 88 | 93 | ||
| 89 | /* now lets guess about the payload codepoint format */ | 94 | /* now lets guess about the payload codepoint format */ |
| 90 | @@ -1437,13 +1442,11 @@ ppp_hdlc(netdissect_options *ndo, | 95 | @@ -1442,13 +1447,11 @@ ppp_hdlc(netdissect_options *ndo, |
| 91 | } | 96 | } |
| 92 | 97 | ||
| 93 | cleanup: | 98 | cleanup: |
| @@ -104,7 +109,7 @@ index 2cf06c363..9aed23eb9 100644 | |||
| 104 | } | 109 | } |
| 105 | 110 | ||
| 106 | diff --git a/print.c b/print.c | 111 | diff --git a/print.c b/print.c |
| 107 | index b9ba5997d..f20633388 100644 | 112 | index 9c0ab86..33706b9 100644 |
| 108 | --- a/print.c | 113 | --- a/print.c |
| 109 | +++ b/print.c | 114 | +++ b/print.c |
| 110 | @@ -431,10 +431,14 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, | 115 | @@ -431,10 +431,14 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, |
