]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: dns: tcp session can remain attached to a list after a free
authorEmeric Brun <ebrun@haproxy.com>
Tue, 19 Oct 2021 13:40:10 +0000 (15:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Oct 2021 15:52:02 +0000 (17:52 +0200)
commitd20dc21eeca1d5e936f7a8bfd3d865a032499c65
tree9418c5a56e769b1527d4e174406049b0f8727261
parentd16e7dd0e4cf07c9731a1a1c288d003a9f84d1b5
BUG/MAJOR: dns: tcp session can remain attached to a list after a free

Using tcp, after a session release and free, the session can remain
attached to the list of sessions with a response message waiting for
a commit (ds->waiter). This results to a use after free of this
session.

Also, on some error path and after free, a session could remain attached
to the lists of available idle/free sessions (ds->list).

This patch ensure to remove the session from those external lists
before a free.

This patch should be backported to all version including
the dns over tcp (2.4)
src/dns.c