diff options
Diffstat (limited to 'meta/recipes-connectivity/connman/connman/CVE-2021-26676-0002.patch')
-rw-r--r-- | meta/recipes-connectivity/connman/connman/CVE-2021-26676-0002.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman/CVE-2021-26676-0002.patch b/meta/recipes-connectivity/connman/connman/CVE-2021-26676-0002.patch new file mode 100644 index 0000000000..ce909ec293 --- /dev/null +++ b/meta/recipes-connectivity/connman/connman/CVE-2021-26676-0002.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From a74524b3e3fad81b0fd1084ffdf9f2ea469cd9b1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Colin Wee <cwee@tesla.com> | ||
3 | Date: Thu, 28 Jan 2021 19:41:09 +0100 | ||
4 | Subject: [PATCH] gdhcp: Avoid leaking stack data via unitiialized variable | ||
5 | |||
6 | Fixes: CVE-2021-26676 | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | CVE: CVE-2021-26676 | ||
10 | |||
11 | Reference to upstream patch: | ||
12 | https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=a74524b3e3fad81b0fd1084ffdf9f2ea469cd9b1 | ||
13 | |||
14 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | ||
15 | --- | ||
16 | gdhcp/client.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/gdhcp/client.c b/gdhcp/client.c | ||
20 | index 6a5613e7..c7b85e58 100644 | ||
21 | --- a/gdhcp/client.c | ||
22 | +++ b/gdhcp/client.c | ||
23 | @@ -2270,7 +2270,7 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition, | ||
24 | { | ||
25 | GDHCPClient *dhcp_client = user_data; | ||
26 | struct sockaddr_in dst_addr = { 0 }; | ||
27 | - struct dhcp_packet packet; | ||
28 | + struct dhcp_packet packet = { 0 }; | ||
29 | struct dhcpv6_packet *packet6 = NULL; | ||
30 | uint8_t *message_type = NULL, *client_id = NULL, *option, | ||
31 | *server_id = NULL; | ||
32 | -- | ||
33 | 2.17.1 | ||