Skip to content

next/1234/80x/20260224/v1#14892

Merged
victorjulien merged 14 commits intoOISF:main-8.0.xfrom
victorjulien:next/1234/80x/20260224/v1
Feb 24, 2026
Merged

next/1234/80x/20260224/v1#14892
victorjulien merged 14 commits intoOISF:main-8.0.xfrom
victorjulien:next/1234/80x/20260224/v1

Conversation

jufajardini and others added 14 commits February 24, 2026 09:13
... to account for midstream sessions.

Commit 497394e removed inspection of app-proto txs for packets
without an established TCP connection. But this meant that the
first packet seen in a session pick mid-stream could go without
inspection (previous bug 5510 seemed to point towards this behavior,
too).
If a flow has more packets, the stream will be inspected as part of
the upcoming packets and this would go unnoticed. In a single-packet
flow, however, the inspection for the packed would be skipped. Although
this might not affect alerts -- as they could be processed as part of
the flow timeout logic, the actual traffic could be evaded in IPS, in
case of a drop rule.

From the above, the most visible scenario is when there is only one packet on the flow,
as then the engine doesn't have "more time" to pick-up real-packets to
inspect for that given flow. But certain tests show that this can also
happen for more than one packet scenarios: there will be one less drop
event, or traffic from a packet that should have been already dropped
will be logged.

This led to the possibility of a real packet not being blocked, in IPS,
or matched against rules, as the corresponding portion of the stream
was only inspected later, as part of the stream/flow-timeout logic.

To ensure that we correctly flag the first packet seen for a given mid-stream
session, we must check for the session state and existance *after* we
have dealt with TCP flags and state.

Related to
Bug OISF#5510

As part of
Bug OISF#5180

(cherry picked from commit bd76c29)
Ticket: 7846
(cherry picked from commit dbea660)
Ticket: 7846
(cherry picked from commit 539e4ee)
The Deprecation note on Syslog was partly conveying the opposite
message, and we were missing a deprecation notice on the Syslog output
section.

(cherry picked from commit 926fde8)
Check for the existence of a flow before calling FlowGetStorageById() on it.

Ticket: OISF#8308.
(cherry picked from commit 278da4b)
CID 1667318: (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: hwloc_obj_t non_io_ancestor....

(cherry picked from commit b84ae80)
CID 1638288: (#1 of 1): Missing unlock (LOCK)
4. missing_unlock: Returning without unlocking xsk_protect.queue_protect.

(cherry picked from commit e7c9be0)
For qa-simulation scenarios, especially for testing purposes.

Task OISF#7885

(cherry picked from commit 5edb5a5)
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 87.19512% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.56%. Comparing base (592b294) to head (f6093b6).
⚠️ Report is 14 commits behind head on main-8.0.x.

Additional details and impacted files
@@              Coverage Diff               @@
##           main-8.0.x   #14892      +/-   ##
==============================================
- Coverage       83.58%   83.56%   -0.02%     
==============================================
  Files            1010     1011       +1     
  Lines          266211   266372     +161     
==============================================
+ Hits           222522   222607      +85     
- Misses          43689    43765      +76     
Flag Coverage Δ
fuzzcorpus 63.97% <23.84%> (-0.05%) ⬇️
livemode 18.64% <21.85%> (-0.01%) ⬇️
pcap 44.54% <23.84%> (-0.08%) ⬇️
suricata-verify 64.83% <81.20%> (-0.02%) ⬇️
unittests 58.86% <45.06%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 29858

@victorjulien victorjulien merged commit f6093b6 into OISF:main-8.0.x Feb 24, 2026
59 checks passed
@victorjulien victorjulien deleted the next/1234/80x/20260224/v1 branch February 24, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants