SZU-SE / MemLock_Benchmark

[ICSE2020] MemLock DataSet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MemLock_Benchmark

This Benchmark collect some vulnerabilities related to "excessive memory consumption", which are used in MemLock's experiment.

To trigger these vulnerabilities, the testcase should consume lost of stack memory or heap memory, which can test the ability of fuzzer for generating inputs that consume lost of memory.

The Seeds and POCs are in the folder

If you Cannot reproduce the bug, try to reduce the memory limit. For example:

  • ulimit -a to see the information of memory limit.
  • sudo ulimit -s 8192 or sudo ulimit -s 4096 to reduce the stack size.
  • sudo ulimit -m 36700160 to reduce the memory size.

The detail information of the benchmark can be seen as follow.

  • Bug type: stack-overflow
  • CVE ID:
  • Download:
    git clone git://repo.or.cz/nasm.git
    git checkout 81f98fe79be23174e2d6ddd9f17a5cfb9ca71ec7
    
  • Reproduce: nasm -f bin @@ -o ./tmp
  • Bug type: stack-overflow
  • CVE ID:
  • Download:
    git clone https://github.com/cesanta/mjs
    git checkout 2827bd00b59bdc176a010b22fc4acde9b580d6c2
    
  • install:clang mjs.c -DMJS_MAIN -fsanitize=address -g -o mjs.out -ldl
  • Reproduce: mjs.out @@
  • ASAN dumps the backtrace:
  • Bug type: stack-overflow
  • CVE ID:
  • Download:
    git clone https://github.com/westes/flex
    git checkout 98018e3f58d79e082216d406866942841d4bdf8a
    
  • Reproduce: flex @@
  • Bug type: stack-overflow
  • CVE ID:
  • Download:
    git clone https://github.com/VirusTotal/yara
    git checkout 012269756149ae99745b6dafefd415843d7420bb
    
  • Reproduce: yara @@ strings
  • Bug type: stack-overflow
  • CVE ID:
  • Download:
    git clone https://github.com/libming/libming
    git checkout b72cc2fda0e8b3792b7b3f7361fc3f917f269433
    
  • Reproduce: listswf @@
  • Bug type: uncontrolled-memory-allocation, memory leak
  • CVE ID:
  • Download:
    git clone https://github.com/mdadams/jasper
    git checkout 1a36ca39da535af2e67848f5f43ffd657746e632
    
  • Reproduce: jasper --input @@ --output test.bmp --output-format bmp
  • Bug type: uncontrolled-memory-allocation, memory leak
  • CVE ID:
  • Download:
    git clone https://github.com/libming/libming
    git checkout b72cc2fda0e8b3792b7b3f7361fc3f917f269433
    
  • Reproduce: listswf @@
  • Bug type: uncontrolled-memory-allocation, memory leak
  • CVE ID:
    • CVE-2018-6869
    • the meory leak is very easy to find in CVE website, lots of memory leak
  • Download:
    git clone https://github.com/gdraheim/zziplib
    git checkout bf4584fb06d5f9c5813616dbadc0129024c9c0f9
    
  • Reproduce: zzdir @@ || unzzip @@
  • Bug type: uncontrolled-memory-allocation, memory leak
  • CVE ID:
  • Download:
    git clone https://github.com/axiomatic-systems/Bento4
    git checkout 590312125c833bc496faf815c583cfd053509d2c
    
  • Reproduce: mp42hls @@
  • Bug type: uncontrolled-memory-allocation
  • CVE ID:
  • Download:
     git clone https://github.com/Exiv2/exiv2
     git checkout fa449a4d2c58d63f0d75ff259f25683a98a44630
    
  • Reproduce: exiv2 -pX @@
  • Bug type: uncontrolled-memory-allocation
  • CVE ID:
  • Download:
     git clone https://github.com/uclouvain/openjpeg
     git checkout 51f097e6d5754ddae93e716276fe8176b44ec548
    
  • Reproduce: opj_decompress -i @@ -o ./tmp.png

About

[ICSE2020] MemLock DataSet


Languages

Language:C 38.9%Language:Makefile 16.2%Language:D 14.8%Language:Assembly 13.5%Language:C++ 7.4%Language:Objective-C 3.5%Language:Scheme 1.3%Language:Roff 0.8%Language:Shell 0.7%Language:M4 0.4%Language:R 0.3%Language:Scala 0.3%Language:Yacc 0.3%Language:Lex 0.3%Language:Python 0.3%Language:TeX 0.2%Language:JavaScript 0.1%Language:Perl 0.1%Language:HTML 0.1%Language:CMake 0.1%Language:Ada 0.1%Language:Java 0.1%Language:Pascal 0.0%Language:Raku 0.0%Language:DIGITAL Command Language 0.0%Language:C# 0.0%Language:GAP 0.0%Language:GDScript 0.0%Language:CWeb 0.0%Language:XS 0.0%Language:Batchfile 0.0%Language:DTrace 0.0%Language:PicoLisp 0.0%Language:PHP 0.0%Language:SWIG 0.0%Language:Tcl 0.0%Language:MATLAB 0.0%Language:Common Lisp 0.0%Language:xBase 0.0%Language:Emacs Lisp 0.0%Language:NSIS 0.0%Language:CSS 0.0%Language:sed 0.0%Language:Ruby 0.0%Language:AGS Script 0.0%Language:XSLT 0.0%Language:Rebol 0.0%Language:E 0.0%Language:Slash 0.0%Language:Terra 0.0%Language:SuperCollider 0.0%Language:AngelScript 0.0%Language:LLVM 0.0%Language:Lua 0.0%Language:SAS 0.0%Language:CLIPS 0.0%Language:Awk 0.0%Language:Module Management System 0.0%Language:Inno Setup 0.0%Language:Mathematica 0.0%Language:RenderScript 0.0%Language:Go 0.0%Language:Rust 0.0%Language:Elixir 0.0%Language:QMake 0.0%Language:ActionScript 0.0%Language:YARA 0.0%Language:GDB 0.0%