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).
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-27795.json"
[
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 19258.0,
"function_hash": "244292947791401580523619951343614918559"
},
"signature_type": "Function",
"id": "CVE-2020-27795-231ef07b",
"source": "https://github.com/radare/radare2/commit/9ea0b7ce566cfdcfb3513f407c4056915204294a",
"target": {
"function": "fcn_recurse",
"file": "libr/anal/fcn.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"274805908220688149522755239760777672229",
"119466392069489334944469399236725859120",
"33443597288417089084816862781691635747",
"274718893259183668102575589565194103045"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2020-27795-dd8f2939",
"source": "https://github.com/radare/radare2/commit/9ea0b7ce566cfdcfb3513f407c4056915204294a",
"target": {
"file": "libr/anal/fcn.c"
}
}
]