]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: conn: fix UAF on connection after reversal on edge
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 Sep 2025 14:35:49 +0000 (16:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 Sep 2025 16:13:35 +0000 (18:13 +0200)
commit27ff7ff296dec073e84cf03106a3e285181c24d8
tree477b2c16328bf860e03b1dc9de99fa26647fba87
parent93cc18ac4286f0e0d5f870591d06c50228d128ac
BUG/MEDIUM: conn: fix UAF on connection after reversal on edge

When a connection is reversed, some elements must be resetted prior to
reusing it. Most notably, connection must be removed from lists specific
on frontend/backend sides.

When reverse was performed for frontend to backend side, connection was
not removed via its <stopping_list> attach point. On previous releases,
this did not cause any issue. However, crashes start to occur recently,
probably due to the recent reorganization of connection list attach
points from the following patch.

  commit a96f1286a75246fef6db3e615fabdef1de927d83
  BUG/MINOR: connection: rearrange union list members

To fix this, simply ensure that <stopping_list> detach is performed via
conn_reverse().

This patch must be backported up to 3.0 release.
src/connection.c