CVE-2026-81879: radare2: Heap out-of-bounds read in radare2 ELF PN_XNUM handling

Published Sep 22, 2026
·
Updated

radare2 is a UNIX-like reverse engineering framework and command-line toolset. Prior to 6.2.0, radare2's ELF PNXNUM handling was vulnerable because the ELF parser allocated the program-header array using the resolved PNXNUM count but several consumers still iterated with the original ephnum value of 65535. The vulnerability is triggered by processing a crafted ELF file with ephnum = 0xffff and a much smaller resolved count in shdr[0].shinfo. Consumers iterated beyond the allocated program-header array. This can cause a heap out-of-bounds read and process termination, resulting in denial of service; memory disclosure and code execution have not been demonstrated. This issue is fixed in version 6.2.0.

Affected Software

1 affected component
radare2<6.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade radare2 to a version that resolves this vulnerability.

    Fixed in 6.2.0

Event History

Sep 22, 2026
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users or services that run radare2 on untrusted or attacker-supplied ELF files are exposed. Exploitation requires local access and user interaction to process the crafted file.

2

What does an attacker need to provide to trigger the flaw?

The attacker needs a crafted ELF file whose e_phnum field is 0xffff while the resolved program-header count in shdr[0].sh_info is much smaller. Processing that file can make affected consumers read beyond the allocated program-header array.

3

What is the practical impact of successful exploitation?

The demonstrated impact is a heap out-of-bounds read that can terminate the radare2 process, causing denial of service. Memory disclosure and code execution have not been demonstrated.

4

How can I remediate this vulnerability?

Upgrade radare2 to version 6.2.0 or later. The issue affects versions prior to 6.2.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203