Vulnerabilities > CVE-2019-7150 - Out-of-bounds Read vulnerability in multiple products

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL

Summary

An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Overread Buffers
    An adversary attacks a target by providing input that causes an application to read beyond the boundary of a defined buffer. This typically occurs when a value influencing where to start or stop reading is set to reflect positions outside of the valid memory location of the buffer. This type of attack may result in exposure of sensitive information, a system crash, or arbitrary code execution.

Nessus

  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2019-1_0-0239_ELFUTILS.NASL
    descriptionAn update of the elfutils package has been released.
    last seen2020-06-01
    modified2020-06-02
    plugin id126186
    published2019-06-24
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/126186
    titlePhoton OS 1.0: Elfutils PHSA-2019-1.0-0239
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # The descriptive text and package checks in this plugin were
    # extracted from VMware Security Advisory PHSA-2019-1.0-0239. The text
    # itself is copyright (C) VMware, Inc.
    
    include("compat.inc");
    
    if (description)
    {
      script_id(126186);
      script_version("1.2");
      script_cvs_date("Date: 2020/01/09");
    
      script_cve_id("CVE-2019-7148", "CVE-2019-7149", "CVE-2019-7150");
      script_bugtraq_id(107260);
    
      script_name(english:"Photon OS 1.0: Elfutils PHSA-2019-1.0-0239");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote PhotonOS host is missing multiple security updates.");
      script_set_attribute(attribute:"description", value:
    "An update of the elfutils package has been released.");
      script_set_attribute(attribute:"see_also", value:"https://github.com/vmware/photon/wiki/Security-Updates-1.0-239.md");
      script_set_attribute(attribute:"solution", value:
    "Update the affected Linux packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-0204");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/03/06");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/06/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/06/24");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:elfutils");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:photonos:1.0");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"PhotonOS Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/PhotonOS/release", "Host/PhotonOS/rpm-list");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/PhotonOS/release");
    if (isnull(release) || release !~ "^VMware Photon") audit(AUDIT_OS_NOT, "PhotonOS");
    if (release !~ "^VMware Photon (?:Linux|OS) 1\.0(\D|$)") audit(AUDIT_OS_NOT, "PhotonOS 1.0");
    
    if (!get_kb_item("Host/PhotonOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "PhotonOS", cpu);
    
    flag = 0;
    
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-debuginfo-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-devel-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-devel-static-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-libelf-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-libelf-devel-0.176-1.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"elfutils-libelf-devel-static-0.176-1.ph1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2020-1190.NASL
    descriptionAccording to the versions of the elfutils packages installed, the EulerOS Virtualization for ARM 64 installation on the remote host is affected by the following vulnerabilities : - In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes.(CVE-2019-7665) - An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack.(CVE-2019-7150) - A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm.(CVE-2019-7149) - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.(CVE-2018-18521) - libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-based buffer over-read and an application crash.(CVE-2018-16403) - libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice.(CVE-2018-16402) - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file.(CVE-2018-16062) - **DISPUTED** An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a
    last seen2020-03-19
    modified2020-03-13
    plugin id134479
    published2020-03-13
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/134479
    titleEulerOS Virtualization for ARM 64 3.0.2.0 : elfutils (EulerOS-SA-2020-1190)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(134479);
      script_version("1.2");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/19");
    
      script_cve_id(
        "CVE-2018-16062",
        "CVE-2018-16402",
        "CVE-2018-16403",
        "CVE-2018-18521",
        "CVE-2019-7148",
        "CVE-2019-7149",
        "CVE-2019-7150",
        "CVE-2019-7665"
      );
    
      script_name(english:"EulerOS Virtualization for ARM 64 3.0.2.0 : elfutils (EulerOS-SA-2020-1190)");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS Virtualization for ARM 64 host is missing multiple security
    updates.");
      script_set_attribute(attribute:"description", value:
    "According to the versions of the elfutils packages installed, the
    EulerOS Virtualization for ARM 64 installation on the remote host is
    affected by the following vulnerabilities :
    
      - In elfutils 0.175, a heap-based buffer over-read was
        discovered in the function elf32_xlatetom in
        elf32_xlatetom.c in libelf. A crafted ELF input can
        cause a segmentation fault leading to denial of service
        (program crash) because ebl_core_note does not reject
        malformed core file notes.(CVE-2019-7665)
    
      - An issue was discovered in elfutils 0.175. A
        segmentation fault can occur in the function
        elf64_xlatetom in libelf/elf32_xlatetom.c, due to
        dwfl_segment_report_module not checking whether the dyn
        data read from a core file is truncated. A crafted
        input can cause a program crash, leading to
        denial-of-service, as demonstrated by
        eu-stack.(CVE-2019-7150)
    
      - A heap-based buffer over-read was discovered in the
        function read_srclines in dwarf_getsrclines.c in libdw
        in elfutils 0.175. A crafted input can cause
        segmentation faults, leading to denial-of-service, as
        demonstrated by eu-nm.(CVE-2019-7149)
    
      - Divide-by-zero vulnerabilities in the function
        arlib_add_symbols() in arlib.c in elfutils 0.174 allow
        remote attackers to cause a denial of service
        (application crash) with a crafted ELF file, as
        demonstrated by eu-ranlib, because a zero sh_entsize is
        mishandled.(CVE-2018-18521)
    
      - libdw in elfutils 0.173 checks the end of the
        attributes list incorrectly in dwarf_getabbrev in
        dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c,
        leading to a heap-based buffer over-read and an
        application crash.(CVE-2018-16403)
    
      - libelf/elf_end.c in elfutils 0.173 allows remote
        attackers to cause a denial of service (double free and
        application crash) or possibly have unspecified other
        impact because it tries to decompress
        twice.(CVE-2018-16402)
    
      - dwarf_getaranges in dwarf_getaranges.c in libdw in
        elfutils before 2018-08-18 allows remote attackers to
        cause a denial of service (heap-based buffer over-read)
        via a crafted file.(CVE-2018-16062)
    
      - **DISPUTED** An attempted excessive memory allocation
        was discovered in the function read_long_names in
        elf_begin.c in libelf in elfutils 0.174. Remote
        attackers could leverage this vulnerability to cause a
        denial-of-service via crafted elf input, which leads to
        an out-of-memory exception. NOTE: The maintainers
        believe this is not a real issue, but instead a
        'warning caused by ASAN because the allocation is big.
        By setting ASAN_OPTIONS=allocator_may_return_null=1 and
        running the reproducer, nothing
        happens.'(CVE-2019-7148)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2020-1190
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3fb7bb17");
      script_set_attribute(attribute:"solution", value:
    "Update the affected elfutils packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2020/03/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2020/03/13");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-default-yama-scope");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-libelf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:uvp:3.0.2.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/uvp_version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (uvp != "3.0.2.0") audit(AUDIT_OS_NOT, "EulerOS Virtualization 3.0.2.0");
    if (!get_kb_item("Host/EulerOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("aarch64" >!< cpu) audit(AUDIT_ARCH_NOT, "aarch64", cpu);
    
    flag = 0;
    
    pkgs = ["elfutils-0.170-4.h5",
            "elfutils-default-yama-scope-0.170-4.h5",
            "elfutils-libelf-0.170-4.h5",
            "elfutils-libs-0.170-4.h5"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2019-2197.NASL
    descriptionAn update for elfutils is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Low. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link (s) in the References section. The elfutils packages contain a number of utility programs and libraries related to the creation and maintenance of executable code. The following packages have been upgraded to a later upstream version: elfutils (0.176). (BZ#1676504) Security Fix(es) : * elfutils: Heap-based buffer over-read in libdw/ dwarf_getaranges.c:dwarf_getaranges() via crafted file (CVE-2018-16062) * elfutils: Double-free due to double decompression of sections in crafted ELF causes crash (CVE-2018-16402) * elfutils: Heap-based buffer over-read in libdw/dwarf_getabbrev.c and libwd/ dwarf_hasattr.c causes crash (CVE-2018-16403) * elfutils: invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl (CVE-2018-18310) * elfutils: eu-size cannot handle recursive ar files (CVE-2018-18520) * elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c (CVE-2018-18521) * elfutils: heap-based buffer over-read in read_srclines in dwarf_getsrclines.c in libdw (CVE-2019-7149) * elfutils: segmentation fault in elf64_xlatetom in libelf/elf32_xlatetom.c (CVE-2019-7150) * elfutils: Out of bound write in elf_cvt_note in libelf/note_xlate.h (CVE-2019-7664) * elfutils: heap-based buffer over-read in function elf32_xlatetom in elf32_xlatetom.c (CVE-2019-7665) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 7.7 Release Notes linked from the References section.
    last seen2020-06-01
    modified2020-06-02
    plugin id128375
    published2019-08-30
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/128375
    titleCentOS 7 : elfutils (CESA-2019:2197)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2019:2197 and 
    # CentOS Errata and Security Advisory 2019:2197 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(128375);
      script_version("1.3");
      script_cvs_date("Date: 2019/12/31");
    
      script_cve_id("CVE-2018-16062", "CVE-2018-16402", "CVE-2018-16403", "CVE-2018-18310", "CVE-2018-18520", "CVE-2018-18521", "CVE-2019-7149", "CVE-2019-7150", "CVE-2019-7664", "CVE-2019-7665");
      script_xref(name:"RHSA", value:"2019:2197");
    
      script_name(english:"CentOS 7 : elfutils (CESA-2019:2197)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "An update for elfutils is now available for Red Hat Enterprise Linux
    7.
    
    Red Hat Product Security has rated this update as having a security
    impact of Low. A Common Vulnerability Scoring System (CVSS) base
    score, which gives a detailed severity rating, is available for each
    vulnerability from the CVE link (s) in the References section.
    
    The elfutils packages contain a number of utility programs and
    libraries related to the creation and maintenance of executable code.
    
    The following packages have been upgraded to a later upstream version:
    elfutils (0.176). (BZ#1676504)
    
    Security Fix(es) :
    
    * elfutils: Heap-based buffer over-read in libdw/
    dwarf_getaranges.c:dwarf_getaranges() via crafted file
    (CVE-2018-16062)
    
    * elfutils: Double-free due to double decompression of sections in
    crafted ELF causes crash (CVE-2018-16402)
    
    * elfutils: Heap-based buffer over-read in libdw/dwarf_getabbrev.c and
    libwd/ dwarf_hasattr.c causes crash (CVE-2018-16403)
    
    * elfutils: invalid memory address dereference was discovered in
    dwfl_segment_report_module.c in libdwfl (CVE-2018-18310)
    
    * elfutils: eu-size cannot handle recursive ar files (CVE-2018-18520)
    
    * elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c
    (CVE-2018-18521)
    
    * elfutils: heap-based buffer over-read in read_srclines in
    dwarf_getsrclines.c in libdw (CVE-2019-7149)
    
    * elfutils: segmentation fault in elf64_xlatetom in
    libelf/elf32_xlatetom.c (CVE-2019-7150)
    
    * elfutils: Out of bound write in elf_cvt_note in libelf/note_xlate.h
    (CVE-2019-7664)
    
    * elfutils: heap-based buffer over-read in function elf32_xlatetom in
    elf32_xlatetom.c (CVE-2019-7665)
    
    For more details about the security issue(s), including the impact, a
    CVSS score, acknowledgments, and other related information, refer to
    the CVE page(s) listed in the References section.
    
    Additional Changes :
    
    For detailed information on changes in this release, see the Red Hat
    Enterprise Linux 7.7 Release Notes linked from the References section."
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2019-August/005856.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?296c7414"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected elfutils packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-16402");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-default-yama-scope");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-devel-static");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-libelf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-libelf-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-libelf-devel-static");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:elfutils-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:7");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/29");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/08/29");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/08/30");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 7.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-default-yama-scope-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-devel-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-devel-static-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-libelf-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-libelf-devel-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-libelf-devel-static-0.176-2.el7")) flag++;
    if (rpm_check(release:"CentOS-7", cpu:"x86_64", reference:"elfutils-libs-0.176-2.el7")) flag++;
    
    
    if (flag)
    {
      cr_plugin_caveat = '\n' +
        'NOTE: The security advisory associated with this vulnerability has a\n' +
        'fixed package version that may only be available in the continuous\n' +
        'release (CR) repository for CentOS, until it is present in the next\n' +
        'point release of CentOS.\n\n' +
    
        'If an equal or higher package level does not exist in the baseline\n' +
        'repository for your major version of CentOS, then updates from the CR\n' +
        'repository will need to be applied in order to address the\n' +
        'vulnerability.\n';
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get() + cr_plugin_caveat
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils / elfutils-default-yama-scope / elfutils-devel / etc");
    }
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2019-2197.NASL
    descriptionAn update for elfutils is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Low. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link (s) in the References section. The elfutils packages contain a number of utility programs and libraries related to the creation and maintenance of executable code. The following packages have been upgraded to a later upstream version: elfutils (0.176). (BZ#1676504) Security Fix(es) : * elfutils: Heap-based buffer over-read in libdw/ dwarf_getaranges.c:dwarf_getaranges() via crafted file (CVE-2018-16062) * elfutils: Double-free due to double decompression of sections in crafted ELF causes crash (CVE-2018-16402) * elfutils: Heap-based buffer over-read in libdw/dwarf_getabbrev.c and libwd/ dwarf_hasattr.c causes crash (CVE-2018-16403) * elfutils: invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl (CVE-2018-18310) * elfutils: eu-size cannot handle recursive ar files (CVE-2018-18520) * elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c (CVE-2018-18521) * elfutils: heap-based buffer over-read in read_srclines in dwarf_getsrclines.c in libdw (CVE-2019-7149) * elfutils: segmentation fault in elf64_xlatetom in libelf/elf32_xlatetom.c (CVE-2019-7150) * elfutils: Out of bound write in elf_cvt_note in libelf/note_xlate.h (CVE-2019-7664) * elfutils: heap-based buffer over-read in function elf32_xlatetom in elf32_xlatetom.c (CVE-2019-7665) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 7.7 Release Notes linked from the References section.
    last seen2020-06-01
    modified2020-06-02
    plugin id127696
    published2019-08-12
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/127696
    titleRHEL 7 : elfutils (RHSA-2019:2197)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2019:2197. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(127696);
      script_version("1.5");
      script_cvs_date("Date: 2020/01/06");
    
      script_cve_id("CVE-2018-16062", "CVE-2018-16402", "CVE-2018-16403", "CVE-2018-18310", "CVE-2018-18520", "CVE-2018-18521", "CVE-2019-7149", "CVE-2019-7150", "CVE-2019-7664", "CVE-2019-7665");
      script_xref(name:"RHSA", value:"2019:2197");
    
      script_name(english:"RHEL 7 : elfutils (RHSA-2019:2197)");
      script_summary(english:"Checks the rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "An update for elfutils is now available for Red Hat Enterprise Linux
    7.
    
    Red Hat Product Security has rated this update as having a security
    impact of Low. A Common Vulnerability Scoring System (CVSS) base
    score, which gives a detailed severity rating, is available for each
    vulnerability from the CVE link (s) in the References section.
    
    The elfutils packages contain a number of utility programs and
    libraries related to the creation and maintenance of executable code.
    
    The following packages have been upgraded to a later upstream version:
    elfutils (0.176). (BZ#1676504)
    
    Security Fix(es) :
    
    * elfutils: Heap-based buffer over-read in libdw/
    dwarf_getaranges.c:dwarf_getaranges() via crafted file
    (CVE-2018-16062)
    
    * elfutils: Double-free due to double decompression of sections in
    crafted ELF causes crash (CVE-2018-16402)
    
    * elfutils: Heap-based buffer over-read in libdw/dwarf_getabbrev.c and
    libwd/ dwarf_hasattr.c causes crash (CVE-2018-16403)
    
    * elfutils: invalid memory address dereference was discovered in
    dwfl_segment_report_module.c in libdwfl (CVE-2018-18310)
    
    * elfutils: eu-size cannot handle recursive ar files (CVE-2018-18520)
    
    * elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c
    (CVE-2018-18521)
    
    * elfutils: heap-based buffer over-read in read_srclines in
    dwarf_getsrclines.c in libdw (CVE-2019-7149)
    
    * elfutils: segmentation fault in elf64_xlatetom in
    libelf/elf32_xlatetom.c (CVE-2019-7150)
    
    * elfutils: Out of bound write in elf_cvt_note in libelf/note_xlate.h
    (CVE-2019-7664)
    
    * elfutils: heap-based buffer over-read in function elf32_xlatetom in
    elf32_xlatetom.c (CVE-2019-7665)
    
    For more details about the security issue(s), including the impact, a
    CVSS score, acknowledgments, and other related information, refer to
    the CVE page(s) listed in the References section.
    
    Additional Changes :
    
    For detailed information on changes in this release, see the Red Hat
    Enterprise Linux 7.7 Release Notes linked from the References section."
      );
      # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?3395ff0b"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2019:2197"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-16062"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-16402"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-16403"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-18310"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-18520"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2018-18521"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2019-7149"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2019-7150"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2019-7664"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2019-7665"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-default-yama-scope");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-devel-static");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-libelf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-libelf-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-libelf-devel-static");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:elfutils-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/29");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/08/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/08/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 7.x", "Red Hat " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2019:2197";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_HOLE,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"elfutils-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"elfutils-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-debuginfo-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-default-yama-scope-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-devel-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-devel-static-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-libelf-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-libelf-devel-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-libelf-devel-static-0.176-2.el7")) flag++;
      if (rpm_check(release:"RHEL7", reference:"elfutils-libs-0.176-2.el7")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_HOLE,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils / elfutils-debuginfo / elfutils-default-yama-scope / etc");
      }
    }
    
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2019-2_0-0164_ELFUTILS.NASL
    descriptionAn update of the elfutils package has been released.
    last seen2020-06-01
    modified2020-06-02
    plugin id126180
    published2019-06-24
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/126180
    titlePhoton OS 2.0: Elfutils PHSA-2019-2.0-0164
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # The descriptive text and package checks in this plugin were
    # extracted from VMware Security Advisory PHSA-2019-2.0-0164. The text
    # itself is copyright (C) VMware, Inc.
    
    include("compat.inc");
    
    if (description)
    {
      script_id(126180);
      script_version("1.2");
      script_cvs_date("Date: 2020/01/09");
    
      script_cve_id("CVE-2019-7148", "CVE-2019-7149", "CVE-2019-7150");
      script_bugtraq_id(107260);
    
      script_name(english:"Photon OS 2.0: Elfutils PHSA-2019-2.0-0164");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote PhotonOS host is missing multiple security updates.");
      script_set_attribute(attribute:"description", value:
    "An update of the elfutils package has been released.");
      script_set_attribute(attribute:"see_also", value:"https://github.com/vmware/photon/wiki/Security-Updates-2-164.md");
      script_set_attribute(attribute:"solution", value:
    "Update the affected Linux packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-5729");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/03/06");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/06/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/06/24");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:elfutils");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:photonos:2.0");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"PhotonOS Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/PhotonOS/release", "Host/PhotonOS/rpm-list");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/PhotonOS/release");
    if (isnull(release) || release !~ "^VMware Photon") audit(AUDIT_OS_NOT, "PhotonOS");
    if (release !~ "^VMware Photon (?:Linux|OS) 2\.0(\D|$)") audit(AUDIT_OS_NOT, "PhotonOS 2.0");
    
    if (!get_kb_item("Host/PhotonOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "PhotonOS", cpu);
    
    flag = 0;
    
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-debuginfo-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-devel-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-devel-static-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-libelf-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-libelf-devel-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-libelf-devel-static-0.176-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"elfutils-libelf-lang-0.176-1.ph2")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyNewStart CGSL Local Security Checks
    NASL idNEWSTART_CGSL_NS-SA-2019-0209_ELFUTILS.NASL
    descriptionThe remote NewStart CGSL host, running version CORE 5.04 / MAIN 5.04, has elfutils packages installed that are affected by multiple vulnerabilities: - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file. (CVE-2018-16062) - libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice. (CVE-2018-16402) - libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap- based buffer over-read and an application crash. (CVE-2018-16403) - A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm. (CVE-2019-7149) - An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack. (CVE-2019-7150) - An Invalid Memory Address Dereference exists in the function elf_end in libelf in elfutils through v0.174. Although eu-size is intended to support ar files inside ar files, handle_ar in size.c closes the outer ar file before handling all inner entries. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file. (CVE-2018-18520) - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled. (CVE-2018-18521) - An invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl in elfutils through v0.174. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by consider_notes. (CVE-2018-18310) - In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes. (CVE-2019-7665) - In elfutils 0.175, a negative-sized memcpy is attempted in elf_cvt_note in libelf/note_xlate.h because of an incorrect overflow check. Crafted elf input causes a segmentation fault, leading to denial of service (program crash). (CVE-2019-7664) - In elfutils 0.175, there is a buffer over-read in the ebl_object_note function in eblobjnote.c in libebl. Remote attackers could leverage this vulnerability to cause a denial-of-service via a crafted elf file, as demonstrated by eu-readelf. (CVE-2019-7146) - **DISPUTED** An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a warning caused by ASAN because the allocation is big. By setting ASAN_OPTIONS=allocator_may_return_null=1 and running the reproducer, nothing happens. (CVE-2019-7148) Note that Nessus has not tested for this issue but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id129896
    published2019-10-15
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/129896
    titleNewStart CGSL CORE 5.04 / MAIN 5.04 : elfutils Multiple Vulnerabilities (NS-SA-2019-0209)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # The descriptive text and package checks in this plugin were
    # extracted from ZTE advisory NS-SA-2019-0209. The text
    # itself is copyright (C) ZTE, Inc.
    
    include("compat.inc");
    
    if (description)
    {
      script_id(129896);
      script_version("1.2");
      script_cvs_date("Date: 2019/10/17 14:31:05");
    
      script_cve_id(
        "CVE-2018-16062",
        "CVE-2018-16402",
        "CVE-2018-16403",
        "CVE-2018-18310",
        "CVE-2018-18520",
        "CVE-2018-18521",
        "CVE-2019-7146",
        "CVE-2019-7148",
        "CVE-2019-7149",
        "CVE-2019-7150",
        "CVE-2019-7664",
        "CVE-2019-7665"
      );
    
      script_name(english:"NewStart CGSL CORE 5.04 / MAIN 5.04 : elfutils Multiple Vulnerabilities (NS-SA-2019-0209)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote machine is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The remote NewStart CGSL host, running version CORE 5.04 / MAIN 5.04, has elfutils packages installed that are affected
    by multiple vulnerabilities:
    
      - dwarf_getaranges in dwarf_getaranges.c in libdw in
        elfutils before 2018-08-18 allows remote attackers to
        cause a denial of service (heap-based buffer over-read)
        via a crafted file. (CVE-2018-16062)
    
      - libelf/elf_end.c in elfutils 0.173 allows remote
        attackers to cause a denial of service (double free and
        application crash) or possibly have unspecified other
        impact because it tries to decompress twice.
        (CVE-2018-16402)
    
      - libdw in elfutils 0.173 checks the end of the attributes
        list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c
        and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-
        based buffer over-read and an application crash.
        (CVE-2018-16403)
    
      - A heap-based buffer over-read was discovered in the
        function read_srclines in dwarf_getsrclines.c in libdw
        in elfutils 0.175. A crafted input can cause
        segmentation faults, leading to denial-of-service, as
        demonstrated by eu-nm. (CVE-2019-7149)
    
      - An issue was discovered in elfutils 0.175. A
        segmentation fault can occur in the function
        elf64_xlatetom in libelf/elf32_xlatetom.c, due to
        dwfl_segment_report_module not checking whether the dyn
        data read from a core file is truncated. A crafted input
        can cause a program crash, leading to denial-of-service,
        as demonstrated by eu-stack. (CVE-2019-7150)
    
      - An Invalid Memory Address Dereference exists in the
        function elf_end in libelf in elfutils through v0.174.
        Although eu-size is intended to support ar files inside
        ar files, handle_ar in size.c closes the outer ar file
        before handling all inner entries. The vulnerability
        allows attackers to cause a denial of service
        (application crash) with a crafted ELF file.
        (CVE-2018-18520)
    
      - Divide-by-zero vulnerabilities in the function
        arlib_add_symbols() in arlib.c in elfutils 0.174 allow
        remote attackers to cause a denial of service
        (application crash) with a crafted ELF file, as
        demonstrated by eu-ranlib, because a zero sh_entsize is
        mishandled. (CVE-2018-18521)
    
      - An invalid memory address dereference was discovered in
        dwfl_segment_report_module.c in libdwfl in elfutils
        through v0.174. The vulnerability allows attackers to
        cause a denial of service (application crash) with a
        crafted ELF file, as demonstrated by consider_notes.
        (CVE-2018-18310)
    
      - In elfutils 0.175, a heap-based buffer over-read was
        discovered in the function elf32_xlatetom in
        elf32_xlatetom.c in libelf. A crafted ELF input can
        cause a segmentation fault leading to denial of service
        (program crash) because ebl_core_note does not reject
        malformed core file notes. (CVE-2019-7665)
    
      - In elfutils 0.175, a negative-sized memcpy is attempted
        in elf_cvt_note in libelf/note_xlate.h because of an
        incorrect overflow check. Crafted elf input causes a
        segmentation fault, leading to denial of service
        (program crash). (CVE-2019-7664)
    
      - In elfutils 0.175, there is a buffer over-read in the
        ebl_object_note function in eblobjnote.c in libebl.
        Remote attackers could leverage this vulnerability to
        cause a denial-of-service via a crafted elf file, as
        demonstrated by eu-readelf. (CVE-2019-7146)
    
      - **DISPUTED** An attempted excessive memory allocation
        was discovered in the function read_long_names in
        elf_begin.c in libelf in elfutils 0.174. Remote
        attackers could leverage this vulnerability to cause a
        denial-of-service via crafted elf input, which leads to
        an out-of-memory exception. NOTE: The maintainers
        believe this is not a real issue, but instead a warning
        caused by ASAN because the allocation is big. By setting
        ASAN_OPTIONS=allocator_may_return_null=1 and running the
        reproducer, nothing happens. (CVE-2019-7148)
    
    Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
    number.");
      script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/notice/NS-SA-2019-0209");
      script_set_attribute(attribute:"solution", value:
    "Upgrade the vulnerable CGSL elfutils packages. Note that updated packages may not be available yet. Please contact ZTE
    for more information.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-16402");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/29");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/10/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/10/15");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"NewStart CGSL Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/ZTE-CGSL/release", "Host/ZTE-CGSL/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/ZTE-CGSL/release");
    if (isnull(release) || release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, "NewStart Carrier Grade Server Linux");
    
    if (release !~ "CGSL CORE 5.04" &&
        release !~ "CGSL MAIN 5.04")
      audit(AUDIT_OS_NOT, 'NewStart CGSL CORE 5.04 / NewStart CGSL MAIN 5.04');
    
    if (!get_kb_item("Host/ZTE-CGSL/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "NewStart Carrier Grade Server Linux", cpu);
    
    flag = 0;
    
    pkgs = {
      "CGSL CORE 5.04": [
        "elfutils-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-debuginfo-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-default-yama-scope-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-devel-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-devel-static-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-libelf-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-libelf-devel-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-libelf-devel-static-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-libelf-lang-0.176-2.el7.cgslv5.0.1.g732c7dd.lite",
        "elfutils-libs-0.176-2.el7.cgslv5.0.1.g732c7dd.lite"
      ],
      "CGSL MAIN 5.04": [
        "elfutils-0.176-2.el7.cgslv5",
        "elfutils-debuginfo-0.176-2.el7.cgslv5",
        "elfutils-default-yama-scope-0.176-2.el7.cgslv5",
        "elfutils-devel-0.176-2.el7.cgslv5",
        "elfutils-devel-static-0.176-2.el7.cgslv5",
        "elfutils-libelf-0.176-2.el7.cgslv5",
        "elfutils-libelf-devel-0.176-2.el7.cgslv5",
        "elfutils-libelf-devel-static-0.176-2.el7.cgslv5",
        "elfutils-libs-0.176-2.el7.cgslv5"
      ]
    };
    pkg_list = pkgs[release];
    
    foreach (pkg in pkg_list)
      if (rpm_check(release:"ZTE " + release, reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-2510.NASL
    descriptionAccording to the versions of the elfutils packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.(CVE-2018-18521) - **DISPUTED** An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a
    last seen2020-05-08
    modified2019-12-04
    plugin id131663
    published2019-12-04
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/131663
    titleEulerOS 2.0 SP2 : elfutils (EulerOS-SA-2019-2510)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(131663);
      script_version("1.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/07");
    
      script_cve_id(
        "CVE-2016-10255",
        "CVE-2017-7607",
        "CVE-2017-7608",
        "CVE-2017-7610",
        "CVE-2017-7611",
        "CVE-2017-7612",
        "CVE-2017-7613",
        "CVE-2018-16062",
        "CVE-2018-18521",
        "CVE-2019-7148",
        "CVE-2019-7149",
        "CVE-2019-7150",
        "CVE-2019-7665"
      );
    
      script_name(english:"EulerOS 2.0 SP2 : elfutils (EulerOS-SA-2019-2510)");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS host is missing multiple security updates.");
      script_set_attribute(attribute:"description", value:
    "According to the versions of the elfutils packages installed, the
    EulerOS installation on the remote host is affected by the following
    vulnerabilities :
    
      - Divide-by-zero vulnerabilities in the function
        arlib_add_symbols() in arlib.c in elfutils 0.174 allow
        remote attackers to cause a denial of service
        (application crash) with a crafted ELF file, as
        demonstrated by eu-ranlib, because a zero sh_entsize is
        mishandled.(CVE-2018-18521)
    
      - **DISPUTED** An attempted excessive memory allocation
        was discovered in the function read_long_names in
        elf_begin.c in libelf in elfutils 0.174. Remote
        attackers could leverage this vulnerability to cause a
        denial-of-service via crafted elf input, which leads to
        an out-of-memory exception. NOTE: The maintainers
        believe this is not a real issue, but instead a
        'warning caused by ASAN because the allocation is big.
        By setting ASAN_OPTIONS=allocator_may_return_null=1 and
        running the reproducer, nothing
        happens.'(CVE-2019-7148)
    
      - A heap-based buffer over-read was discovered in the
        function read_srclines in dwarf_getsrclines.c in libdw
        in elfutils 0.175. A crafted input can cause
        segmentation faults, leading to denial-of-service, as
        demonstrated by eu-nm.(CVE-2019-7149)
    
      - An issue was discovered in elfutils 0.175. A
        segmentation fault can occur in the function
        elf64_xlatetom in libelf/elf32_xlatetom.c, due to
        dwfl_segment_report_module not checking whether the dyn
        data read from a core file is truncated. A crafted
        input can cause a program crash, leading to
        denial-of-service, as demonstrated by
        eu-stack.(CVE-2019-7150)
    
      - In elfutils 0.175, a heap-based buffer over-read was
        discovered in the function elf32_xlatetom in
        elf32_xlatetom.c in libelf. A crafted ELF input can
        cause a segmentation fault leading to denial of service
        (program crash) because ebl_core_note does not reject
        malformed core file notes.(CVE-2019-7665)
    
      - The __libelf_set_rawdata_wrlock function in
        elf_getdata.c in elfutils before 0.168 allows remote
        attackers to cause a denial of service (crash) via a
        crafted (1) sh_off or (2) sh_size ELF header value,
        which triggers a memory allocation
        failure.(CVE-2016-10255)
    
      - The handle_gnu_hash function in readelf.c in elfutils
        0.168 allows remote attackers to cause a denial of
        service (heap-based buffer over-read and application
        crash) via a crafted ELF file.(CVE-2017-7607)
    
      - The ebl_object_note_type_name function in
        eblobjnotetypename.c in elfutils 0.168 allows remote
        attackers to cause a denial of service (heap-based
        buffer over-read and application crash) via a crafted
        ELF file.(CVE-2017-7608)
    
      - The check_group function in elflint.c in elfutils 0.168
        allows remote attackers to cause a denial of service
        (heap-based buffer over-read and application crash) via
        a crafted ELF file.(CVE-2017-7610)
    
      - The check_symtab_shndx function in elflint.c in
        elfutils 0.168 allows remote attackers to cause a
        denial of service (heap-based buffer over-read and
        application crash) via a crafted ELF
        file.(CVE-2017-7611)
    
      - The check_sysv_hash function in elflint.c in elfutils
        0.168 allows remote attackers to cause a denial of
        service (heap-based buffer over-read and application
        crash) via a crafted ELF file.(CVE-2017-7612)
    
      - elflint.c in elfutils 0.168 does not validate the
        number of sections and the number of segments, which
        allows remote attackers to cause a denial of service
        (memory consumption) via a crafted ELF
        file.(CVE-2017-7613)
    
      - dwarf_getaranges in dwarf_getaranges.c in libdw in
        elfutils before 2018-08-18 allows remote attackers to
        cause a denial of service (heap-based buffer over-read)
        via a crafted file.(CVE-2018-16062)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2019-2510
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b5c03acc");
      script_set_attribute(attribute:"solution", value:
    "Update the affected elfutils packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2019/12/04");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/12/04");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-libelf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-libelf-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:elfutils-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:2.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/sp");
      script_exclude_keys("Host/EulerOS/uvp_version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    if (release !~ "^EulerOS release 2\.0(\D|$)") audit(AUDIT_OS_NOT, "EulerOS 2.0");
    
    sp = get_kb_item("Host/EulerOS/sp");
    if (isnull(sp) || sp !~ "^(2)$") audit(AUDIT_OS_NOT, "EulerOS 2.0 SP2");
    
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (!empty_or_null(uvp)) audit(AUDIT_OS_NOT, "EulerOS 2.0 SP2", "EulerOS UVP " + uvp);
    
    if (!get_kb_item("Host/EulerOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / x86_64", cpu);
    
    flag = 0;
    
    pkgs = ["elfutils-0.163-3.h5",
            "elfutils-devel-0.163-3.h5",
            "elfutils-libelf-0.163-3.h5",
            "elfutils-libelf-devel-0.163-3.h5",
            "elfutils-libs-0.163-3.h5"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", sp:"2", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyNewStart CGSL Local Security Checks
    NASL idNEWSTART_CGSL_NS-SA-2019-0258_ELFUTILS.NASL
    descriptionThe remote NewStart CGSL host, running version CORE 5.05 / MAIN 5.05, has elfutils packages installed that are affected by multiple vulnerabilities: - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file. (CVE-2018-16062) - libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice. (CVE-2018-16402) - libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap- based buffer over-read and an application crash. (CVE-2018-16403) - A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm. (CVE-2019-7149) - An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack. (CVE-2019-7150) - An Invalid Memory Address Dereference exists in the function elf_end in libelf in elfutils through v0.174. Although eu-size is intended to support ar files inside ar files, handle_ar in size.c closes the outer ar file before handling all inner entries. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file. (CVE-2018-18520) - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled. (CVE-2018-18521) - An invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl in elfutils through v0.174. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by consider_notes. (CVE-2018-18310) - In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes. (CVE-2019-7665) - In elfutils 0.175, a negative-sized memcpy is attempted in elf_cvt_note in libelf/note_xlate.h because of an incorrect overflow check. Crafted elf input causes a segmentation fault, leading to denial of service (program crash). (CVE-2019-7664) - In elfutils 0.175, there is a buffer over-read in the ebl_object_note function in eblobjnote.c in libebl. Remote attackers could leverage this vulnerability to cause a denial-of-service via a crafted elf file, as demonstrated by eu-readelf. (CVE-2019-7146) - **DISPUTED** An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a warning caused by ASAN because the allocation is big. By setting ASAN_OPTIONS=allocator_may_return_null=1 and running the reproducer, nothing happens. (CVE-2019-7148) Note that Nessus has not tested for this issue but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id132468
    published2019-12-31
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/132468
    titleNewStart CGSL CORE 5.05 / MAIN 5.05 : elfutils Multiple Vulnerabilities (NS-SA-2019-0258)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # The descriptive text and package checks in this plugin were
    # extracted from ZTE advisory NS-SA-2019-0258. The text
    # itself is copyright (C) ZTE, Inc.
    
    include('compat.inc');
    
    if (description)
    {
      script_id(132468);
      script_version("1.2");
      script_cvs_date("Date: 2020/01/02");
    
      script_cve_id(
        "CVE-2018-16062",
        "CVE-2018-16402",
        "CVE-2018-16403",
        "CVE-2018-18310",
        "CVE-2018-18520",
        "CVE-2018-18521",
        "CVE-2019-7146",
        "CVE-2019-7148",
        "CVE-2019-7149",
        "CVE-2019-7150",
        "CVE-2019-7664",
        "CVE-2019-7665"
      );
      script_bugtraq_id(
        107134,
        108523,
        108806,
        108862
      );
    
      script_name(english:"NewStart CGSL CORE 5.05 / MAIN 5.05 : elfutils Multiple Vulnerabilities (NS-SA-2019-0258)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote machine is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The remote NewStart CGSL host, running version CORE 5.05 / MAIN 5.05, has elfutils packages installed that are affected
    by multiple vulnerabilities:
    
      - dwarf_getaranges in dwarf_getaranges.c in libdw in
        elfutils before 2018-08-18 allows remote attackers to
        cause a denial of service (heap-based buffer over-read)
        via a crafted file. (CVE-2018-16062)
    
      - libelf/elf_end.c in elfutils 0.173 allows remote
        attackers to cause a denial of service (double free and
        application crash) or possibly have unspecified other
        impact because it tries to decompress twice.
        (CVE-2018-16402)
    
      - libdw in elfutils 0.173 checks the end of the attributes
        list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c
        and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-
        based buffer over-read and an application crash.
        (CVE-2018-16403)
    
      - A heap-based buffer over-read was discovered in the
        function read_srclines in dwarf_getsrclines.c in libdw
        in elfutils 0.175. A crafted input can cause
        segmentation faults, leading to denial-of-service, as
        demonstrated by eu-nm. (CVE-2019-7149)
    
      - An issue was discovered in elfutils 0.175. A
        segmentation fault can occur in the function
        elf64_xlatetom in libelf/elf32_xlatetom.c, due to
        dwfl_segment_report_module not checking whether the dyn
        data read from a core file is truncated. A crafted input
        can cause a program crash, leading to denial-of-service,
        as demonstrated by eu-stack. (CVE-2019-7150)
    
      - An Invalid Memory Address Dereference exists in the
        function elf_end in libelf in elfutils through v0.174.
        Although eu-size is intended to support ar files inside
        ar files, handle_ar in size.c closes the outer ar file
        before handling all inner entries. The vulnerability
        allows attackers to cause a denial of service
        (application crash) with a crafted ELF file.
        (CVE-2018-18520)
    
      - Divide-by-zero vulnerabilities in the function
        arlib_add_symbols() in arlib.c in elfutils 0.174 allow
        remote attackers to cause a denial of service
        (application crash) with a crafted ELF file, as
        demonstrated by eu-ranlib, because a zero sh_entsize is
        mishandled. (CVE-2018-18521)
    
      - An invalid memory address dereference was discovered in
        dwfl_segment_report_module.c in libdwfl in elfutils
        through v0.174. The vulnerability allows attackers to
        cause a denial of service (application crash) with a
        crafted ELF file, as demonstrated by consider_notes.
        (CVE-2018-18310)
    
      - In elfutils 0.175, a heap-based buffer over-read was
        discovered in the function elf32_xlatetom in
        elf32_xlatetom.c in libelf. A crafted ELF input can
        cause a segmentation fault leading to denial of service
        (program crash) because ebl_core_note does not reject
        malformed core file notes. (CVE-2019-7665)
    
      - In elfutils 0.175, a negative-sized memcpy is attempted
        in elf_cvt_note in libelf/note_xlate.h because of an
        incorrect overflow check. Crafted elf input causes a
        segmentation fault, leading to denial of service
        (program crash). (CVE-2019-7664)
    
      - In elfutils 0.175, there is a buffer over-read in the
        ebl_object_note function in eblobjnote.c in libebl.
        Remote attackers could leverage this vulnerability to
        cause a denial-of-service via a crafted elf file, as
        demonstrated by eu-readelf. (CVE-2019-7146)
    
      - **DISPUTED** An attempted excessive memory allocation
        was discovered in the function read_long_names in
        elf_begin.c in libelf in elfutils 0.174. Remote
        attackers could leverage this vulnerability to cause a
        denial-of-service via crafted elf input, which leads to
        an out-of-memory exception. NOTE: The maintainers
        believe this is not a real issue, but instead a warning
        caused by ASAN because the allocation is big. By setting
        ASAN_OPTIONS=allocator_may_return_null=1 and running the
        reproducer, nothing happens. (CVE-2019-7148)
    
    Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
    number.");
      script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/notice/NS-SA-2019-0258");
      script_set_attribute(attribute:"solution", value:
    "Upgrade the vulnerable CGSL elfutils packages. Note that updated packages may not be available yet. Please contact ZTE
    for more information.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-16402");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/29");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/12/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/12/31");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"NewStart CGSL Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/ZTE-CGSL/release", "Host/ZTE-CGSL/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/ZTE-CGSL/release");
    if (isnull(release) || release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, "NewStart Carrier Grade Server Linux");
    
    if (release !~ "CGSL CORE 5.05" &&
        release !~ "CGSL MAIN 5.05")
      audit(AUDIT_OS_NOT, 'NewStart CGSL CORE 5.05 / NewStart CGSL MAIN 5.05');
    
    if (!get_kb_item("Host/ZTE-CGSL/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "NewStart Carrier Grade Server Linux", cpu);
    
    flag = 0;
    
    pkgs = {
      "CGSL CORE 5.05": [
        "elfutils-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-debuginfo-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-default-yama-scope-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-devel-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-devel-static-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-libelf-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-libelf-devel-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-libelf-devel-static-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-libelf-lang-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite",
        "elfutils-libs-0.176-2.el7.cgslv5_5.0.1.gf2430b1.lite"
      ],
      "CGSL MAIN 5.05": [
        "elfutils-0.176-2.el7.cgslv5_5",
        "elfutils-debuginfo-0.176-2.el7.cgslv5_5",
        "elfutils-default-yama-scope-0.176-2.el7.cgslv5_5",
        "elfutils-devel-0.176-2.el7.cgslv5_5",
        "elfutils-devel-static-0.176-2.el7.cgslv5_5",
        "elfutils-libelf-0.176-2.el7.cgslv5_5",
        "elfutils-libelf-devel-0.176-2.el7.cgslv5_5",
        "elfutils-libelf-devel-static-0.176-2.el7.cgslv5_5",
        "elfutils-libs-0.176-2.el7.cgslv5_5"
      ]
    };
    pkg_list = pkgs[release];
    
    foreach (pkg in pkg_list)
      if (rpm_check(release:"ZTE " + release, reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "elfutils");
    }
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-4012-1.NASL
    descriptionIt was discovered that elfutils incorrectly handled certain malformed files. If a user or automated system were tricked into processing a specially crafted file, elfutils could be made to crash or consume resources, resulting in a denial of service. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id125811
    published2019-06-11
    reporterUbuntu Security Notice (C) 2019-2020 Canonical, Inc. / NASL script (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/125811
    titleUbuntu 16.04 LTS / 18.04 LTS / 18.10 : elfutils vulnerabilities (USN-4012-1)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2019-1590.NASL
    descriptionThis update for elfutils fixes the following issues : Security issues fixed : - CVE-2017-7607: Fixed a heap-based buffer overflow in handle_gnu_hash (bsc#1033084) - CVE-2017-7608: Fixed a heap-based buffer overflow in ebl_object_note_type_name() (bsc#1033085) - CVE-2017-7609: Fixed a memory allocation failure in __libelf_decompress (bsc#1033086) - CVE-2017-7610: Fixed a heap-based buffer overflow in check_group (bsc#1033087) - CVE-2017-7611: Fixed a denial of service via a crafted ELF file (bsc#1033088) - CVE-2017-7612: Fixed a denial of service in check_sysv_hash() via a crafted ELF file (bsc#1033089) - CVE-2017-7613: Fixed denial of service caused by the missing validation of the number of sections and the number of segments in a crafted ELF file (bsc#1033090) - CVE-2018-16062: Fixed a heap-buffer overflow in /elfutils/libdw/dwarf_getaranges.c:156 (bsc#1106390) - CVE-2018-16402: Fixed a denial of service/double free on an attempt to decompress the same section twice (bsc#1107066) - CVE-2018-16403: Fixed a heap buffer overflow in readelf (bsc#1107067) - CVE-2018-18310: Fixed an invalid address read problem in dwfl_segment_report_module.c (bsc#1111973) - CVE-2018-18520: Fixed bad handling of ar files inside are files (bsc#1112726) - CVE-2018-18521: Fixed a denial of service vulnerabilities in the function arlib_add_symbols() used by eu-ranlib (bsc#1112723) - CVE-2019-7150: dwfl_segment_report_module doesn
    last seen2020-06-01
    modified2020-06-02
    plugin id126061
    published2019-06-20
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/126061
    titleopenSUSE Security Update : elfutils (openSUSE-2019-1590)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2019-1486-1.NASL
    descriptionThis update for elfutils fixes the following issues : Security issues fixed : CVE-2017-7607: Fixed a heap-based buffer overflow in handle_gnu_hash (bsc#1033084) CVE-2017-7608: Fixed a heap-based buffer overflow in ebl_object_note_type_name() (bsc#1033085) CVE-2017-7609: Fixed a memory allocation failure in __libelf_decompress (bsc#1033086) CVE-2017-7610: Fixed a heap-based buffer overflow in check_group (bsc#1033087) CVE-2017-7611: Fixed a denial of service via a crafted ELF file (bsc#1033088) CVE-2017-7612: Fixed a denial of service in check_sysv_hash() via a crafted ELF file (bsc#1033089) CVE-2017-7613: Fixed denial of service caused by the missing validation of the number of sections and the number of segments in a crafted ELF file (bsc#1033090) CVE-2018-16062: Fixed a heap-buffer overflow in /elfutils/libdw/dwarf_getaranges.c:156 (bsc#1106390) CVE-2018-16402: Fixed a denial of service/double free on an attempt to decompress the same section twice (bsc#1107066) CVE-2018-16403: Fixed a heap buffer overflow in readelf (bsc#1107067) CVE-2018-18310: Fixed an invalid address read problem in dwfl_segment_report_module.c (bsc#1111973) CVE-2018-18520: Fixed bad handling of ar files inside are files (bsc#1112726) CVE-2018-18521: Fixed a denial of service vulnerabilities in the function arlib_add_symbols() used by eu-ranlib (bsc#1112723) CVE-2019-7150: dwfl_segment_report_module doesn
    last seen2020-06-01
    modified2020-06-02
    plugin id125921
    published2019-06-14
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/125921
    titleSUSE SLED15 / SLES15 Security Update : elfutils (SUSE-SU-2019:1486-1)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2019-44A9D99647.NASL
    descriptionNew upstream release 0.176. Fixes CVE-2019-7146, CVE-2019-7148, CVE-2019-7149, CVE-2019-7150, CVE-2019-7664 and CVE-2019-7665. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id122279
    published2019-02-19
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/122279
    titleFedora 29 : elfutils (2019-44a9d99647)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-2573.NASL
    descriptionAccording to the versions of the elfutils packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - The __libelf_set_rawdata_wrlock function in elf_getdata.c in elfutils before 0.168 allows remote attackers to cause a denial of service (crash) via a crafted (1) sh_off or (2) sh_size ELF header value, which triggers a memory allocation failure.(CVE-2016-10255) - The check_group function in elflint.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.(CVE-2017-7610) - The check_symtab_shndx function in elflint.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.(CVE-2017-7611) - The check_sysv_hash function in elflint.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.(CVE-2017-7612) - The ebl_object_note_type_name function in eblobjnotetypename.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.(CVE-2017-7608) - The handle_gnu_hash function in readelf.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.(CVE-2017-7607) - elflint.c in elfutils 0.168 does not validate the number of sections and the number of segments, which allows remote attackers to cause a denial of service (memory consumption) via a crafted ELF file.(CVE-2017-7613) - **DISPUTED** An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a
    last seen2020-05-08
    modified2019-12-19
    plugin id132290
    published2019-12-19
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/132290
    titleEulerOS 2.0 SP3 : elfutils (EulerOS-SA-2019-2573)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1689.NASL
    descriptionSeveral issues in elfutils, a collection of utilities to handle ELF objects, have been found either by fuzzing or by using an AddressSanitizer. CVE-2019-7665 Due to a heap-buffer-overflow problem in function elf32_xlatetom() a crafted ELF input can cause segmentation faults. CVE-2019-7150 Add sanity check for partial core file dynamic data read. CVE-2019-7149 Due to a heap-buffer-overflow problem in function read_srclines() a crafted ELF input can cause segmentation faults. CVE-2018-18521 By using a crafted ELF file, containing a zero sh_entsize, a divide-by-zero vulnerability could allow remote attackers to cause a denial of service (application crash). CVE-2018-18520 By fuzzing an Invalid Address Deference problem in function elf_end has been found. CVE-2018-18310 By fuzzing an Invalid Address Read problem in eu-stack has been found. CVE-2018-16062 By using an AddressSanitizer a heap-buffer-overflow has been found. CVE-2017-7613 By using fuzzing it was found that an allocation failure was not handled properly. CVE-2017-7612 By using a crafted ELF file, containing an invalid sh_entsize, a remote attackers could cause a denial of service (application crash). CVE-2017-7611 By using a crafted ELF file a remote attackers could cause a denial of service (application crash). CVE-2017-7610 By using a crafted ELF file a remote attackers could cause a denial of service (application crash). CVE-2017-7608 By fuzzing a heap based buffer overflow has been detected. For Debian 8
    last seen2020-06-01
    modified2020-06-02
    plugin id122431
    published2019-02-26
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/122431
    titleDebian DLA-1689-1 : elfutils security update
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2020-1448.NASL
    descriptionAccording to the versions of the elfutils packages installed, the EulerOS Virtualization installation on the remote host is affected by the following vulnerabilities : - In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes.(CVE-2019-7665) - An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack.(CVE-2019-7150) - A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm.(CVE-2019-7149) - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.(CVE-2018-18521) - libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-based buffer over-read and an application crash.(CVE-2018-16403) - libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice.(CVE-2018-16402) - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file.(CVE-2018-16062) - An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174. Remote attackers could leverage this vulnerability to cause a denial-of-service via crafted elf input, which leads to an out-of-memory exception. NOTE: The maintainers believe this is not a real issue, but instead a
    last seen2020-04-30
    modified2020-04-16
    plugin id135610
    published2020-04-16
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/135610
    titleEulerOS Virtualization 3.0.2.2 : elfutils (EulerOS-SA-2020-1448)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-2141.NASL
    descriptionAccording to the versions of the elfutils packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file.(CVE-2018-16062) - dwarf_getaranges in dwarf_getaranges.c in libdw in elfutils before 2018-08-18 allows remote attackers to cause a denial of service (heap-based buffer over-read) via a crafted file.(CVE-2018-16402) - libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-based buffer over-read and an application crash.(CVE-2018-16403) - Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.(CVE-2018-18521) - A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm.(CVE-2019-7149) - An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack.(CVE-2019-7150) - In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes.(CVE-2019-7665) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-05-08
    modified2019-11-12
    plugin id130850
    published2019-11-12
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/130850
    titleEulerOS 2.0 SP5 : elfutils (EulerOS-SA-2019-2141)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2019-1733-1.NASL
    descriptionThis update for elfutils fixes the following issues : Security issues fixed : CVE-2018-16403: Fixed a heap-based buffer over-read that could have led to Denial of Service (bsc#1107067). CVE-2016-10254: Fixed a memory allocation failure in alloxate_elf (bsc#1030472). CVE-2019-7665: NT_PLATFORM core file note should be a zero terminated string (bsc#1125007). CVE-2016-10255: Fixed a memory allocation failure in libelf_set_rawdata_wrlock (bsc#1030476). CVE-2019-7150: Added a missing check in dwfl_segment_report_module which could have allowed truncated files to be read (bsc#1123685). CVE-2018-16062: Fixed a heap-buffer-overflow (bsc#1106390). CVE-2017-7611: Fixed a heap-based buffer over-read that could have led to Denial of Service (bsc#1033088). CVE-2017-7613: Fixed denial of service caused by the missing validation of the number of sections and the number of segments in a crafted ELF file (bsc#1033090). CVE-2017-7607: Fixed a heap-based buffer overflow in handle_gnu_hash (bsc#1033084). CVE-2017-7608: Fixed a heap-based buffer overflow in ebl_object_note_type_name() (bsc#1033085). CVE-2017-7610: Fixed a heap-based buffer overflow in check_group (bsc#1033087). CVE-2018-18521: Fixed multiple divide-by-zero vulnerabilities in function arlib_add_symbols() (bsc#1112723). CVE-2017-7612: Fixed a denial of service in check_sysv_hash() via a crafted ELF file (bsc#1033089). CVE-2018-18310: Fixed an invalid address read in dwfl_segment_report_module.c (bsc#1111973). CVE-2018-18520: Fixed bad handling of ar files inside are files (bsc#1112726). Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id126498
    published2019-07-05
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/126498
    titleSUSE SLED12 / SLES12 Security Update : elfutils (SUSE-SU-2019:1733-1)
  • NASL familyAmazon Linux Local Security Checks
    NASL idAL2_ALAS-2019-1337.NASL
    descriptionAn out-of-bounds read was discovered in elfutils in the way it reads DWARF address ranges information. Function dwarf_getaranges() in dwarf_getaranges.c does not properly check whether it reads beyond the limits of the ELF section. An attacker could use this flaw to cause a denial of service via a crafted file.(CVE-2018-16062) libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have unspecified other impact because it tries to decompress twice.(CVE-2018-16402) libdw in elfutils 0.173 checks the end of the attributes list incorrectly in dwarf_getabbrev in dwarf_getabbrev.c and dwarf_hasattr in dwarf_hasattr.c, leading to a heap-based buffer over-read and an application crash.(CVE-2018-16403) An invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl in elfutils through v0.174. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by consider_notes.(CVE-2018-18310) An Invalid Memory Address Dereference exists in the function elf_end in libelf in elfutils through v0.174. Although eu-size is intended to support ar files inside ar files, handle_ar in size.c closes the outer ar file before handling all inner entries. The vulnerability allows attackers to cause a denial of service (application crash) with a crafted ELF file.(CVE-2018-18520) Divide-by-zero vulnerabilities in the function arlib_add_symbols() in arlib.c in elfutils 0.174 allow remote attackers to cause a denial of service (application crash) with a crafted ELF file, as demonstrated by eu-ranlib, because a zero sh_entsize is mishandled.(CVE-2018-18521) A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by eu-nm.(CVE-2019-7149) An issue was discovered in elfutils 0.175. A segmentation fault can occur in the function elf64_xlatetom in libelf/elf32_xlatetom.c, due to dwfl_segment_report_module not checking whether the dyn data read from a core file is truncated. A crafted input can cause a program crash, leading to denial-of-service, as demonstrated by eu-stack.(CVE-2019-7150) In elfutils 0.175, a negative-sized memcpy is attempted in elf_cvt_note in libelf/note_xlate.h because of an incorrect overflow check. Crafted elf input causes a segmentation fault, leading to denial of service (program crash).(CVE-2019-7664) In elfutils 0.175, a heap-based buffer over-read was discovered in the function elf32_xlatetom in elf32_xlatetom.c in libelf. A crafted ELF input can cause a segmentation fault leading to denial of service (program crash) because ebl_core_note does not reject malformed core file notes.(CVE-2019-7665)
    last seen2020-06-01
    modified2020-06-02
    plugin id130233
    published2019-10-25
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/130233
    titleAmazon Linux 2 : elfutils (ALAS-2019-1337)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2019-3575.NASL
    descriptionAn update for elfutils is now available for Red Hat Enterprise Linux 8. Red Hat Product Security has rated this update as having a security impact of Low. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link (s) in the References section. The elfutils packages contain a number of utility programs and libraries related to the creation and maintenance of executable code. The following packages have been upgraded to a later upstream version: elfutils (0.176). (BZ#1683705) Security Fix(es) : * elfutils: buffer over-read in the ebl_object_note function in eblobjnote.c in libebl (CVE-2019-7146) * elfutils: heap-based buffer over-read in read_srclines in dwarf_getsrclines.c in libdw (CVE-2019-7149) * elfutils: segmentation fault in elf64_xlatetom in libelf/elf32_xlatetom.c (CVE-2019-7150) * elfutils: out of bound write in elf_cvt_note in libelf/note_xlate.h (CVE-2019-7664) * elfutils: heap-based buffer over-read in function elf32_xlatetom in elf32_xlatetom.c (CVE-2019-7665) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section. Additional Changes : For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.1 Release Notes linked from the References section.
    last seen2020-06-01
    modified2020-06-02
    plugin id130553
    published2019-11-06
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/130553
    titleRHEL 8 : elfutils (RHSA-2019:3575)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20190806_ELFUTILS_ON_SL7_X.NASL
    descriptionThe following packages have been upgraded to a later upstream version: elfutils (0.176). Security Fix(es) : - elfutils: Heap-based buffer over-read in libdw/dwarf_getaranges.c:dwarf_getaranges() via crafted file (CVE-2018-16062) - elfutils: Double-free due to double decompression of sections in crafted ELF causes crash (CVE-2018-16402) - elfutils: Heap-based buffer over-read in libdw/dwarf_getabbrev.c and libwd/dwarf_hasattr.c causes crash (CVE-2018-16403) - elfutils: invalid memory address dereference was discovered in dwfl_segment_report_module.c in libdwfl (CVE-2018-18310) - elfutils: eu-size cannot handle recursive ar files (CVE-2018-18520) - elfutils: Divide-by-zero in arlib_add_symbols function in arlib.c (CVE-2018-18521) - elfutils: heap-based buffer over-read in read_srclines in dwarf_getsrclines.c in libdw (CVE-2019-7149) - elfutils: segmentation fault in elf64_xlatetom in libelf/elf32_xlatetom.c (CVE-2019-7150) - elfutils: Out of bound write in elf_cvt_note in libelf/note_xlate.h (CVE-2019-7664) - elfutils: heap-based buffer over-read in function elf32_xlatetom in elf32_xlatetom.c (CVE-2019-7665)
    last seen2020-03-18
    modified2019-08-27
    plugin id128214
    published2019-08-27
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/128214
    titleScientific Linux Security Update : elfutils on SL7.x x86_64 (20190806)

Redhat

advisories
  • rhsa
    idRHSA-2019:2197
  • rhsa
    idRHSA-2019:3575
rpms
  • elfutils-0:0.176-2.el7
  • elfutils-debuginfo-0:0.176-2.el7
  • elfutils-default-yama-scope-0:0.176-2.el7
  • elfutils-devel-0:0.176-2.el7
  • elfutils-devel-static-0:0.176-2.el7
  • elfutils-libelf-0:0.176-2.el7
  • elfutils-libelf-devel-0:0.176-2.el7
  • elfutils-libelf-devel-static-0:0.176-2.el7
  • elfutils-libs-0:0.176-2.el7
  • elfutils-0:0.176-5.el8
  • elfutils-debuginfo-0:0.176-5.el8
  • elfutils-debugsource-0:0.176-5.el8
  • elfutils-default-yama-scope-0:0.176-5.el8
  • elfutils-devel-0:0.176-5.el8
  • elfutils-devel-static-0:0.176-5.el8
  • elfutils-libelf-0:0.176-5.el8
  • elfutils-libelf-debuginfo-0:0.176-5.el8
  • elfutils-libelf-devel-0:0.176-5.el8
  • elfutils-libelf-devel-static-0:0.176-5.el8
  • elfutils-libs-0:0.176-5.el8
  • elfutils-libs-debuginfo-0:0.176-5.el8