Bug 2073949 (CVE-2022-1240) - CVE-2022-1240 radare2: heap buffer overflow in libr/bin/format/mach0/mach0.c
Summary: CVE-2022-1240 radare2: heap buffer overflow in libr/bin/format/mach0/mach0.c
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-1240
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2073955 2073956
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-11 08:31 UTC by Marian Rehak
Modified: 2022-04-11 10:57 UTC (History)
2 users (show)

Fixed In Version: radare2 5.8.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-11 10:57:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2022-04-11 08:31:25 UTC
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](https://cwe.mitre.org/data/definitions/122.html).

Reference:

https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc
https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4

Comment 1 Marian Rehak 2022-04-11 08:39:10 UTC
Created radare2 tracking bugs for this issue:

Affects: epel-all [bug 2073956]
Affects: fedora-all [bug 2073955]

Comment 2 Product Security DevOps Team 2022-04-11 10:57:11 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.