openSUSE Security Update : flex / at / libbonobo / etc (openSUSE-2016-1155)

2016-10-05T00:00:00
ID OPENSUSE-2016-1155.NASL
Type nessus
Reporter Tenable
Modified 2016-10-13T00:00:00

Description

Various packages included vulnerable parsers generated by 'flex'.

This update provides a fixed 'flex' package and also rebuilds of packages that might have security issues caused by the auto generated code.

Flex itself was updated to fix a buffer overflow in the generated scanner (bsc#990856, CVE-2016-6354)

Packages that were rebuilt with the fixed flex :

  • at

  • libbonobo

  • netpbm

  • openslp

  • sgmltool

  • virtuoso

Some more packages might also need to be rebuild to receive a new flex parser, but will be released later.

This update was imported from the SUSE:SLE-12:Update update project.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from openSUSE Security Update openSUSE-2016-1155.
#
# The text description of this plugin is (C) SUSE LLC.
#

include("compat.inc");

if (description)
{
  script_id(93855);
  script_version("$Revision: 2.2 $");
  script_cvs_date("$Date: 2016/10/13 14:27:28 $");

  script_cve_id("CVE-2016-6354");

  script_name(english:"openSUSE Security Update : flex / at / libbonobo / etc (openSUSE-2016-1155)");
  script_summary(english:"Check for the openSUSE-2016-1155 patch");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote openSUSE host is missing a security update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"Various packages included vulnerable parsers generated by 'flex'.

This update provides a fixed 'flex' package and also rebuilds of
packages that might have security issues caused by the auto generated
code.

Flex itself was updated to fix a buffer overflow in the generated
scanner (bsc#990856, CVE-2016-6354)

Packages that were rebuilt with the fixed flex :

  - at

  - libbonobo

  - netpbm

  - openslp

  - sgmltool

  - virtuoso

Some more packages might also need to be rebuild to receive a new flex
parser, but will be released later.

This update was imported from the SUSE:SLE-12:Update update project."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://bugzilla.opensuse.org/show_bug.cgi?id=990856"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Update the affected flex / at / libbonobo / etc packages."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:at");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:at-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:at-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:flex");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:flex-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:flex-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:flex-debuginfo-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:flex-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-debuginfo-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-doc-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libbonobo-lang");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetpbm-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetpbm11");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetpbm11-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetpbm11-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetpbm11-debuginfo-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:netpbm");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:netpbm-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:netpbm-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-debuginfo-32bit");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-devel");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-server");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:openslp-server-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:sgmltool");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:sgmltool-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:sgmltool-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:virtuoso-debugsource");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:virtuoso-drivers");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:virtuoso-drivers-debuginfo");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:virtuoso-server");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:virtuoso-server-debuginfo");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.1");

  script_set_attribute(attribute:"patch_publication_date", value:"2016/10/04");
  script_set_attribute(attribute:"plugin_publication_date", value:"2016/10/05");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2016 Tenable Network Security, Inc.");
  script_family(english:"SuSE Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/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/SuSE/release");
if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
if (release !~ "^(SUSE42\.1)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "42.1", release);
if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

ourarch = get_kb_item("Host/cpu");
if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);

flag = 0;

if ( rpm_check(release:"SUSE42.1", reference:"at-3.1.14-9.2") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"at-debuginfo-3.1.14-9.2") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"at-debugsource-3.1.14-9.2") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"flex-2.5.37-11.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"flex-debuginfo-2.5.37-11.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"flex-debugsource-2.5.37-11.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-debuginfo-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-debugsource-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-devel-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-doc-debuginfo-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libbonobo-lang-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libnetpbm-devel-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libnetpbm11-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"libnetpbm11-debuginfo-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"netpbm-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"netpbm-debuginfo-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"netpbm-debugsource-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-debuginfo-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-debugsource-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-devel-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-server-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"openslp-server-debuginfo-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"sgmltool-1.0.9-1078.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"sgmltool-debuginfo-1.0.9-1078.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"sgmltool-debugsource-1.0.9-1078.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"virtuoso-debugsource-6.1.6-13.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"virtuoso-drivers-6.1.6-13.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"virtuoso-drivers-debuginfo-6.1.6-13.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"virtuoso-server-6.1.6-13.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", reference:"virtuoso-server-debuginfo-6.1.6-13.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"flex-32bit-2.5.37-11.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"flex-debuginfo-32bit-2.5.37-11.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"libbonobo-32bit-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"libbonobo-debuginfo-32bit-2.32.1-19.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"libnetpbm11-32bit-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"libnetpbm11-debuginfo-32bit-10.66.3-6.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"openslp-32bit-2.0.0-14.1") ) flag++;
if ( rpm_check(release:"SUSE42.1", cpu:"x86_64", reference:"openslp-debuginfo-32bit-2.0.0-14.1") ) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
  else security_hole(0);
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "at / at-debuginfo / at-debugsource / flex / flex-32bit / etc");
}