183c086c65
- Disabled skiboot building for PowerPC due to the following issue: https://github.com/open-power/skiboot/issues/265 - Fix possible mremap overflow in the pvrdma (CVE-2021-3582, bsc#1187499) hw-rdma-Fix-possible-mremap-overflow-in-.patch - Ensure correct input on ring init (CVE-2021-3607, bsc#1187539) pvrdma-Ensure-correct-input-on-ring-init.patch - Fix the ring init error flow (CVE-2021-3608, bsc#1187538) pvrdma-Fix-the-ring-init-error-flow-CVE-.patch OBS-URL: https://build.opensuse.org/request/show/908021 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=662
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
|
|
Date: Wed, 30 Jun 2021 14:52:46 +0300
|
|
Subject: pvrdma: Fix the ring init error flow (CVE-2021-3608)
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Git-commit: 66ae37d8cc313f89272e711174a846a229bcdbd3
|
|
References: CVE-2021-3608 bsc#1187538
|
|
|
|
Do not unmap uninitialized dma addresses.
|
|
|
|
Fixes: CVE-2021-3608
|
|
Reviewed-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
|
|
Tested-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
|
|
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
|
|
Message-Id: <20210630115246.2178219-1-marcel@redhat.com>
|
|
Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
|
|
Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
|
|
Signed-off-by: Jose R. Ziviani <jziviani@suse.de>
|
|
---
|
|
hw/rdma/vmw/pvrdma_dev_ring.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/rdma/vmw/pvrdma_dev_ring.c b/hw/rdma/vmw/pvrdma_dev_ring.c
|
|
index 074ac59b84db3ab6bb092cb28fea..42130667a7d41bb2500f3ae5119c 100644
|
|
--- a/hw/rdma/vmw/pvrdma_dev_ring.c
|
|
+++ b/hw/rdma/vmw/pvrdma_dev_ring.c
|
|
@@ -41,7 +41,7 @@ int pvrdma_ring_init(PvrdmaRing *ring, const char *name, PCIDevice *dev,
|
|
qatomic_set(&ring->ring_state->cons_head, 0);
|
|
*/
|
|
ring->npages = npages;
|
|
- ring->pages = g_malloc(npages * sizeof(void *));
|
|
+ ring->pages = g_malloc0(npages * sizeof(void *));
|
|
|
|
for (i = 0; i < npages; i++) {
|
|
if (!tbl[i]) {
|