CVE-2015-5146
Medium · 5.3CVSS
5.3
EPSS
4.9%
Published
Aug 24, 2017
CISA due date
—
Cloudanix analysis
A flaw in the time service lets someone who already knows a special password crash the service, which can interrupt timekeeping for computers that rely on it.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper input validation in ntpd allows a remote authenticated user with the configuration password to supply a crafted configuration directive containing a NULL byte, resulting in a service crash when remote configuration is enabled.
Why it matters to the business
Disruption of time synchronization services can cause operational outages, affect logging accuracy, certificate validation, and scheduled tasks across dependent systems; the vulnerability is old with modest exploitation probability and no known ransomware usage.
How an attack unfolds
An attacker who knows the remote configuration password and can reach a host permitted to perform remote configuration sends a specially crafted directive packet containing a NULL byte; the server fails to handle the malformed input and crashes.
How to fix it
Upgrade ntpd to version 4.2.8p3 or later; if remote configuration is not required, disable it via the configuration file and restart the service.
How to confirm the fix worked
Verify ntpd version is 4.2.8p3 or newer; confirm remote configuration is disabled or test that malformed directive packets no longer cause crashes in a lab environment.
Typical attack path
- Obtain the ntpd remote configuration password
- Gain network access from a host trusted for remote configuration
- Craft and transmit a configuration directive packet containing an embedded NULL byte
- Trigger service crash and denial of service
How to detect it
Review ntpd logs for unexpected restarts or crashes around the time of configuration directive processing; examine network traffic or configuration logs for unusual directive packets from authorized hosts.
What your security team should do
- Prioritize upgrade of all ntpd instances to 4.2.8p3 or later
- Audit configurations and disable remote configuration where feasible
- Monitor EPSS trend and reassess if exploitation activity increases
The record
ntpd in ntp before 4.2.8p3 with remote configuration enabled allows remote authenticated users with knowledge of the configuration password and access to a computer entrusted to perform remote configuration to cause a denial of service (service crash) via a NULL byte in a crafted configuration directive packet.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ntp | 0 | 1:4.2.8p3+dfsg-1 |
| Debian:6.0 | ntp | 0 | 1:4.2.6.p2+dfsg-1+deb6u4 |
| Debian:7 | ntp | 0 | 1:4.2.6.p5+dfsg-2+deb7u6 |
| Debian:8 | ntp | 0 | 1:4.2.6.p5+dfsg-7+deb8u1 |
| Mageia:4 | ntp | 0 | 4.2.6p5-15.6.mga4 |
| Mageia:5 | ntp | 0 | 4.2.6p5-24.1.mga5 |
| Ubuntu:14.04:LTS | ntp | 0 | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.5 |
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-2018-7182 The ctl_getitem method in ntpd in ntp-4.2.8p6 before 4.2.8p11 allows remote attackers to… 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