diff options
Diffstat (limited to 'meta/recipes-support/curl/curl/CVE-2019-5436.patch')
-rw-r--r-- | meta/recipes-support/curl/curl/CVE-2019-5436.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2019-5436.patch b/meta/recipes-support/curl/curl/CVE-2019-5436.patch new file mode 100644 index 0000000000..05fd8e9bcc --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2019-5436.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 2576003415625d7b5f0e390902f8097830b82275 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Stenberg <daniel@haxx.se> | ||
3 | Date: Fri, 3 May 2019 22:20:37 +0200 | ||
4 | Subject: [PATCH] tftp: use the current blksize for recvfrom() | ||
5 | |||
6 | bug: https://curl.haxx.se/docs/CVE-2019-5436.html | ||
7 | Reported-by: l00p3r on hackerone | ||
8 | CVE-2019-5436 | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | https://github.com/curl/curl/commit/2576003415625d7b5f0e390902f8097830b82275 | ||
12 | CVE: CVE-2019-5436 | ||
13 | affects: libcurl 7.19.4 to and including 7.64.1 | ||
14 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
15 | |||
16 | --- | ||
17 | lib/tftp.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | Index: curl-7.61.0/lib/tftp.c | ||
21 | =================================================================== | ||
22 | --- curl-7.61.0.orig/lib/tftp.c | ||
23 | +++ curl-7.61.0/lib/tftp.c | ||
24 | @@ -1005,7 +1005,7 @@ static CURLcode tftp_connect(struct conn | ||
25 | state->sockfd = state->conn->sock[FIRSTSOCKET]; | ||
26 | state->state = TFTP_STATE_START; | ||
27 | state->error = TFTP_ERR_NONE; | ||
28 | - state->blksize = TFTP_BLKSIZE_DEFAULT; | ||
29 | + state->blksize = blksize; | ||
30 | state->requested_blksize = blksize; | ||
31 | |||
32 | ((struct sockaddr *)&state->local_addr)->sa_family = | ||