]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: net-helper: Adjust sample size capacity after pointer shift
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jul 2026 15:07:39 +0000 (17:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Jul 2026 05:29:50 +0000 (07:29 +0200)
commit65d462ba7c1de98bc1aaa2bef4880bcca8344e5f
tree442160f4eb52a61b3706c40951357f70bb0f8287
parentb2137b711b2a9b66507544d3a2a47db15548da5e
BUG/MEDIUM: net-helper: Adjust sample size capacity after pointer shift

eth.data, eth.src and ip.data converters are concerned. On success, the area
pointer of the sample buffer is moved forward without updating the buffer
size accordingly. If these converters are followed by another one relying on
the buffer size to do some operations on the buffer area, this could lead to
a buffer overflow.

Thanks to Charles Vosburgh <theminershive@gmail.com> for reporting this and
providing the fix.

This patch must be backported to 3.4.
src/net_helper.c