Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.8

CVE-2025-5644: radare2 r_cons_flush function may crash

CVE-2025-5644 · published 1 year ago
Summary

The r_cons_flush routine in radare2 version 5.9.9 can mishandle the -T option, causing the program to use memory that has already been released. This could lead to a crash or unexpected behavior for anyone running the tool locally. Update radare2 with the provided patch to prevent the issue.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
– radare radare2 5.9.9
cpe:2.3:a:radare:radare2:5.9.9:*:*:*:*:*:*:*
Ubuntu:16.04:LTS canonical radare2 All versions
Original advisory text
Radare2 radiff2 cons.c r_cons_flush use after free
A vulnerability, which was classified as problematic, has been found in Radare2 5.9.9. Affected by this issue is the function r_cons_flush in the library /libr/cons/cons.c of the component radiff2. The manipulation of the argument -T leads to use after free. Local access is required to approach this attack. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The name of the patch is 5705d99cc1f23f36f9a84aab26d1724010b97798. It is recommended to apply a patch to fix this issue. The documentation explains that the parameter -T is experimental and "crashy". Further analysis has shown "the race is not a real problem unless you use asan". A new warning has been added.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
5.8 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-119Buffer Overflow
CWE-416Use After Free
Timeline
Published5 Jun 2025
Updated1 Nov 2026
First seen7 Mar 2026
Sources
CVE-2025-5644 · NVD
CVE-2025-5644 · OSV
Track software like this
Free during beta