Description
In radare2 through 4.0, there is an integer overflow for the variable new_token_size in the function r_asm_massemble at libr/asm/asm.c. This integer overflow will result in a Use-After-Free for the buffer tokens, which can be filled with arbitrary malicious data after the free. This allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via crafted input.
References (3)
Scores
CVSS v3
7.8
EPSS
0.0305
EPSS Percentile
86.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Details
CWE
CWE-190
CWE-416
Status
published
Products (1)
radare/radare2
< 4.0.0
Published
Dec 05, 2019
Tracked Since
Feb 18, 2026