summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Sarmadi <sona.sarmadi@enea.com>2016-03-09 07:37:32 +0100
committerHuimin She <huimin.she@enea.com>2016-03-10 15:02:15 +0100
commitacfea0924b4e8e0a1a890d1151de1e3f39264926 (patch)
tree8ee9f089526d0edba90fea690eecfcb2fa09b407
parent0f8f654b183e41fed39e2eaa91b7dcb3a9e2086e (diff)
downloadmeta-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>
-rw-r--r--recipes-kernel/linux/linux-qoriq-3.12/CVE-2015-3636.patch39
-rw-r--r--recipes-kernel/linux/linux-qoriq-common.inc1
2 files changed, 40 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 @@
1From 8a9a51ba2eff62e1a899daad7b623becfed8f3f1 Mon Sep 17 00:00:00 2001
2From: "David S. Miller" <davem@davemloft.net>
3Date: Fri, 1 May 2015 22:02:47 -0400
4Subject: ipv4: Missing sk_nulls_node_init() in ping_unhash().
5
6[ Upstream commit a134f083e79fb4c3d0a925691e732c56911b4326 ]
7
8If we don't do that, then the poison value is left in the ->pprev
9backlink.
10
11This can cause crashes if we do a disconnect, followed by a connect().
12
13Fixes CVE-2015-3636
14Upstream-Status: Backport
15
16Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
17Reported-by: Wen Xu <hotdog3645@gmail.com>
18Signed-off-by: David S. Miller <davem@davemloft.net>
19Signed-off-by: Jiri Slaby <jslaby@suse.cz>
20Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
21---
22 net/ipv4/ping.c | 1 +
23 1 file changed, 1 insertion(+)
24
25diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
26index 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--
38cgit v0.12
39
diff --git a/recipes-kernel/linux/linux-qoriq-common.inc b/recipes-kernel/linux/linux-qoriq-common.inc
index 504bbfc..6e77abb 100644
--- a/recipes-kernel/linux/linux-qoriq-common.inc
+++ b/recipes-kernel/linux/linux-qoriq-common.inc
@@ -24,6 +24,7 @@ SRC_URI += "file://b4860-hard_irq_disable-bug.patch \
24 file://drivers-scsi-CVE-2015-5707.patch \ 24 file://drivers-scsi-CVE-2015-5707.patch \
25 file://vhost-CVE-2015-6252.patch \ 25 file://vhost-CVE-2015-6252.patch \
26 file://CVE-2015-2922.patch \ 26 file://CVE-2015-2922.patch \
27 file://CVE-2015-3636.patch \
27 " 28 "
28 29
29SRC_URI += "file://cfg/00013-localversion.cfg \ 30SRC_URI += "file://cfg/00013-localversion.cfg \