numam-dpdk/lib/librte_vhost
Fan Zhang 2d962bb736 vhost/crypto: fix possible TOCTOU attack
This patch fixes the possible time-of-check to time-of-use (TOCTOU)
attack problem by copying request data and descriptor index to local
variable prior to process.

Also the original sequential read of descriptors may lead to TOCTOU
attack. This patch fixes the problem by loading all descriptors of a
request to local buffer before processing.

CVE-2020-14375
Fixes: 3bb595ecd6 ("vhost/crypto: add request handler")
Cc: stable@dpdk.org

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
2020-09-28 13:19:13 +02:00
..
fd_man.c vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
fd_man.h vhost: fix race condition when adding fd in the fdset 2018-12-21 16:22:40 +01:00
iotlb.c vhost: fix IOTLB mempool single-consumer flag 2020-09-18 18:55:12 +02:00
iotlb.h vhost: replace IOTLB license with SPDX tag 2019-08-05 16:06:11 +02:00
meson.build vhost: introduce async enqueue registration API 2020-07-07 23:38:28 +02:00
rte_vdpa_dev.h vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
rte_vdpa.h vhost: split vDPA header file 2020-06-30 14:52:30 +02:00
rte_vhost_async.h vhost: fix async callback return type 2020-07-30 00:41:23 +02:00
rte_vhost_crypto.h vhost/crypto: fix possible TOCTOU attack 2020-09-28 13:19:13 +02:00
rte_vhost_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
rte_vhost.h vhost: support virtio status 2020-07-11 06:18:52 +02:00
socket.c vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
vdpa.c vhost: make some vDPA callbacks mandatory 2020-07-11 06:18:52 +02:00
vhost_crypto.c vhost/crypto: fix possible TOCTOU attack 2020-09-28 13:19:13 +02:00
vhost_user.c vhost: fix external backends readiness 2020-09-28 13:16:37 +02:00
vhost_user.h vhost: support virtio status message 2020-07-11 06:18:52 +02:00
vhost.c vhost: fix guest notification setting 2020-07-30 00:41:24 +02:00
vhost.h vhost: add device reset status 2020-09-18 18:55:12 +02:00
virtio_crypto.h vhost: add virtio crypto header file 2018-04-14 00:43:30 +02:00
virtio_net.c vhost: fix async copy on multi-page buffers 2020-07-30 00:41:24 +02:00