Gentoo update for GNU Binutils



Published: 2022-08-15 | Updated: 2023-01-22
Risk High
Patch available YES
Number of vulnerabilities 7
CVE-ID CVE-2021-20197
CVE-2021-20284
CVE-2021-20294
CVE-2021-3487
CVE-2021-3530
CVE-2021-3549
CVE-2021-45078
CWE-ID CWE-61
CWE-122
CWE-787
CWE-20
CWE-674
Exploitation vector Network
Public exploit Public exploit code for vulnerability #3 is available.
Vulnerable software
Subscribe
Gentoo Linux
Operating systems & Components / Operating system

sys-libs/binutils-libs
Operating systems & Components / Operating system package or component

sys-devel/binutils
Operating systems & Components / Operating system package or component

Vendor Gentoo

Security Bulletin

This security bulletin contains information about 7 vulnerabilities.

1) UNIX symbolic link following

EUVDB-ID: #VU66492

Risk: Low

CVSSv3.1: 6.2 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-20197

CWE-ID: CWE-61 - UNIX Symbolic Link (Symlink) Following

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a symlink following issue within the ar, objcopy, strip, ranlib utilities wen writing output. A local user can create a specially crafted symbolic link to a critical file on the system and overwrite it with privileges of the application.

Successful exploitation of this vulnerability may result in privilege escalation.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Heap-based buffer overflow

EUVDB-ID: #VU66493

Risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-20284

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the _bfd_elf_slurp_secondary_reloc_section() function in elf.c. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Out-of-bounds write

EUVDB-ID: #VU66491

Risk: Medium

CVSSv3.1: 6.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2021-20294

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input in readelf. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

4) Input validation error

EUVDB-ID: #VU61550

Risk: Medium

CVSSv3.1: 5.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3487

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input within the BFD library in binutils. A remote attacker who supplies a crafted file to an application linked with BFD can use the DWARF functionality to perform a denial of service (DoS) attack.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

5) Uncontrolled Recursion

EUVDB-ID: #VU66490

Risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3530

CWE-ID: CWE-674 - Uncontrolled Recursion

Exploit availability: No

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to uncontrolled recursion within the demangle_path() function in rust-demangle.c in GNU libiberty. A remote attacker can pass specially crafted input to the application and perform a denial of service (DoS) attack.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

6) Out-of-bounds write

EUVDB-ID: #VU59295

Risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3549

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error in the objdump utility. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger an out-of-bounds write by passing a large section to avr_elf32_load_records_from_section() function and execute arbitrary code on the target system.

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

7) Out-of-bounds write

EUVDB-ID: #VU59293

Risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-45078

CWE-ID: CWE-787 - Out-of-bounds write

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to a boundary error in stab_xcoff_builtin_type() function in stabs.c. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.

Note, the vulnerability exists due to incorrect patch for #VU13471 (CVE-2018-12699).

Mitigation

Update the affected packages.
sys-devel/binutils to version: 2.38
sys-libs/binutils-libs to version: 2.38

Vulnerable software versions

Gentoo Linux: All versions

sys-libs/binutils-libs: before 2.38

sys-devel/binutils: before 2.38

CPE2.3 External links

http://security.gentoo.org/glsa/202208-30


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###