The remote NewStart CGSL host, running version CORE 5.05 / MAIN 5.05, has mesa-libGLw packages installed that are affected by multiple vulnerabilities:
An issue was discovered in XListExtensions in ListExt.c in libX11 through 1.6.5. A malicious server can send a reply in which the first string overflows, causing a variable to be set to NULL that will be freed later on, leading to DoS (segmentation fault). (CVE-2018-14598)
An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c is vulnerable to an off-by-one error caused by malicious server responses, leading to DoS or possibly unspecified other impact. (CVE-2018-14599)
An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c interprets a variable as signed instead of unsigned, resulting in an out-of-bounds write (of up to 128 bytes), leading to DoS or remote code execution. (CVE-2018-14600)
Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used by local attackers to crash xkbcommon users by supplying a crafted keymap file that triggers boolean negation. (CVE-2018-15853)
Unchecked NULL pointer usage in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because geometry tokens were desupported incorrectly. (CVE-2018-15854)
Unchecked NULL pointer usage in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because the XkbFile for an xkb_geometry section was mishandled. (CVE-2018-15855)
An infinite loop when reaching EOL unexpectedly in compose/parser.c (aka the keymap parser) in xkbcommon before 0.8.1 could be used by local attackers to cause a denial of service during parsing of crafted keymap files. (CVE-2018-15856)
An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by supplying a crafted keymap file. (CVE-2018-15857)
Unchecked NULL pointer usage when parsing invalid atoms in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because lookup failures are mishandled. (CVE-2018-15859)
Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file that triggers an xkb_intern_atom failure. (CVE-2018-15861)
Unchecked NULL pointer usage in LookupModMask in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file with invalid virtual modifiers. (CVE-2018-15862)
Unchecked NULL pointer usage in ResolveStateAndPredicate in xkbcomp/compat.c in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file with a no-op modmask expression. (CVE-2018-15863)
Unchecked NULL pointer usage in resolve_keysym in xkbcomp/parser.y in xkbcommon before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because a map access attempt can occur for a map that was never created. (CVE-2018-15864)
Note that Nessus has not tested for these issues but has instead relied only on the application’s self-reported version number.
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from ZTE advisory NS-SA-2023-0024. The text
# itself is copyright (C) ZTE, Inc.
##
include('compat.inc');
if (description)
{
script_id(174065);
script_version("1.0");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/04/11");
script_cve_id(
"CVE-2018-14598",
"CVE-2018-14599",
"CVE-2018-14600",
"CVE-2018-15853",
"CVE-2018-15854",
"CVE-2018-15855",
"CVE-2018-15856",
"CVE-2018-15857",
"CVE-2018-15859",
"CVE-2018-15861",
"CVE-2018-15862",
"CVE-2018-15863",
"CVE-2018-15864"
);
script_name(english:"NewStart CGSL CORE 5.05 / MAIN 5.05 : mesa-libGLw Multiple Vulnerabilities (NS-SA-2023-0024)");
script_set_attribute(attribute:"synopsis", value:
"The remote NewStart CGSL host 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 mesa-libGLw packages installed that are
affected by multiple vulnerabilities:
- An issue was discovered in XListExtensions in ListExt.c in libX11 through 1.6.5. A malicious server can
send a reply in which the first string overflows, causing a variable to be set to NULL that will be freed
later on, leading to DoS (segmentation fault). (CVE-2018-14598)
- An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c is vulnerable
to an off-by-one error caused by malicious server responses, leading to DoS or possibly unspecified other
impact. (CVE-2018-14599)
- An issue was discovered in libX11 through 1.6.5. The function XListExtensions in ListExt.c interprets a
variable as signed instead of unsigned, resulting in an out-of-bounds write (of up to 128 bytes), leading
to DoS or remote code execution. (CVE-2018-14600)
- Endless recursion exists in xkbcomp/expr.c in xkbcommon and libxkbcommon before 0.8.1, which could be used
by local attackers to crash xkbcommon users by supplying a crafted keymap file that triggers boolean
negation. (CVE-2018-15853)
- Unchecked NULL pointer usage in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL
pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because geometry tokens were
desupported incorrectly. (CVE-2018-15854)
- Unchecked NULL pointer usage in xkbcommon before 0.8.1 could be used by local attackers to crash (NULL
pointer dereference) the xkbcommon parser by supplying a crafted keymap file, because the XkbFile for an
xkb_geometry section was mishandled. (CVE-2018-15855)
- An infinite loop when reaching EOL unexpectedly in compose/parser.c (aka the keymap parser) in xkbcommon
before 0.8.1 could be used by local attackers to cause a denial of service during parsing of crafted
keymap files. (CVE-2018-15856)
- An invalid free in ExprAppendMultiKeysymList in xkbcomp/ast-build.c in xkbcommon before 0.8.1 could be
used by local attackers to crash xkbcommon keymap parsers or possibly have unspecified other impact by
supplying a crafted keymap file. (CVE-2018-15857)
- Unchecked NULL pointer usage when parsing invalid atoms in ExprResolveLhs in xkbcomp/expr.c in xkbcommon
before 0.8.2 could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by
supplying a crafted keymap file, because lookup failures are mishandled. (CVE-2018-15859)
- Unchecked NULL pointer usage in ExprResolveLhs in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used
by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap
file that triggers an xkb_intern_atom failure. (CVE-2018-15861)
- Unchecked NULL pointer usage in LookupModMask in xkbcomp/expr.c in xkbcommon before 0.8.2 could be used by
local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap
file with invalid virtual modifiers. (CVE-2018-15862)
- Unchecked NULL pointer usage in ResolveStateAndPredicate in xkbcomp/compat.c in xkbcommon before 0.8.2
could be used by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a
crafted keymap file with a no-op modmask expression. (CVE-2018-15863)
- Unchecked NULL pointer usage in resolve_keysym in xkbcomp/parser.y in xkbcommon before 0.8.2 could be used
by local attackers to crash (NULL pointer dereference) the xkbcommon parser by supplying a crafted keymap
file, because a map access attempt can occur for a map that was never created. (CVE-2018-15864)
Note that Nessus has not tested for these issues 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-2023-0024");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-14598");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-14599");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-14600");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15853");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15854");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15855");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15856");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15857");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15859");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15861");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15862");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15863");
script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/info/CVE-2018-15864");
script_set_attribute(attribute:"solution", value:
"Upgrade the vulnerable CGSL mesa-libGLw 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-14600");
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:"2018/08/21");
script_set_attribute(attribute:"patch_publication_date", value:"2023/04/11");
script_set_attribute(attribute:"plugin_publication_date", value:"2023/04/11");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_core:mesa-libGLw");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_core:mesa-libGLw-debuginfo");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_core:mesa-libGLw-devel");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:mesa-libGLw");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:mesa-libGLw-debuginfo");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:mesa-libGLw-devel");
script_set_attribute(attribute:"cpe", value:"cpe:/o:zte:cgsl_core:5");
script_set_attribute(attribute:"cpe", value:"cpe:/o:zte:cgsl_main:5");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"NewStart CGSL Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2023 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('rpm.inc');
if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var os_release = get_kb_item('Host/ZTE-CGSL/release');
if (isnull(os_release) || os_release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, 'NewStart Carrier Grade Server Linux');
if (os_release !~ "CGSL CORE 5.05" &&
os_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);
var 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);
var flag = 0;
var pkgs = {
'CGSL CORE 5.05': [
'mesa-libGLw-8.0.0-5.el7',
'mesa-libGLw-debuginfo-8.0.0-5.el7',
'mesa-libGLw-devel-8.0.0-5.el7'
],
'CGSL MAIN 5.05': [
'mesa-libGLw-8.0.0-5.el7',
'mesa-libGLw-debuginfo-8.0.0-5.el7',
'mesa-libGLw-devel-8.0.0-5.el7'
]
};
var pkg_list = pkgs[os_release];
foreach (pkg in pkg_list)
if (rpm_check(release:'ZTE ' + os_release, reference:pkg)) flag++;
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_HOLE,
extra : rpm_report_get()
);
exit(0);
}
else
{
var tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'mesa-libGLw');
}
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-14598
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-14599
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-14600
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15853
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15854
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15855
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15856
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15857
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15859
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15861
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15862
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15863
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15864
security.gd-linux.com/info/CVE-2018-14598
security.gd-linux.com/info/CVE-2018-14599
security.gd-linux.com/info/CVE-2018-14600
security.gd-linux.com/info/CVE-2018-15853
security.gd-linux.com/info/CVE-2018-15854
security.gd-linux.com/info/CVE-2018-15855
security.gd-linux.com/info/CVE-2018-15856
security.gd-linux.com/info/CVE-2018-15857
security.gd-linux.com/info/CVE-2018-15859
security.gd-linux.com/info/CVE-2018-15861
security.gd-linux.com/info/CVE-2018-15862
security.gd-linux.com/info/CVE-2018-15863
security.gd-linux.com/info/CVE-2018-15864
security.gd-linux.com/notice/NS-SA-2023-0024