Blame SOURCES/0001-vhost-fix-indirect-descriptors-table-translation-siz.patch

c7ffa4
From c7903f9048e1eae871651f72f066393f88c54f55 Mon Sep 17 00:00:00 2001
c7ffa4
From: Maxime Coquelin <maxime.coquelin@redhat.com>
c7ffa4
Date: Mon, 23 Apr 2018 11:33:38 +0200
c7ffa4
Subject: [PATCH 01/11] vhost: fix indirect descriptors table translation size
c7ffa4
c7ffa4
This patch fixes the size passed at the indirect descriptor
c7ffa4
table translation time, which is the len field of the descriptor,
c7ffa4
and not a single descriptor.
c7ffa4
c7ffa4
This issue has been assigned CVE-2018-1059.
c7ffa4
c7ffa4
Fixes: 62fdb8255ae7 ("vhost: use the guest IOVA to host VA helper")
c7ffa4
c7ffa4
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
c7ffa4
---
c7ffa4
 lib/librte_vhost/virtio_net.c | 2 +-
c7ffa4
 1 file changed, 1 insertion(+), 1 deletion(-)
c7ffa4
c7ffa4
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
c7ffa4
index d347030..cb1d0cf 100644
c7ffa4
--- a/lib/librte_vhost/virtio_net.c
c7ffa4
+++ b/lib/librte_vhost/virtio_net.c
c7ffa4
@@ -1329,5 +1329,5 @@
c7ffa4
 				vhost_iova_to_vva(dev, vq,
c7ffa4
 						vq->desc[desc_indexes[i]].addr,
c7ffa4
-						sizeof(*desc),
c7ffa4
+						vq->desc[desc_indexes[i]].len,
c7ffa4
 						VHOST_ACCESS_RO);
c7ffa4
 			if (unlikely(!desc))
c7ffa4
-- 
c7ffa4
1.8.3.1
c7ffa4