CVE-2025-5644: Radare2 radiff2 cons.c r_cons_flush use after free

2.5 CVSS

Description

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. Eine problematische Schwachstelle wurde in Radare2 5.9.9 entdeckt. Dies betrifft die Funktion r_cons_flush in der Bibliothek /libr/cons/cons.c der Komponente radiff2. Durch Manipulieren des Arguments -T mit unbekannten Daten kann eine use after free-Schwachstelle ausgenutzt werden. Der Angriff muss lokal passieren. Die Komplexität eines Angriffs ist eher hoch. Sie ist schwierig ausnutzbar. Der Exploit steht zur öffentlichen Verfügung. Bisher konnte die Existenz der vermeintlichen Schwachstelle noch nicht eindeutig nachgewiesen werden. Der Patch wird als 5705d99cc1f23f36f9a84aab26d1724010b97798 bezeichnet. Als bestmögliche Massnahme wird Patching e...

Classification

CVE ID: CVE-2025-5644

CVSS Base Severity: LOW

CVSS Base Score: 2.5

CVSS Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

Problem Types

Use After Free Memory Corruption

Affected Products

Vendor: n/a

Product: Radare2

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.01% (probability of being exploited)

EPSS Percentile: 1.35% (scored less or equal to compared to others)

EPSS Date: 2025-06-07 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-5644
https://vuldb.com/?id.311132
https://vuldb.com/?ctiid.311132
https://vuldb.com/?submit.586921
https://github.com/radareorg/radare2/issues/24233
https://github.com/radareorg/radare2/issues/24233#issuecomment-2918847833
https://drive.google.com/file/d/1VtiMMp7ECun3sq3AwlqQrU9xEPA45eOz/view?usp=sharing
https://github.com/radareorg/radare2/commit/5705d99cc1f23f36f9a84aab26d1724010b97798

Timeline