]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: ssl: disable kTLS on OpenSSL versions affected by a known bug
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 4 Nov 2026 12:42:28 +0000 (13:42 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 4 Nov 2026 17:42:28 +0000 (18:42 +0100)
commite7c2ba5e1fcf8a6bb5a2a8f2848c9bfa1224b1e4
tree9f97a80454b64fab76c6db1a2d1312fae3bea99d
parentbc5d61dce5e8b917e94d730280e4a094c2b9e8ba
BUG/MEDIUM: ssl: disable kTLS on OpenSSL versions affected by a known bug

With vanilla OpenSSL, a blocked kTLS record keeps referencing the caller's
buffer and the library retries from it, even though
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER is set; the H2 fast-forward reuses that
buffer, so streams get corrupted. Upstream fixed this in 3.4.6 and 3.5.7, so
disable kTLS on older versions and report it, with "tune.ssl.ktls-unsafe" to
opt in anyway.

To be backported to 3.3 and 3.4.
doc/configuration.txt
include/haproxy/openssl-compat.h
include/haproxy/ssl_sock-t.h
include/haproxy/ssl_sock.h
src/cfgparse-ssl.c
src/ssl_sock.c