Heap-double-free vulnerability in radare2
Summary
OSV-2020-490: Heap-double-free in _free_resources. Affects radare2 versions >= b022c9533482a8f1c9ae825ced5c1a3e251837d9, < 149cb3587e4cd3928f8f56553ecfeaac15452585. Fixed in 149cb3587e4cd3928f8f56553ecfeaac15452585. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
radare2 is an open-source framework for reverse engineering and binary analysis. It provides a set of tools for analyzing and manipulating binary files. The vulnerability in radare2 is related to a heap-double-free issue, which can lead to a crash. This vulnerability was reported through the OSS-Fuzz project.
Vulnerability Detail
The vulnerability in radare2 is a heap-double-free issue. This type of vulnerability occurs when a program attempts to free the same memory address twice, leading to memory corruption and potential crashes. In this case, the crash occurs in the _free_resources function, specifically in the r_list_delete and r_list_purge functions. The vulnerability has been assigned a severity rating of HIGH. More details about the vulnerability can be found in the OSS-Fuzz report linked in the vulnerability details.
How To Fix
Minimum fixed version
149cb3587e4cd3928f8f56553ecfeaac15452585
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. The recommended solution is to update radare2 to a fixed version.
Conclusion
The heap-double-free vulnerability in radare2 can lead to crashes and potential memory corruption. It is recommended to update radare2 to a version that includes the fix for this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for radare2 →
FAQ
radare2 is an open-source framework for reverse engineering and binary analysis. It provides a set of tools for analyzing and manipulating binary files.
A heap-double-free vulnerability occurs when a program attempts to free the same memory address twice, leading to memory corruption and potential crashes.
This vulnerability has been assigned a severity rating of HIGH.
To fix this vulnerability, it is recommended to update radare2 to a version that includes the fix. The fix was implemented in commit 149cb3587e4cd3928f8f56553ecfeaac15452585 in the radare2 GitHub repository.
There is no specific workaround mentioned for this vulnerability. The recommended solution is to update radare2 to a fixed version.
References
Related vulnerabilities
Recent vulnerabilities recorded for radare2.