Bug 2223860 (CVE-2021-32256) - CVE-2021-32256 binutils: stack-overflow issue in demangle_type in rust-demangle.c.
Summary: CVE-2021-32256 binutils: stack-overflow issue in demangle_type in rust-demang...
Keywords:
Status: NEW
Alias: CVE-2021-32256
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2223873 2223875 2223879 2223880 2223903 2223904 2223864 2223865 2223866 2223867 2223868 2223869 2223870 2223871 2223872 2223874 2223876 2223877 2223878 2223905 2223906 2229054 2229055 2229056 2229057
Blocks: 2223887
TreeView+ depends on / blocked
 
Reported: 2023-07-19 07:13 UTC by Vipul Nair
Modified: 2023-08-04 05:19 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Vipul Nair 2023-07-19 07:13:26 UTC
An issue was discovered in GNU libiberty, as distributed in GNU Binutils 2.36. It is a stack-overflow issue in demangle_type in rust-demangle.c.

https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1927070

Comment 4 Nick Clifton 2023-07-19 09:41:50 UTC
Notes:

  1. The bug is only triggered by attempting to demangle a deliberately malformed string.  Properly mangled strings produced by the Rust compiler - or other language compilers - will not trigger this bug.  Therefore it is unlikely to ever be encountered by most users.

  2. This bug, or a similar one, was reported upstream in the GCC bugzilla system and fixed there.  The fix was included in the binutils 2.38 release.  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105039

  3. The bug triggers a stack exhaustion effect, but not a privilege escalation effect.  As such it might conceivably be used a part of a denial of service attack, or to conceal other malicious code in a binary, but that is about it.

  4. According to the GNU Binutils' SECURITY.txt document, this bug would not qualify as a security bug - or a CVE - since it cannot threaten the security of a system.

Comment 5 Dhananjay Arunesh 2023-08-04 05:19:11 UTC
Created binutils tracking bugs for this issue:

Affects: fedora-all [bug 2229054]


Created gdb tracking bugs for this issue:

Affects: fedora-all [bug 2229055]


Created mingw-binutils tracking bugs for this issue:

Affects: fedora-all [bug 2229056]


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