CVE-2023-25586: Local variable `ch_type` in function `bfd_init_section_decompress_status` can be uninitialized

Published Dec 12, 2022
·
Updated

A flaw was found in Binutils. A logic fail in the bfdinitsectiondecompressstatus function may lead to the use of an uninitialized variable that can cause a crash and local denial of service.

Other sources

In Binutils, at function bfdinitsectiondecompressstatus, a local variable is supposed to be initialized by function bfdcheckcompressionheader. However, since this function call is inside an else if branch, if the previous if branch is taken, the chtype can be uninitialized and thus directly used to assign sec->compressstatus. Therefore, when the compressstatus field is used in a branch condition, the memory sanitizer aborts.

Upstream bug:

https://sourceware.org/bugzilla/showbug.cgi?id=29855

Upstream fix:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5830876a0cca17bef3b2d54908928e72cca53502

Red Hat

Affected Software

1 affected component
GNU binutils=2.40

Event History

Dec 12, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeakness
Feb 6, 2023
Data Sourced
via Red Hat·08:04 PM
DescriptionSeverityAffected Software
Sep 14, 2023
CVE Published
via MITRE·08:49 PM
Data Sourced
via MITRE·08:49 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the vulnerability ID for this flaw in Binutils?

The vulnerability ID for this flaw in Binutils is CVE-2023-25586.

2

What is the severity of CVE-2023-25586?

CVE-2023-25586 has a severity level of medium (5.5).

3

Which version of Binutils is affected by CVE-2023-25586?

Binutils version 2.40 is affected by CVE-2023-25586.

4

What is the CWE ID for this vulnerability?

The CWE ID for this vulnerability is CWE-908 and CWE-457.

5

How can this vulnerability in Binutils be exploited?

This vulnerability in Binutils can be exploited by causing a crash and local denial of service through the use of an uninitialized variable.

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