]> xenbits.xensource.com Git - qemu-xen.git/commit
uas: add stream number sanity checks.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 18 Aug 2021 12:05:05 +0000 (14:05 +0200)
committerMichael Roth <michael.roth@amd.com>
Tue, 14 Dec 2021 14:56:53 +0000 (08:56 -0600)
commit23ba9f170feca6ae0d8442aab2c89656f9b01288
tree375785633c4c7a9645d0bd94901afe06527d9435
parentf0dee5a40d27ad8ce2d180141bb5953fce44a146
uas: add stream number sanity checks.

The device uses the guest-supplied stream number unchecked, which can
lead to guest-triggered out-of-band access to the UASDevice->data3 and
UASDevice->status3 fields.  Add the missing checks.

Fixes: CVE-2021-3713
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reported-by: Chen Zhe <chenzhe@huawei.com>
Reported-by: Tan Jingguo <tanjingguo@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210818120505.1258262-2-kraxel@redhat.com>
(cherry picked from commit 13b250b12ad3c59114a6a17d59caf073ce45b33a)
Signed-off-by: Michael Roth <michael.roth@amd.com>
hw/usb/dev-uas.c