GLSA-200905-08 : NTP: Remote execution of arbitrary code

medium Nessus Plugin ID 38920

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200905-08 (NTP: Remote execution of arbitrary code)

Multiple vulnerabilities have been found in the programs included in the NTP package:
Apple Product Security reported a boundary error in the cookedprint() function in ntpq/ntpq.c, possibly leading to a stack-based buffer overflow (CVE-2009-0159).
Chris Ries of CMU reported a boundary error within the crypto_recv() function in ntpd/ntp_crypto.c, possibly leading to a stack-based buffer overflow (CVE-2009-1252).
Impact :

A remote attacker might send a specially crafted package to a machine running ntpd, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the daemon, or a Denial of Service. NOTE: Successful exploitation requires the 'autokey' feature to be enabled. This feature is only available if NTP was built with the 'ssl' USE flag.
Furthermore, a remote attacker could entice a user into connecting to a malicious server using ntpq, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the application, or a Denial of Service.
Workaround :

You can protect against CVE-2009-1252 by disabling the 'ssl' USE flag and recompiling NTP.

Solution

All NTP users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-misc/ntp-4.2.4_p7'

See Also

https://security.gentoo.org/glsa/200905-08

Plugin Details

Severity: Medium

ID: 38920

File Name: gentoo_GLSA-200905-08.nasl

Version: 1.15

Type: local

Published: 5/27/2009

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:ntp, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 5/26/2009

Reference Information

CVE: CVE-2009-0159, CVE-2009-1252

BID: 34481, 35017

CWE: 119

GLSA: 200905-08