Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914338 (CVE-2023-40022) - <dev-util/rizin-0.6.2: multiple vulnerabilities
Summary: <dev-util/rizin-0.6.2: multiple vulnerabilities
Status: RESOLVED FIXED
Alias: CVE-2023-40022
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL:
Whiteboard: B3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-16 23:30 UTC by John Helmert III
Modified: 2023-09-25 04:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-09-16 23:30:38 UTC
CVE-2023-40022 (https://github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq):

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`.

And then in the 0.6.2 release notes:
* Fix multiple Use-After-Frees in disassembly and PYC parsing code
* Fix division by zero in s++ and s-- commands
* Fix infinite loop condition in parsing some ELF files
* Fix various memory leaks
Comment 1 Larry the Git Cow gentoo-dev 2023-09-17 00:06:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=222bc9419c8b3e8b7e2f6b5d8b71516d7bdf767b

commit 222bc9419c8b3e8b7e2f6b5d8b71516d7bdf767b
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2023-09-16 23:41:41 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2023-09-17 00:06:32 +0000

    dev-util/rizin: add 0.6.2
    
    Bug: https://bugs.gentoo.org/914338
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 dev-util/rizin/Manifest           |  2 +
 dev-util/rizin/rizin-0.6.2.ebuild | 98 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-09-17 00:07:33 UTC
Good to stabilize in a few days if nothing pops up.
Comment 3 Larry the Git Cow gentoo-dev 2023-09-25 04:49:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54756a4617beec5ca7f1fb73999816d3541bc001

commit 54756a4617beec5ca7f1fb73999816d3541bc001
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2023-09-25 04:48:45 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2023-09-25 04:49:21 +0000

    dev-util/rizin: drop 0.5.1, 0.5.2, 0.6.1
    
    Bug: https://bugs.gentoo.org/904413
    Bug: https://bugs.gentoo.org/914338
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 dev-util/rizin/Manifest           |  6 ---
 dev-util/rizin/rizin-0.5.1.ebuild | 92 ------------------------------------
 dev-util/rizin/rizin-0.5.2.ebuild | 97 --------------------------------------
 dev-util/rizin/rizin-0.6.1.ebuild | 98 ---------------------------------------
 4 files changed, 293 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed1eca8367b81a777ad2c47f49e17e071890018

commit 7ed1eca8367b81a777ad2c47f49e17e071890018
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2023-09-25 04:48:01 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2023-09-25 04:49:21 +0000

    dev-util/rizin: stabilize 0.6.2 for amd64
    
    Bug: https://bugs.gentoo.org/914338
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 dev-util/rizin/rizin-0.6.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)