Project

General

Profile

Actions

Bug #5443

closed
PA VJ

ftp-data: failed assertion

Bug #5443: ftp-data: failed assertion

Added by Philippe Antoine almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

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

./src/suricata -k none -c suricata.yaml --set stream.midstream=true --runmode=single -r lol.pcap

Victor, is this assertion really meant to be unreachable ?


Files

lol.pcap (4.13 KB) lol.pcap Philippe Antoine, 07/15/2022 01:46 PM

Related issues 1 (0 open1 closed)

Related to Suricata - Bug #5205: FTP-data unrecognized depending on multi-threadingClosedPhilippe AntoineActions

PA Updated by Philippe Antoine almost 4 years ago Actions #2

  • Related to Bug #5205: FTP-data unrecognized depending on multi-threading added

PA Updated by Philippe Antoine almost 4 years ago Actions #3

Took me some time to figure out that I was needing --runmode=single to reproduce due to #5205 (fuzz target runs in single thread and so ftp-data detection goes alright)

VJ Updated by Victor Julien over 3 years ago Actions #4

  • Status changed from New to Assigned
  • Priority changed from Normal to High

PA Updated by Philippe Antoine over 3 years ago Actions #5

My analysis :
- we have a FTP flow which expects a ftp-data flow
- we use stream.midstream=true
- the ftp-data flow has a first packet with data
- the ftp-data flow has then a second packet in same direction with RST flag (and no ACK flag)
- RST triggers the parse of all available data, even if it has never been acked

Should we process any of these data that has never been acked ?

VJ Updated by Victor Julien over 3 years ago Actions #6

  • Target version changed from 7.0.0-beta1 to 8.0.0-beta1

PA Updated by Philippe Antoine over 3 years ago Actions #7

Why not 7.0.rc1 ?

VJ Updated by Victor Julien over 3 years ago Actions #8

  • Target version changed from 8.0.0-beta1 to 7.0.0-rc1

Accident during mass retargeting, thanks for catching this.

PA Updated by Philippe Antoine over 3 years ago Actions #9

I would disable the debug assertion if we cannot have a better fix quickly.
This would allow to have fuzzing going on and we would still have the issue to investigate...

JL Updated by Jeff Lucovsky over 3 years ago Actions #10

  • Status changed from Assigned to Closed

VJ Updated by Victor Julien over 3 years ago Actions #11

  • Private changed from Yes to No

PA Updated by Philippe Antoine over 3 years ago Actions #12

  • Status changed from Closed to Assigned

The bug is still there to be fixed, so reopening

PA Updated by Philippe Antoine over 3 years ago Actions #14

  • Priority changed from High to Normal

VJ Updated by Victor Julien about 3 years ago Actions #15

  • Target version changed from 7.0.0-rc1 to 7.0.0-rc2

VJ Updated by Victor Julien almost 3 years ago Actions #16

  • Target version changed from 7.0.0-rc2 to 7.0.0

VJ Updated by Victor Julien almost 3 years ago Actions #17

  • Priority changed from Normal to High

VJ Updated by Victor Julien almost 3 years ago Actions #18

  • Target version changed from 7.0.0 to 7.0.1

VJ Updated by Victor Julien over 2 years ago Actions #19

  • Status changed from Assigned to In Review

VJ Updated by Victor Julien over 2 years ago Actions #20

  • Status changed from In Review to Closed
  • Priority changed from High to Normal

https://github.com/OISF/suricata/pull/9320

Issue was caused by data on RST feeding data to app-layer after EOF was already sent to app-layer. Data on RST tracked in #6244.

Actions

Also available in: PDF Atom