Actions
Bug #3570
closedrfb: invalid AppLayerResult use
Affected Versions:
Effort:
Difficulty:
Label:
Description
Oss-Fuzz found some input to the RFB parser that triggers the (currently very unforgiving) checks on AppLayerResult.
fuzz_applayerparserparse: app-layer-parser.c:1268: AppLayerParserParse: Assertion `!(res.needed + res.consumed < input_len)' failed.
(gdb) f 4 #4 0x000055555594bc4e in AppLayerParserParse (tv=0x0, alp_tctx=0x61a00025bc80, f=0x613000555e40, alproto=24, flags=10 '\n', input=0x6020003eefd0 "\377\377\377\377", input_len=4) at app-layer-parser.c:1268 1268 BUG_ON(res.needed + res.consumed < input_len); (gdb) p res $1 = {status = 1, consumed = 0, needed = 3}
To reproduce:
./src/fuzz_applayerparserparse ~/Downloads/clusterfuzz-testcase-minimized-fuzz_applayerparserparse-5148616533737472
Compile with '--enable-fuzztargets'.
Files
Updated by Sascha Steinbiss over 4 years ago
Fix proposed in https://github.com/OISF/suricata/pull/4748
Updated by Victor Julien over 4 years ago
- Status changed from Assigned to Closed
Actions