CVE-2025-5642: Radare2 radiff2 pal.c r_cons_pal_init memory corruption

2.5 CVSS

Description

A vulnerability classified as problematic has been found in Radare2 5.9.9. Affected is the function r_cons_pal_init in the library /libr/cons/pal.c of the component radiff2. The manipulation leads to memory corruption. The attack needs to be approached locally. The complexity of an attack is rather high. The exploitability is told 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 patch is identified as 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. Es wurde eine problematische Schwachstelle in Radare2 5.9.9 entdeckt. Es betrifft die Funktion r_cons_pal_init in der Bibliothek /libr/cons/pal.c der Komponente radiff2. Mittels Manipulieren mit unbekannten Daten kann eine memory corruption-Schwachstelle ausgenutzt werden. Der Angriff hat dabei lokal zu erfolgen. Die Komplexität eines Angriffs ist eher hoch. Sie gilt als schwierig auszunutzen. Der Exploit steht zur öffentlichen Verfügung. Die wahre Existenz der vermeintlichen Schwachstelle wird zur Zeit in Frage gestellt. Der Patch wird als 5705d99cc1f23f36f9a84aab26d1724010b97798 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.

Classification

CVE ID: CVE-2025-5642

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

Memory Corruption

Affected Products

Vendor: n/a

Product: Radare2

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.02% (probability of being exploited)

EPSS Percentile: 1.97% (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-5642
https://vuldb.com/?id.311130
https://vuldb.com/?ctiid.311130
https://vuldb.com/?submit.586910
https://github.com/radareorg/radare2/issues/24231
https://github.com/radareorg/radare2/issues/24231#issuecomment-2918848163
https://drive.google.com/file/d/1joXpofhKSeb3uJ034ayVuWIoJj08gm_9/view?usp=sharing
https://github.com/radareorg/radare2/commit/5705d99cc1f23f36f9a84aab26d1724010b97798

Timeline