A segmentation fault was discovered in radare2 with adf command. In libr/core/cmdanal.c, when command "adf" has no or wrong argument, analfcndata (core, input + 1) --> RAnalFunction *fcn = ranalgetfcnin (core->anal, core->offset, -1); returns null pointer for fcn causing segmentation fault later in ensurefcn_range (fcn).
[
{
"id": "CVE-2020-27795-231ef07b",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "244292947791401580523619951343614918559",
"length": 19258.0
},
"target": {
"file": "libr/anal/fcn.c",
"function": "fcn_recurse"
},
"source": "https://github.com/radare/radare2/commit/9ea0b7ce566cfdcfb3513f407c4056915204294a"
},
{
"id": "CVE-2020-27795-dd8f2939",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"274805908220688149522755239760777672229",
"119466392069489334944469399236725859120",
"33443597288417089084816862781691635747",
"274718893259183668102575589565194103045"
],
"threshold": 0.9
},
"target": {
"file": "libr/anal/fcn.c"
},
"source": "https://github.com/radare/radare2/commit/9ea0b7ce566cfdcfb3513f407c4056915204294a"
}
]
[
{
"id": "CVE-2020-27795-46513850",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "153811291681858866890748504907429968725",
"length": 912.0
},
"target": {
"file": "libr/core/cmd_anal.c",
"function": "anal_fcn_data"
},
"source": "https://github.com/radareorg/radare2/commit/4d3811681a80f92a53e795f6a64c4b0fc2c8dd22"
},
{
"id": "CVE-2020-27795-841f8d8f",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"100464344030729871496165300642673981437",
"73113114410150525543880411625266152214",
"111715125701439507073808871086794204942",
"161579852477131995059536291927356476144",
"150296636395438446294821280233559665312",
"65067218025666577534089885201128513288",
"203771247590070340598362029268293507601",
"91292196033182014457078193604466819019",
"46529597240874676867024021624294832691"
],
"threshold": 0.9
},
"target": {
"file": "libr/core/cmd_anal.c"
},
"source": "https://github.com/radareorg/radare2/commit/4d3811681a80f92a53e795f6a64c4b0fc2c8dd22"
}
]