Vulnerabilities > CVE-2007-0235 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Libgtop

047910
CVSS 3.7 - LOW
Attack vector
LOCAL
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
local
high complexity
libgtop
CWE-119
nessus
exploit available

Summary

Stack-based buffer overflow in the glibtop_get_proc_map_s function in libgtop before 2.14.6 (libgtop2) allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a process with a long filename that is mapped in its address space, which triggers the overflow in gnome-system-monitor.

Vulnerable Configurations

Part Description Count
Application
Libgtop
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionLibgtop2 Library Local Buffer Overflow Vulnerability. CVE-2007-0235. Dos exploit for linux platform
idEDB-ID:29458
last seen2016-02-03
modified2007-01-15
published2007-01-15
reporterLiu Qishuai
sourcehttps://www.exploit-db.com/download/29458/
titleLibgtop2 Library Local Buffer Overflow Vulnerability

Nessus

  • NASL familySuSE Local Security Checks
    NASL idSUSE_LIBGTOP-2511.NASL
    descriptionThis update fixes a buffer overflow in libgtop
    last seen2020-06-01
    modified2020-06-02
    plugin id29502
    published2007-12-13
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/29502
    titleSuSE 10 Security Update : libgtop (ZYPP Patch Number 2511)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1255.NASL
    descriptionLiu Qishuai discovered that the GNOME gtop library performs insufficient sanitising when parsing the system
    last seen2020-06-01
    modified2020-06-02
    plugin id24294
    published2007-02-09
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24294
    titleDebian DSA-1255-1 : libgtop2 - buffer overflow
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2007-0765.NASL
    descriptionAn updated libgtop2 package that fixes a security issue and a functionality bug is now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The libgtop2 package contains a library for obtaining information about a running system, such as cpu, memory and disk usage; active processes; and PIDs. A flaw was found in the way libgtop2 handled long filenames mapped into the address space of a process. An attacker could execute arbitrary code on behalf of the user running gnome-system-monitor by executing a process and mapping a file with a specially crafted name into the processes
    last seen2020-06-01
    modified2020-06-02
    plugin id25877
    published2007-08-13
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25877
    titleRHEL 4 : libgtop2 (RHSA-2007:0765)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20070807_LIBGTOP2_ON_SL4_X.NASL
    descriptionA flaw was found in the way libgtop2 handled long filenames mapped into the address space of a process. An attacker could execute arbitrary code on behalf of the user running gnome-system-monitor by executing a process and mapping a file with a specially crafted name into the processes
    last seen2020-06-01
    modified2020-06-02
    plugin id60240
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60240
    titleScientific Linux Security Update : libgtop2 on SL4.x i386/x86_64
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-407-1.NASL
    descriptionLiu Qishuai discovered a buffer overflow in the /proc parsing routines in libgtop. By creating and running a process in a specially crafted long path and tricking an user into running gnome-system-monitor, an attacker could exploit this to execute arbitrary code with the user
    last seen2020-06-01
    modified2020-06-02
    plugin id27995
    published2007-11-10
    reporterUbuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/27995
    titleUbuntu 5.10 / 6.06 LTS / 6.10 : libgtop2 vulnerability (USN-407-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_11406.NASL
    descriptionThis update fixes a buffer overflow in libgtop
    last seen2020-06-01
    modified2020-06-02
    plugin id41116
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41116
    titleSuSE9 Security Update : libgtop (YOU Patch Number 11406)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2007-023.NASL
    descriptionStack-based buffer overflow in the glibtop_get_proc_map_s function in libgtop before 2.14.6 (libgtop2) allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a process with a long filename that is mapped in its address space, which triggers the overflow in gnome-system-monitor. The updated packages have been patched to correct this problem.
    last seen2020-06-01
    modified2020-06-02
    plugin id24638
    published2007-02-18
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24638
    titleMandrake Linux Security Advisory : libgtop2 (MDKSA-2007:023)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_LIBGTOP-2512.NASL
    descriptionThis update fixes a buffer overflow in libgtop
    last seen2020-06-01
    modified2020-06-02
    plugin id27325
    published2007-10-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/27325
    titleopenSUSE 10 Security Update : libgtop (libgtop-2512)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2007-0765.NASL
    descriptionAn updated libgtop2 package that fixes a security issue and a functionality bug is now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The libgtop2 package contains a library for obtaining information about a running system, such as cpu, memory and disk usage; active processes; and PIDs. A flaw was found in the way libgtop2 handled long filenames mapped into the address space of a process. An attacker could execute arbitrary code on behalf of the user running gnome-system-monitor by executing a process and mapping a file with a specially crafted name into the processes
    last seen2020-06-01
    modified2020-06-02
    plugin id25849
    published2007-08-13
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25849
    titleCentOS 4 : libgtop2 (CESA-2007:0765)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2007-0765.NASL
    descriptionFrom Red Hat Security Advisory 2007:0765 : An updated libgtop2 package that fixes a security issue and a functionality bug is now available for Red Hat Enterprise Linux 4. This update has been rated as having moderate security impact by the Red Hat Security Response Team. The libgtop2 package contains a library for obtaining information about a running system, such as cpu, memory and disk usage; active processes; and PIDs. A flaw was found in the way libgtop2 handled long filenames mapped into the address space of a process. An attacker could execute arbitrary code on behalf of the user running gnome-system-monitor by executing a process and mapping a file with a specially crafted name into the processes
    last seen2020-06-01
    modified2020-06-02
    plugin id67555
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67555
    titleOracle Linux 4 : libgtop2 (ELSA-2007-0765)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200701-17.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200701-17 (libgtop: Privilege escalation) Liu Qishuai discovered that glibtop_get_proc_map_s() in sysdeps/linux/procmap.c does not properly allocate memory for storing a filename, allowing certain filenames to cause the buffer to overflow on the stack. Impact : By tricking a victim into executing an application that uses the libgtop library (e.g. libgtop_daemon or gnome-system-monitor), a local attacker could specify a specially crafted filename to be used by libgtop causing a buffer overflow and possibly execute arbitrary code with the rights of the user running the application. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id24253
    published2007-01-26
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24253
    titleGLSA-200701-17 : libgtop: Privilege escalation
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2007-657.NASL
    description - Thu Aug 2 2007 Soren Sandmann <sandmann at redhat.com> - 2.14.9-1 - BuildRequire gtk-doc, package documentation files in devel package - Thu Aug 2 2007 Soren Sandmann <sandmann at redhat.com> - 2.14.9-1 - Update to libgtop-2.14.9 for b.r.c 222637 CVE-2007-0235 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora 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 id25863
    published2007-08-13
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/25863
    titleFedora Core 6 : libgtop2-2.14.9-1.fc6 (2007-657)

Oval

accepted2013-04-29T04:08:04.438-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 4
    ovaloval:org.mitre.oval:def:11831
  • commentCentOS Linux 4.x
    ovaloval:org.mitre.oval:def:16636
  • commentOracle Linux 4.x
    ovaloval:org.mitre.oval:def:15990
descriptionStack-based buffer overflow in the glibtop_get_proc_map_s function in libgtop before 2.14.6 (libgtop2) allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a process with a long filename that is mapped in its address space, which triggers the overflow in gnome-system-monitor.
familyunix
idoval:org.mitre.oval:def:10720
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleStack-based buffer overflow in the glibtop_get_proc_map_s function in libgtop before 2.14.6 (libgtop2) allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a process with a long filename that is mapped in its address space, which triggers the overflow in gnome-system-monitor.
version25

Redhat

advisories
bugzilla
id249884
titleCVE-2007-0235 Stack overflow libgtop when pathname of mmap()-ed file is too long
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 4 is installed
      ovaloval:com.redhat.rhba:tst:20070304025
    • OR
      • AND
        • commentlibgtop2 is earlier than 0:2.8.0-1.0.2
          ovaloval:com.redhat.rhsa:tst:20070765001
        • commentlibgtop2 is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20070765002
      • AND
        • commentlibgtop2-devel is earlier than 0:2.8.0-1.0.2
          ovaloval:com.redhat.rhsa:tst:20070765003
        • commentlibgtop2-devel is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20070765004
rhsa
idRHSA-2007:0765
released2008-01-07
severityModerate
titleRHSA-2007:0765: libgtop2 security update (Moderate)
rpms
  • libgtop2-0:2.8.0-1.0.2
  • libgtop2-debuginfo-0:2.8.0-1.0.2
  • libgtop2-devel-0:2.8.0-1.0.2

Statements

contributorJoshua Bressers
lastmodified2007-07-27
organizationRed Hat
statementNot vulnerable. This issue did not affect the versions of libgtop as shipped with Red Hat Enterprise Linux 2.1 or 3. Red Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch. This flaw affects Red Hat Enterprise Linux 4 and is being tracked via the following bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=249884