Scientific Linux Security Update for chrony addressing multiple flaws and providing bug fixes and enhancement
Reporter | Title | Published | Views | Family All 59 |
---|---|---|---|---|
Fedora | [SECURITY] Fedora 21 Update: chrony-1.31.1-1.fc21 | 22 Apr 201522:53 | – | fedora |
Fedora | [SECURITY] Fedora 22 Update: chrony-2.0-0.3.pre2.fc22 | 22 Apr 201522:43 | – | fedora |
Fedora | [SECURITY] Fedora 20 Update: chrony-1.31.1-1.fc20 | 24 Apr 201522:50 | – | fedora |
Oracle linux | chrony security, bug fix, and enhancement update | 23 Nov 201500:00 | – | oraclelinux |
Gentoo Linux | chrony: Multiple vulnerabilities | 5 Jul 201500:00 | – | gentoo |
OpenVAS | Fedora Update for chrony FEDORA-2015-5748 | 7 Jul 201500:00 | – | openvas |
OpenVAS | Oracle: Security Advisory (ELSA-2015-2241) | 24 Nov 201500:00 | – | openvas |
OpenVAS | Debian Security Advisory DSA 3222-1 (chrony - security update) | 12 Apr 201500:00 | – | openvas |
OpenVAS | Mageia: Security Advisory (MGASA-2015-0163) | 28 Jan 202200:00 | – | openvas |
OpenVAS | Fedora Update for chrony FEDORA-2015-5816 | 23 Apr 201500:00 | – | openvas |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text is (C) Scientific Linux.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(87551);
script_version("2.6");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/14");
script_cve_id("CVE-2015-1821", "CVE-2015-1822", "CVE-2015-1853");
script_name(english:"Scientific Linux Security Update : chrony on SL7.x x86_64 (20151119)");
script_summary(english:"Checks rpm output for the updated packages");
script_set_attribute(
attribute:"synopsis",
value:
"The remote Scientific Linux host is missing one or more security
updates."
);
script_set_attribute(
attribute:"description",
value:
"An out-of-bounds write flaw was found in the way chrony stored certain
addresses when configuring NTP or cmdmon access. An attacker that has
the command key and is allowed to access cmdmon (only localhost is
allowed by default) could use this flaw to crash chronyd or, possibly,
execute arbitrary code with the privileges of the chronyd process.
(CVE-2015-1821)
An uninitialized pointer use flaw was found when allocating memory to
save unacknowledged replies to authenticated command requests. An
attacker that has the command key and is allowed to access cmdmon
(only localhost is allowed by default) could use this flaw to crash
chronyd or, possibly, execute arbitrary code with the privileges of
the chronyd process. (CVE-2015-1822)
A denial of service flaw was found in the way chrony hosts that were
peering with each other authenticated themselves before updating their
internal state variables. An attacker could send packets to one peer
host, which could cascade to other peers, and stop the synchronization
process among the reached peers. (CVE-2015-1853)
The chrony packages have been upgraded to upstream version 2.1.1,
which provides a number of bug fixes and enhancements over the
previous version. Notable enhancements include :
- Updated to NTP version 4 (RFC 5905)
- Added pool directive to specify pool of NTP servers
- Added leapsecmode directive to select how to correct
clock for leap second
- Added smoothtime directive to smooth served time and
enable leap smear
- Added asynchronous name resolving with POSIX threads
- Ready for year 2036 (next NTP era)
- Improved clock control
- Networking code reworked to open separate client sockets
for each NTP server
This update also fixes the following bug :
- The chronyd service previously assumed that network
interfaces specified with the 'bindaddress' directive
were ready when the service was started. This could
cause chronyd to fail to bind an NTP server socket to
the interface if the interface was not ready. With this
update, chronyd uses the IP_FREEBIND socket option,
enabling it to bind to an interface later, not only when
the service starts.
In addition, this update adds the following enhancement :
- The chronyd service now supports four modes of handling
leap seconds, configured using the 'leapsecmode' option.
The clock can be either stepped by the kernel (the
default 'system' mode), stepped by chronyd ('step'
mode), slowly adjusted by slewing ('slew' mode), or the
leap second can be ignored and corrected later in normal
operation ('ignore' mode). If you select slewing, the
correction will always start at 00:00:00 UTC and will be
applied at a rate specified in the 'maxslewrate' option."
);
# https://listserv.fnal.gov/scripts/wa.exe?A2=ind1512&L=scientific-linux-errata&F=&S=&P=5577
script_set_attribute(
attribute:"see_also",
value:"http://www.nessus.org/u?b06cf0eb"
);
script_set_attribute(
attribute:"solution",
value:"Update the affected chrony and / or chrony-debuginfo packages."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:chrony");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:chrony-debuginfo");
script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
script_set_attribute(attribute:"vuln_publication_date", value:"2015/04/16");
script_set_attribute(attribute:"patch_publication_date", value:"2015/11/19");
script_set_attribute(attribute:"plugin_publication_date", value:"2015/12/22");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2015-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Scientific Linux Local Security Checks");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("rpm.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
os_ver = os_ver[1];
if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 7.x", "Scientific Linux " + os_ver);
if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
if ("x86_64" >!< cpu) audit(AUDIT_ARCH_NOT, "x86_64", cpu);
flag = 0;
if (rpm_check(release:"SL7", cpu:"x86_64", reference:"chrony-2.1.1-1.el7")) flag++;
if (rpm_check(release:"SL7", cpu:"x86_64", reference:"chrony-debuginfo-2.1.1-1.el7")) flag++;
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_WARNING,
extra : rpm_report_get()
);
exit(0);
}
else
{
tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, "chrony / chrony-debuginfo");
}
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo