diff options
author | Kai Kang <kai.kang@windriver.com> | 2016-10-26 17:54:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-16 10:37:57 +0000 |
commit | 0572d73d1184628e36f8e0b5a07137af2788df86 (patch) | |
tree | a846bf7a8e9f93db7270f72f6662d90a30371d24 /meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch | |
parent | 1bad6c2d7302cceed2eaf4896320f9fe7421772e (diff) | |
download | poky-0572d73d1184628e36f8e0b5a07137af2788df86.tar.gz |
qemu: fix CVE-2016-7423 and CVE-2016-7908
Backport patches to fix CVE-2016-7423 and CVE-2016-7908 of qemu.
(From OE-Core rev: 1f4c303fd64a4bc05882de01676f241f0df6da78)
(From OE-Core rev: 34b9be55c31deb4eab5056cf1698c8052aca2596)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch b/meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch new file mode 100644 index 0000000000..fdf58a3d65 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0002-fix-CVE-2016-7423.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Backport patch to fix CVE-2016-7423 from: | ||
4 | |||
5 | http://git.qemu.org/?p=qemu.git;a=commit;h=670e56d3ed | ||
6 | |||
7 | CVE: CVE-2016-7423 | ||
8 | |||
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
10 | --- | ||
11 | From 670e56d3ed2918b3861d9216f2c0540d9e9ae0d5 Mon Sep 17 00:00:00 2001 | ||
12 | From: Li Qiang <liqiang6-s@360.cn> | ||
13 | Date: Mon, 12 Sep 2016 18:14:11 +0530 | ||
14 | Subject: [PATCH] scsi: mptsas: use g_new0 to allocate MPTSASRequest object | ||
15 | |||
16 | When processing IO request in mptsas, it uses g_new to allocate | ||
17 | a 'req' object. If an error occurs before 'req->sreq' is | ||
18 | allocated, It could lead to an OOB write in mptsas_free_request | ||
19 | function. Use g_new0 to avoid it. | ||
20 | |||
21 | Reported-by: Li Qiang <liqiang6-s@360.cn> | ||
22 | Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> | ||
23 | Message-Id: <1473684251-17476-1-git-send-email-ppandit@redhat.com> | ||
24 | Cc: qemu-stable@nongnu.org | ||
25 | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | ||
26 | --- | ||
27 | hw/scsi/mptsas.c | 2 +- | ||
28 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
29 | |||
30 | diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c | ||
31 | index 0e0a22f..eaae1bb 100644 | ||
32 | --- a/hw/scsi/mptsas.c | ||
33 | +++ b/hw/scsi/mptsas.c | ||
34 | @@ -304,7 +304,7 @@ static int mptsas_process_scsi_io_request(MPTSASState *s, | ||
35 | goto bad; | ||
36 | } | ||
37 | |||
38 | - req = g_new(MPTSASRequest, 1); | ||
39 | + req = g_new0(MPTSASRequest, 1); | ||
40 | QTAILQ_INSERT_TAIL(&s->pending, req, next); | ||
41 | req->scsi_io = *scsi_io; | ||
42 | req->dev = s; | ||
43 | -- | ||
44 | 2.9.3 | ||
45 | |||