diff options
author | Armin Kuster <akuster@mvista.com> | 2019-06-05 20:41:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-27 18:05:18 +0100 |
commit | a43499cf8e91188e11616cff8f3c70ed033bfa86 (patch) | |
tree | 241958f63f1d512c6b42753b63a65415f00e1204 /meta/recipes-support/curl/curl/CVE-2019-5436.patch | |
parent | 21188466bc0d40bcca0ac74363177e2e3632d457 (diff) | |
download | poky-a43499cf8e91188e11616cff8f3c70ed033bfa86.tar.gz |
Curl: Securiyt fix CVE-2019-5435 CVE-2019-5436
Source: CUrl.org
MR: 98455
Type: Security Fix
Disposition: Backport from https://curl.haxx.se/
ChangeID: 86b094a440ea473b114764e8d64df8142d561609
Description:
Fixes CVE-2019-5435 CVE-2019-5436
(From OE-Core rev: 9d5a7dd654a17b67f5cd8a73145e5f5299bfebcc)
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 = | ||