Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-8395

The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.28, is vulnerable to an invalid write of size 8 because of missing a malloc() return-value check to see if memory had actually been allocated in the _bfd_generic_get_section_contents function. This vulnerability causes programs that conduct an analysis of binary programs using the libbfd library, such as objcopy, to crash.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-8395
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:32 UTC · Revision 1

Source evidence

CVE-2017-8395

core-osv · Original source

Published 1 May 2017, 18:59 UTC

The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.28, is vulnerable to an invalid write of size 8 because of missing a malloc() return-value check to see if memory had actually been allocated in the _bfd_generic_get_section_contents function. This vulnerability causes programs that conduct an analysis of binary programs using the libbfd library, such as objcopy, to crash.

osv:CVE-2017-8395
Complete source record
{
  "id": "c47e40dd94b68b89ade5148e5af5794a5dca187ec634b3c701ed621b15aceb3d",
  "url": "https://osv.dev/vulnerability/CVE-2017-8395",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-8395",
    "summary": "The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.28, is vulnerable to an invalid write of size 8 because of missing a malloc() return-value check to see if memory had actually been allocated in the _bfd_generic_get_section_contents function. This vulnerability causes programs that conduct an analysis of binary programs using the libbfd library, such as objcopy, to crash.",
    "evidence": "osv:CVE-2017-8395",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-8395",
      "aliases": [
        "CVE-2017-8395"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://sourceware.org/git/binutils-gdb.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7fa393306ed8b93019d225548474c0540b8928f7"
                },
                {
                  "last_affected": "7fa393306ed8b93019d225548474c0540b8928f7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gnu:binutils:2.28:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.28"
                      },
                      {
                        "last_affected": "2.28"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.28",
            "binutils-2_28"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-8395.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:19.716392817Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/201709-02",
        "https://sourceware.org/bugzilla/show_bug.cgi?id=21431"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-8395",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430096,
  "published_at": "2017-05-01T18:59:00.277+00:00"
}