]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: remove CID on BE conn alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Nov 2026 15:09:03 +0000 (16:09 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Nov 2026 15:48:10 +0000 (16:48 +0100)
commit1078013590e26ca1c3e0ca265a38b018638de05d
tree1d1a582196058fe3d96391cf181ed36412e189c0
parent2f8db919ff413ab15066e48a65c02fdf996fbbda
BUG/MINOR: quic: remove CID on BE conn alloc failure

A QUIC backend connection is instantiated in qc_conn_init() via
xprt_quic. First, a random CID is generated and inserted into the tree.
On success, the quic-conn instance is allocated.

If the allocation fails, the CID is freed but not removed from the
global CID tree. This may cause a UAF issue later. Fix this by removing
the CID from the tree prior to freeing it.

This must be backported up to 3.3.
src/xprt_quic.c