Files
qemu/ui
Mauro Matteo Cascella 4cfae56783 ui/vnc-clipboard: fix infinite loop in inflate_buffer (CVE-2023-3255)
A wrong exit condition may lead to an infinite loop when inflating a
valid zlib buffer containing some extra bytes in the `inflate_buffer`
function. The bug only occurs post-authentication. Return the buffer
immediately if the end of the compressed data has been reached
(Z_STREAM_END).

Fixes: CVE-2023-3255
Fixes: 0bf41cab ("ui/vnc: clipboard support")
Reported-by: Kevin Denis <kevin.denis@synacktiv.com>
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20230704084210.101822-1-mcascell@redhat.com>
(cherry picked from commit d921fea338)
Resolves: bsc#1213001
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
2023-07-26 15:34:39 +02:00
..
2020-09-30 19:09:19 +02:00
2019-03-11 08:39:02 +01:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2022-05-03 15:52:37 +04:00
2022-06-28 11:06:02 +02:00
2019-08-16 13:31:52 +02:00
2022-03-14 15:16:16 +04:00
2022-08-01 11:58:02 +02:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2019-02-05 16:50:18 +01:00
2021-01-23 15:55:07 -05:00
2022-04-27 07:50:28 +02:00