diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2016-03-09 07:37:32 +0100 |
---|---|---|
committer | Huimin She <huimin.she@enea.com> | 2016-03-10 15:02:15 +0100 |
commit | acfea0924b4e8e0a1a890d1151de1e3f39264926 (patch) | |
tree | 8ee9f089526d0edba90fea690eecfcb2fa09b407 /recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch | |
parent | 0f8f654b183e41fed39e2eaa91b7dcb3a9e2086e (diff) | |
download | meta-enea-acfea0924b4e8e0a1a890d1151de1e3f39264926.tar.gz |
kernel-ipv4: CVE-2015-3636
Fixes use-after-free leading to local privilege escalation.
Reference:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3636
Upstream fix:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/
patch/?id=8a9a51ba2eff62e1a899daad7b623becfed8f3f1
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Huimin She <huimin.she@enea.com>
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch')
-rw-r--r-- | recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch b/recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch new file mode 100644 index 0000000..516017e --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 8a9a51ba2eff62e1a899daad7b623becfed8f3f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: "David S. Miller" <davem@davemloft.net> | ||
3 | Date: Fri, 1 May 2015 22:02:47 -0400 | ||
4 | Subject: ipv4: Missing sk_nulls_node_init() in ping_unhash(). | ||
5 | |||
6 | [ Upstream commit a134f083e79fb4c3d0a925691e732c56911b4326 ] | ||
7 | |||
8 | If we don't do that, then the poison value is left in the ->pprev | ||
9 | backlink. | ||
10 | |||
11 | This can cause crashes if we do a disconnect, followed by a connect(). | ||
12 | |||
13 | Fixes CVE-2015-3636 | ||
14 | Upstream-Status: Backport | ||
15 | |||
16 | Tested-by: Linus Torvalds <torvalds@linux-foundation.org> | ||
17 | Reported-by: Wen Xu <hotdog3645@gmail.com> | ||
18 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
19 | Signed-off-by: Jiri Slaby <jslaby@suse.cz> | ||
20 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
21 | --- | ||
22 | net/ipv4/ping.c | 1 + | ||
23 | 1 file changed, 1 insertion(+) | ||
24 | |||
25 | diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c | ||
26 | index a9f8e66..54012b8 100644 | ||
27 | --- a/net/ipv4/ping.c | ||
28 | +++ b/net/ipv4/ping.c | ||
29 | @@ -154,6 +154,7 @@ void ping_unhash(struct sock *sk) | ||
30 | if (sk_hashed(sk)) { | ||
31 | write_lock_bh(&ping_table.lock); | ||
32 | hlist_nulls_del(&sk->sk_nulls_node); | ||
33 | + sk_nulls_node_init(&sk->sk_nulls_node); | ||
34 | sock_put(sk); | ||
35 | isk->inet_num = 0; | ||
36 | isk->inet_sport = 0; | ||
37 | -- | ||
38 | cgit v0.12 | ||
39 | |||