Skip to content

io: fix crash in VNC websock server when client quits early

Daniel P. Berrangé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Improve finalizer robustness of TLS source
- Keep cleanup in finalizer of websock, just augment it in the close method
- Fix resetting of hs_ioc_tag value when callback is complete
- Add CVE assignemnt in 3rd patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io: release active GSource in TLS channel finalizerio/channel-tls.c+10 -04 replies
2/3io: move websock resource release to close methodio/channel-websock.c+10 -11 reply
3/3io: fix use after free in websocket handshake codeinclude/io/channel-websock.h io/channel-websock.c+18 -71 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] io: fix crash in VNC websock server when client quits early

See patch 3 for the description of the problem and reproducer

Changes in v2:

- Improve finalizer robustness of TLS source
- Keep cleanup in finalizer of websock, just augment it in the close method
- Fix resetting of hs_ioc_tag value when callback is complete
- Add CVE assignemnt in 3rd patch

Daniel P. Berrangé (3):
io: release active GSource in TLS channel finalizer
io: move websock resource release to close method
io: fix use after free in websocket handshake code

 include/io/channel-websock.h |  3 ++-
 io/channel-tls.c             | 10 ++++++++++
 io/channel-websock.c         | 33 ++++++++++++++++++++++++++-------
 3 files changed, 38 insertions(+), 8 deletions(-)
Signature · 1 line
2.50.1