Project

General

Profile

Actions

Security #7458

closed

af-packet: defrag option can lead to truncated packets

Added by Jason Ish 7 months ago. Updated 2 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Label:
Git IDs:
Severity:
HIGH
Disclosure Date:

Description

Given a default AF_PACKET IDS configuration, the default snaplen is set to 1524. However, the defrag option can reassemble fragmented packets up to the maximum packet size. Suricata will then see these packets as truncated, create an alert, but not go any further with the packets.

A quick test with --set default-packet-size=5000 helps with smaller packets, as seen with Wireguard, but can only be increased to just over 32000 before other parameters need to be adjusted.

If the defrag option is used, should we set up AF_PACKET to handle full-size packets by default?


Subtasks 1 (0 open1 closed)

Security #7459: af-packet: defrag option can lead to truncated packets (7.0.x backport)ClosedJason IshActions

Related issues 1 (0 open1 closed)

Related to Suricata - Optimization #4798: af-packet: default to tpacket-v3 in IDS modeClosedJason IshActions
Actions

Also available in: Atom PDF