Skip to content

CVE-2022-1240 Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2

HighCVSS 7.8 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known

Description

Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2 prior to 5.8.6. If address sanitizer is disabled during the compiling, the program should executes into the r_str_ncpy function. Therefore I think it is very likely to be exploitable. For more general description of heap buffer overflow, see CWE.

Affected products

ProductAffected versionsFixed in
radareorg/radare2 < 5.8.6 5.8.6
radare2 <= 5.6.6 No fix listed
alpine/radare2(Alpine:v3.18) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.19) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.20) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.21) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.22) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.23) < 5.6.6-r0 5.6.6-r0
alpine/radare2(Alpine:v3.24) < 5.6.6-r0 5.6.6-r0
ubuntu/radare2(Ubuntu:24.04) All versions No fix listed
ubuntu/radare2(Ubuntu:26.04) All versions No fix listed
ubuntu/radare2(Ubuntu:26.10) All versions No fix listed

References