FreeType Multiple Integer Overflow Vulnerability (Linux)

2009-04-24T00:00:00
ID OPENVAS:1361412562310900631
Type openvas
Reporter Copyright (C) 2009 SecPod
Modified 2018-12-06T00:00:00

Description

This host has FreeType installed and is prone to Multiple Integer Overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_freetype_mult_int_overflow_vuln_lin.nasl 12690 2018-12-06 14:56:20Z cfischer $
#
# FreeType Multiple Integer Overflow Vulnerability (Linux)
#
# Authors:
# Antu Sanadi <santu@secpod.com>
#
# Copyright:
# Copyright (c) 2009 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

CPE = 'cpe:/a:freetype:freetype';

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900631");
  script_version("$Revision: 12690 $");
  script_tag(name:"last_modification", value:"$Date: 2018-12-06 15:56:20 +0100 (Thu, 06 Dec 2018) $");
  script_tag(name:"creation_date", value:"2009-04-24 16:23:28 +0200 (Fri, 24 Apr 2009)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2009-0946");
  script_name("FreeType Multiple Integer Overflow Vulnerability (Linux)");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Buffer overflow");
  script_dependencies("secpod_freetype_detect_lin.nasl");
  script_mandatory_keys("FreeType/Linux/Ver");

  script_xref(name:"URL", value:"http://secunia.com/advisories/34723");
  script_xref(name:"URL", value:"https://bugzilla.redhat.com/show_bug.cgi?id=491384");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to execute arbitrary
  code in the context of the affected application.");

  script_tag(name:"affected", value:"FreeType version 2.3.9 and prior on Linux.");

  script_tag(name:"insight", value:"Multiple integer overflows are due to inadequate validation of data passed
  into cff/cffload.c, sfnt/ttcmap.c and cff/cffload.c while processing specially crafted fonts.");

  script_tag(name:"summary", value:"This host has FreeType installed and is prone to Multiple Integer Overflow
  vulnerability.");

  script_tag(name:"solution", value:"Apply the fix from the referenced repositories.");

  script_xref(name:"URL", value:"http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=0545ec1ca36b27cb928128870a83e5f668980bc5");
  script_xref(name:"URL", value:"http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=79972af4f0485a11dcb19551356c45245749fc5b");
  script_xref(name:"URL", value:"http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=a18788b14db60ae3673f932249cd02d33a227c4e");

  script_tag(name:"qod_type", value:"executable_version_unreliable");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if(!ver = get_app_version(cpe:CPE)) exit(0);

if(version_is_less_equal(version:ver, test_version:"2.3.9")){
  report = report_fixed_ver(installed_version:ver, fixed_version:"2.3.10");
  security_message(data:report);
  exit(0);
}

exit(99);