CVE-2018-7182
High · 7.5CVSS
7.5
EPSS
28.8%
Published
Mar 6, 2018
CISA due date
—
Cloudanix analysis
A bug in network time software lets remote attackers crash the service, breaking timekeeping that many systems rely on for security and operations.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in ntpd ctl_getitem triggered by crafted NTP mode 6 packets, resulting in denial of service.
Why it matters to the business
Disruption of time synchronization services can cascade into failures for logging, authentication, certificate validation, and scheduled operations across affected systems.
How an attack unfolds
An attacker sends a specially crafted NTP mode 6 packet to a vulnerable ntpd instance (4.2.8p6 through 4.2.8p10); the ctl_getitem function performs an out-of-bounds read that crashes the daemon. Public exploit code exists and the vulnerability has remained stable in exploitation probability.
How to fix it
Upgrade ntpd to 4.2.8p11 or later; restrict mode 6 control queries via configuration (restrict ... noquery) where upgrades are delayed.
How to confirm the fix worked
Verify ntpd version is 4.2.8p11 or newer; confirm mode 6 query restrictions in ntp.conf; test connectivity with legitimate mode 6 tools after patching.
Typical attack path
- Identify reachable ntpd instances responding to mode 6 queries
- Transmit crafted mode 6 packet targeting ctl_getitem
- Trigger out-of-bounds memory read
- Cause ntpd crash or unavailability
How to detect it
Review ntpd logs for unexpected restarts or crashes around mode 6 handling; inspect network captures for atypical mode 6 packets; correlate with exploit maturity indicators.
- ctl_getitem
- mode 6 packet
- ntpd.*4\.2\.8p[6-9]|4\.2\.8p10
What your security team should do
- Prioritize upgrade of all ntpd instances to 4.2.8p11 or newer
- Apply network-level restrictions on UDP 123 for mode 6 traffic
- Monitor for ntpd restarts and anomalous mode 6 packets
- Replace NTP with a maintained alternative where feasible
The record
The ctl_getitem method in ntpd in ntp-4.2.8p6 before 4.2.8p11 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted mode 6 packet with a ntpd instance from 4.2.8p6 through 4.2.8p10.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ntp | 0 | 1:4.2.8p11+dfsg-1 |
| Debian:11 | ntpsec | 0 | 1.0.0+dfsg1-5 |
| Debian:12 | ntpsec | 0 | 1.0.0+dfsg1-5 |
| Debian:13 | ntpsec | 0 | 1.0.0+dfsg1-5 |
| Mageia:6 | ntp | 0 | 4.2.8p11-1.mga6 |
| SUSE:Enterprise Storage 4 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ntp | 0 | 4.2.8p11-64.3.2 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ntp | 0 | 4.2.8p11-64.4.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server 12 SP2-LTSS | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ntp | 0 | 4.2.8p11-64.3.2 |
| SUSE:Linux Enterprise Server 12 SP3 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server 12-LTSS | ntp | 0 | 4.2.8p11-46.26.2 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ntp | 0 | 4.2.8p11-64.4.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ntp | 0 | 4.2.8p11-64.3.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ntp | 0 | 4.2.8p11-64.5.1 |
| SUSE:OpenStack Cloud 7 | ntp | 0 | 4.2.8p11-64.5.1 |
| Ubuntu:14.04:LTS | ntp | 0 | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.12 |
| Ubuntu:14.04:LTS | ntp | 0 | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13 |
| Ubuntu:16.04:LTS | ntp | 0 | 1:4.2.8p4+dfsg-3ubuntu5.8 |
| Ubuntu:16.04:LTS | ntp | 0 | 1:4.2.8p4+dfsg-3ubuntu5.9 |
| Ubuntu:18.04:LTS | ntp | 0 | 1:4.2.8p10+dfsg-5ubuntu7.1 |
| openSUSE:Tumbleweed | ntp | 0 | 4.2.8p15-7.2 |
| openSUSE:Tumbleweed | ntpsec | 0 | 1.2.1-1.2 |
Related vulnerabilities
- CVE-2023-26555 praecis_parse in ntpd/refclock_palisade.c in NTP 4.2.8p15 has an out-of-bounds write. Also affects ntp
- CVE-2019-8936 NTP through 4.2.8p12 has a NULL Pointer Dereference. Also affects ntp
- CVE-2015-5146 ntpd in ntp before 4.2.8p3 with remote configuration enabled allows remote authenticated… Also affects ntp
- CVE-2015-7849 Use-after-free vulnerability in ntpd in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77… Also affects ntp
- CVE-2015-7855 The decodenetnum function in ntpd in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77… Also affects ntp
- CVE-2015-7871 Crypto-NAK packets in ntpd in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows… Also affects ntp
- CVE-2015-7704 The ntpd client in NTP 4.x before 4.2.8p4 and 4.3.x before 4.3.77 allows remote attackers… Also affects ntp
- CVE-2015-7854 Buffer overflow in the password management functionality in NTP 4.2.x before 4.2.8p4, and… Also affects ntp