CVE-2020-27795

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-27795
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-27795.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-27795
Downstream
Published
2022-08-19T23:15:08Z
Modified
2025-10-29T00:08:49.851577Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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).

References

Affected packages

Git / github.com/radare/radare2

Affected ranges

Type
GIT
Repo
https://github.com/radare/radare2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.10.0
0.10.1
0.10.2
0.10.3
0.10.4
0.10.4-termux4
0.10.5
0.10.6
0.8.6
0.8.8
0.9
0.9.2
0.9.4
0.9.6
0.9.7
0.9.8
0.9.8-rc1
0.9.8-rc2
0.9.8-rc3
0.9.8-rc4
0.9.9

1.*

1.0
1.0.0
1.0.1
1.0.2
1.1.0
1.2.0
1.2.0-git
1.3.0
1.3.0-git
1.4.0
1.5.0
1.6.0

2.*

2.0.0
2.0.1
2.1.0
2.2.0
2.4.0
2.5.0
2.6.0
2.6.9
2.7.0
2.8.0
2.9.0

3.*

3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.2.1
3.3.0
3.4.0
3.4.1
3.5.0
3.5.1
3.6.0
3.7.0
3.7.1
3.8.0
3.9.0

4.*

4.0.0
4.1.0
4.1.1
4.2.0
4.2.1
4.3.0
4.3.1

Other

Continuous-Windows
continuous
radare2-windows-nightly
termux

Database specific

vanir_signatures

[
    {
        "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"
    }
]

Git / github.com/radareorg/radare2

Affected ranges

Type
GIT
Repo
https://github.com/radareorg/radare2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.10.0
0.10.1
0.10.2
0.10.3
0.10.4
0.10.4-termux4
0.10.5
0.10.6
0.8.6
0.8.8
0.9
0.9.2
0.9.4
0.9.6
0.9.7
0.9.8
0.9.8-rc1
0.9.8-rc2
0.9.8-rc3
0.9.8-rc4
0.9.9

1.*

1.0
1.0.0
1.0.1
1.0.2
1.1.0
1.2.0
1.2.0-git
1.3.0
1.3.0-git
1.4.0
1.5.0
1.6.0

2.*

2.0.0
2.0.1
2.1.0
2.2.0
2.4.0
2.5.0
2.6.0
2.6.9
2.7.0
2.8.0
2.9.0

3.*

3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0
3.2.1
3.3.0
3.4.0
3.4.1
3.5.0
3.5.1
3.6.0
3.7.0
3.7.1
3.8.0
3.9.0

4.*

4.0.0
4.1.0
4.1.1
4.2.0
4.2.1
4.3.0
4.3.1

Other

Continuous-Windows
continuous
radare2-windows-nightly
termux

Database specific

vanir_signatures

[
    {
        "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"
    }
]