Cisco IOS XR Software Memory Exhaustion Vulnerability (cisco-sa-20131002-iosxr)

2013-12-14T00:00:00
ID CISCO-SA-20131002-IOSXR.NASL
Type nessus
Reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
Modified 2013-12-14T00:00:00

Description

Cisco IOS XR Software version 4.3.1 contains a vulnerability that could result in complete packet memory exhaustion. Successful exploitation could render critical services on the affected device unable to allocate packets resulting in a denial of service (DoS) condition. Cisco has released free software updates that address this vulnerability. Workarounds that mitigate this vulnerability are available.

                                        
                                            #TRUSTED 7210c5946adc14a28b16a5427e3a39ebc801be30ca2c2f88d602b0b4db65727f43750adb32d0aa643ca44624269cda09a882943d7ca8134cfaa699687a959e5a9bbeb033eb13ac97020d5e4b8e1487d0244b2c09284cd89c88d409be40ce3b692879f292c5e032caab7e269dfcf700c93aaafbbdf85fbff9333045a501a9b2d8ec214d9dd7733f31f0796806f978d7faad0bada2316e3dae3730476a8484b6804f1450507ce6ee1048941ef796c56e5232dd600c34d570be9d94dda0a61ed7d968481d470fcf02194cea930b7c8d03b6c2b7222968f301a8699a1cc5faab9e74678aa0d65e585e4e3cde82b9a6d826796e8dd0d008cb8320997fe41a40932cf0aba7bed88eff3bfe63e3ebcc371fea3519038efec6e75b966c21135f6402b8547208038ddc6536076699462db156261f916e40c0d112b295b4572a7c56e44104994fc2eb9fe89c7b6175410b812dc6cae441143d7384e166fe5d1f354d6b1aaff8ca5929973ec03ef6c1243210624e63872c8b90b7557645a3814d911f0cf3ef281af012dc7374355ec7cc8b62e70466c0d100999e9601943077e4a5b908492497c3ed0f7bf67d2970559290b180ec439b5692d311d31e07c3184253aeed0a80da4c8aa79c236ccf66274a96505968a54dbd527d63eb95c2da2c931019b96ac9a93b270f721ea5d96130e7474610d8c1cb45596210ba1656babf0c863aedf7b2
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Cisco Security Advisory cisco-sa-20131002-iosxr.
# The text itself is copyright (C) Cisco
#

include("compat.inc");

if (description)
{
  script_id(71437);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/11/15");

  script_cve_id("CVE-2013-5503");
  script_bugtraq_id(62770);
  script_xref(name:"CISCO-BUG-ID", value:"CSCue69413");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20131002-iosxr");

  script_name(english:"Cisco IOS XR Software Memory Exhaustion Vulnerability (cisco-sa-20131002-iosxr)");
  script_summary(english:"Checks the IOSXR version.");

  script_set_attribute(attribute:"synopsis", value:"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(
    attribute:"description", 
    value:
"Cisco IOS XR Software version 4.3.1 contains a vulnerability that could
result in complete packet memory exhaustion.  Successful exploitation
could render critical services on the affected device unable to allocate
packets resulting in a denial of service (DoS) condition.  Cisco has
released free software updates that address this vulnerability. 
Workarounds that mitigate this vulnerability are available."
  );
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20131002-iosxr
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8b21028c");
  script_set_attribute(
    attribute:"solution", 
    value:
"Apply the relevant patch referenced in Cisco Security Advisory
cisco-sa-20131002-iosxr."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/10/02");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/10/02");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/12/14");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios_xr");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");
  script_family(english:"CISCO");

  script_dependencies("cisco_ios_xr_version.nasl");
  script_require_keys("Host/Cisco/IOS-XR/Version");

  exit(0);
}

include("audit.inc");
include("cisco_func.inc");
include("cisco_kb_cmd_func.inc");

flag = 0;
report = "";
override = 0;

cbi = "CSCue69413";

version = get_kb_item_or_exit("Host/Cisco/IOS-XR/Version");
if ( version == '4.3.1' ) flag++;

if (get_kb_item("Host/local_checks_enabled"))
{
  if (flag)
  {
    flag = 0;
    buf = cisco_command_kb_item("Host/Cisco/Config/show_udp_brief", "show udp brief");
    if (check_cisco_result(buf))
    {
      if (preg(multiline:TRUE, pattern:":(161|162|123|646|514)", string:buf)) { flag = 1; }
    } else if (cisco_needs_enable(buf)) { flag = 1; override = 1; }
  }
}

if (flag)
{
  report =
    '\n  Cisco Bug ID        : ' + cbi +
    '\n    Installed release : ' + version + '\n';

  security_hole(port:0, extra:report + cisco_caveat(override));
  exit(0);

}
else audit(AUDIT_HOST_NOT, "affected");