CVE-2018-7642: Null Pointer Dereference

Published Mar 2, 2018
·
Updated

Last updated 24 July 2024

Other sources

The swapstdrelocin function in aoutx.h in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.30, allows attackers to cause a denial of service (aout32swapstdrelocout NULL pointer dereference and application crash) via a crafted ELF file, as demonstrated by objcopy.

Upstream issue:

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

Upstream patches:

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

Red Hat

The swapstdrelocin function in aoutx.h in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.30, allows remote attackers to cause a denial of service (aout32swapstdrelocout NULL pointer dereference and application crash) via a crafted ELF file, as demonstrated by objcopy.

Launchpad

Affected Software

5 affected componentsFixes available
GNU binutils=2.30
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Workstation=7.0
debian/binutils
2.35.2-22.40-22.44-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/binutils to a version that resolves this vulnerability.

    Fixed in 2.35.2-2Fixed in 2.40-2Fixed in 2.44-3

Event History

Mar 2, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Mar 8, 2018
Data Sourced
via Red Hat·10:50 AM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:10 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:06 AM
RemedyDescriptionSeverityAffected Software
Jan 30, 2025
Data Sourced
via Debian·01:53 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2018-7642?

CVE-2018-7642 is a vulnerability in the Binary File Descriptor (BFD) library (aka libbfd) as distributed in GNU Binutils 2.30.

2

How severe is CVE-2018-7642?

CVE-2018-7642 is classified as a low severity vulnerability.

3

Which software is affected by CVE-2018-7642?

The affected software is binutils version 2.30-6 on Ubuntu, binutils version 2.26.1-1ubuntu1~16.04.8+ on Ubuntu (xenial), and binutils versions 2.31.1-16, 2.35.2-2, 2.40-2, and 2.41-5 on Debian.

4

How can I fix CVE-2018-7642?

To fix CVE-2018-7642, update to binutils version 2.30-6 on Ubuntu, binutils version 2.26.1-1ubuntu1~16.04.8+ on Ubuntu (xenial), or binutils versions 2.31.1-16, 2.35.2-2, 2.40-2, or 2.41-5 on Debian, depending on the affected software.

5

Where can I find more information about CVE-2018-7642?

You can find more information about CVE-2018-7642 at the following references: https://sourceware.org/bugzilla/show_bug.cgi?id=22887, https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=116acb2c268c89c89186673a7c92620d21825b25, and https://access.redhat.com/errata/RHSA-2018:3032.

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