Actions
Bug #9463
open
VJ
VJ
stream/inline: retransmission handling issue
Bug #9463:
stream/inline: retransmission handling issue
Affected Versions:
Effort:
Difficulty:
Label:
Description
Summary¶
In IPS mode StreamTcp rewrites a retransmitted segment in place from the
stored stream data, so the forwarded packet matches the inspected stream.
When the stream base has advanced past the head of the overlapping segment,StreamTcpInlineSegmentReplacePacket() copies from an offset derived from
the segment's original sequence number, not from base_seq. The forwarded
payload can then differ from what was inspected.
Impact¶
A retransmit that starts at or after base_seq and overlaps a stored
segment whose head was pruned is rewritten from the wrong stream offset
(shifted by base_seq - seg->seq bytes). In IPS mode this forwards payload
bytes that were not inspected in that position. No crash.
Actions