aboutsummaryrefslogtreecommitdiff
path: root/hw/char/serial-pci.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-01 13:39:11 +0000
committerMichael S. Tsirkin <mst@redhat.com>2024-11-04 16:03:25 -0500
commita3995360aeec62902f045142840c1fd334e9725f (patch)
tree963caea53cba84d6861512d8dbbf25b2b6636e36 /hw/char/serial-pci.c
parentf4a12ba66bebfe200d7f56015c1cd5af321ab152 (diff)
downloadqemu-a3995360aeec62902f045142840c1fd334e9725f.zip
qemu-a3995360aeec62902f045142840c1fd334e9725f.tar.gz
qemu-a3995360aeec62902f045142840c1fd334e9725f.tar.bz2
hw/cxl: Check enough data in cmd_firmware_update_transfer()
Buggy guest can write a message that advertises more data that is provided. As QEMU internally duplicates the reported message size, this may result in an out of bounds access. Add sanity checks on the size to avoid this. Reported-by: Esifiel <esifiel@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20241101133917.27634-5-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/char/serial-pci.c')
0 files changed, 0 insertions, 0 deletions