Project

General

Profile

Actions

Security #6796

closed

output/filestore: slowdown because of running OutputTxLog on useless packets

Added by Philippe Antoine 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Label:
CVE:
Git IDs:
Severity:
MODERATE
Disclosure Date:
05/21/2024

Description

Found by oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66918

Reproducer is with attached pcap and force-filestore: yes or similar

This pcap can be seen as a simple HTTP request, and then we get from the server many one-byte packets that are not yet acknowledged by the client.
This is a bit similar to #6299 - do not run detection if nothing has been updated, but here it is tx logging and not detection

FLOW_TS_APP_UPDATED gets set with UPDATE_DIR_OPPOSING when the server acknowledges the request
And it does not get reset until PKT_IS_TOSERVER(p)

OutputTxLog. now only checks if flow flags have app update, but not if it is a fresh one


Files

filestore.pcap (5.74 MB) filestore.pcap Philippe Antoine, 02/22/2024 08:38 AM

Subtasks 1 (0 open1 closed)

Security #6798: output/filestore: timeout because of running OutputTxLog on useless packets (7.0.x backport)ClosedPhilippe AntoineActions
Actions

Also available in: Atom PDF