CVE-2023-40022
Summary
| CVE | CVE-2023-40022 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-08-24 23:15:00 UTC |
| Updated | 2023-08-30 19:50:00 UTC |
| Description | Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.6.0 and prior are vulnerable to integer overflow in `consume_count` of `src/gnu_v2/cplus-dem.c`. The overflow check is valid logic but, is missing the modulus if the block once compiled. The compiler sees this block as unreachable code since the prior statement is multiplication by 10 and fails to consider overflow assuming the count will always be a multiple of 10. Rizin version 0.6.1 contains a fix for the issue. A temporary workaround would be disabling C++ demangling using the configuration option `bin.demangle=false`. |
Risk And Classification
Problem Types: CWE-190
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c | MISC | github.com | |
| Update rz-libdemangle by XVilka · Pull Request #3753 · rizinorg/rizin · GitHub | MISC | github.com | |
| [gnuv2] Fix multiplication overflow check due compiler optimizations by wargio · Pull Request #54 · rizinorg/rz-libdemangle · GitHub | MISC | github.com | |
| Integer Overflow in C++ demangler logic · Advisory · rizinorg/rizin · GitHub | MISC | github.com | |
| [gnuv2] Fix multiplication overflow check due compiler optimizations … · rizinorg/rz-libdemangle@51d0167 · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.