CVE-2025-5641 Radare2 radiff2 cons.c r_cons_is_breaked memory corruption
Local attackers can trigger memory corruption in Radare2's radiff2 via the experimental -T flag, potentially causing crashes or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-5641?
CVE-2025-5641 is a low-severity memory corruption vulnerability in Radare Radare2, published on 5 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in Radare2 5.9.9. It has been rated as problematic. This issue affects the function r_cons_is_breaked in the library /libr/cons/cons.c of the component radiff2. The manipulation of the argument -T leads to memory corruption. It is possible to launch the attack on the local host. 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 identifier 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". An additional warning regarding threading support has been added.
Weakness: CWE-119
Which versions are affected by CVE-2025-5641?
It affects 1 product.
Products include Radare Radare2.
How do I fix CVE-2025-5641?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-5641 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5641 exists.
Other vulnerabilities in Radare Radare2
Sources
Also known as GHSA-mrww-q696-jcq2, UBUNTU-CVE-2025-5641.