pvrdma: Ensure correct input on ring init (CVE-2021-3607)
authorMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Wed, 30 Jun 2021 11:46:34 +0000 (14:46 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sun, 4 Jul 2021 19:47:51 +0000 (22:47 +0300)
commit32e5703cfea07c91e6e84bcb0313f633bb146534
tree63b3740daab632f7d1f7016ee1dccbe778b5bdb5
parent284f191b4abad213aed04cb0458e1600fd18d7c4
pvrdma: Ensure correct input on ring init (CVE-2021-3607)

Check the guest passed a non zero page count
for pvrdma device ring buffers.

Fixes: CVE-2021-3607
Reported-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
Reviewed-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Message-Id: <20210630114634.2168872-1-marcel@redhat.com>
Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_main.c