Public bug reported:

Package: haproxy 2.4.30-0ubuntu0.22.04.3, Ubuntu 22.04 (jammy)
Last good version: 2.4.30-0ubuntu0.22.04.2

After the update that added CVE-2026-110354 (h1-htx) and CVE-2026-110353,
HTTP/1.1 chunked responses from the backend are cut after the first chunk.

Setup: HAProxy in mode http, no options, one plain HTTP backend. Backend is
nginx 1.31.7 with "gzip on" serving a ~240 KB JavaScript file to a client
sending "Accept-Encoding: gzip". The response is Transfer-Encoding: chunked
with chunks 0x6000, 0x7000, 0x7000, 0x2371, 0 (framing is valid; I parsed the
raw stream).

Result with .3: the client receives exactly 24576 bytes, then
"curl: (18) transfer closed with outstanding read data remaining".
Same config and backend with the .2 binary: full 90993 bytes, every time.
Responses with Content-Length, and small single-chunk responses, are fine.
An HTTP/1.0 client gets the full body.
tune.bufsize 65536 does not help.

"show errors" on the stats socket after the failure:
  backend b: invalid response
  buffer starts at 0 (including 0 out), 16384 free, len 0, error at position 0
  H1 msg state MSG_CHUNK_SIZE(26), H1 chunk len 0 bytes, H1 body len 24576 bytes
"show stat" shows eresp=1.

Suspicion (not verified): the new check in h1_parse_msg_data
  if (!ret && !ofs && !buf_room_for_htx_data(srcbuf)) -> HTX_FL_PARSING_ERROR
fires with an EMPTY input buffer in 2.4 (the parser is waiting for the next
chunk-size line), so valid chunked responses are rejected. The upstream commit
was for 2.6+, so buf_room_for_htx_data() may not mean "buffer full" in 2.4.

Impact: any chunked response from a backend can be truncated, and the update
is installed automatically by unattended-upgrades.
Workaround: install 2.4.30-0ubuntu0.22.04.2 and apt-mark hold haproxy.

** Affects: haproxy (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-update

** Tags added: regression-update

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172979

Title:
  haproxy 2.4.30-0ubuntu0.22.04.3 (jammy-security) truncates chunked
  responses        with several large chunks; regression from .22.04.2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/2172979/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to