qemu/include/io
Daniel P. Berrangé b722a90334 io: remove io watch if TLS channel is closed during handshake
The TLS handshake make take some time to complete, during which time an
I/O watch might be registered with the main loop. If the owner of the
I/O channel invokes qio_channel_close() while the handshake is waiting
to continue the I/O watch must be removed. Failing to remove it will
later trigger the completion callback which the owner is not expecting
to receive. In the case of the VNC server, this results in a SEGV as
vnc_disconnect_start() tries to shutdown a client connection that is
already gone / NULL.

CVE-2023-3354
Reported-by: jiangyegen <jiangyegen@huawei.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: zeng_chi <zengchi@kylinos.cn>
2024-04-25 16:16:10 +08:00
..
channel-buffer.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-command.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-file.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-null.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-socket.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-tls.h io: remove io watch if TLS channel is closed during handshake 2024-04-25 16:16:10 +08:00
channel-util.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-watch.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel-websock.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
channel.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
dns-resolver.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
net-listener.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
task.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00