Skip to content

tcpprep - fix buffer overflow on truncated packets - #995

Merged
fklassen merged 1 commit into
appneta:v4.5.3-beta1from
GabrielGanne:tcpprep-buffer-overflow
Jul 17, 2026
Merged

tcpprep - fix buffer overflow on truncated packets#995
fklassen merged 1 commit into
appneta:v4.5.3-beta1from
GabrielGanne:tcpprep-buffer-overflow

Conversation

@GabrielGanne

Copy link
Copy Markdown
Contributor

check_dst_port() did not check that the dest port could be read for truncated packets.
This adds a test that enforces a tiny bit more that strictly necessary: check for the whole l4 header presence instead of just the dport. The whole header is needed overall anyway.

This means that tcpprep will fail to classify packets with incomplete l4 headers and fall back to the default classification for those.

Fixes: #985

check_dst_port() did not check that the dest port could be read for
truncated packets.
This adds a test that enforces a tiny bit more that strictly necessary:
check for the whole l4 header presence instead of just the dport. The
whole header is needed overall anyway.

This means that tcpprep will fail to classify packets with incomplete l4
headers and fall back to the default classification for those.

Fixes: appneta#985
Signed-off-by: Gabriel Ganne <gabriel.ganne@gmail.com>
@fklassen
fklassen changed the base branch from master to v4.5.3-beta1 July 17, 2026 13:33
@fklassen
fklassen merged commit 91afdfe into appneta:v4.5.3-beta1 Jul 17, 2026
3 checks passed
@GabrielGanne
GabrielGanne deleted the tcpprep-buffer-overflow branch July 28, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] heap-buffer-overflow in tcpprep

2 participants