CVE-2015-7978: Buffer Overflow

Published Jan 20, 2016
·
Updated

A stack-based buffer overflow was found in the way ntpd processed 'ntpdc reslist' commands that queried restriction lists with a large amount of entries. A remote attacker could use this flaw to crash the ntpd process.

Upstream patch (which also addresses CVE-2015-7977):

https://github.com/ntp-project/ntp/commit/8a0c765f3c47633fa262356b0818788d1cf249b1

Other sources

NTP before 4.2.8p6 and 4.3.0 before 4.3.90 allows a remote attackers to cause a denial of service (stack exhaustion) via an ntpdc relist command, which triggers recursive traversal of the restriction list.

Affected Software

93 affected componentsFixes available
NTP ntp<=4.2.8
NTP ntp=4.3.0
NTP ntp=4.3.1
NTP ntp=4.3.2
NTP ntp=4.3.3
NTP ntp=4.3.4
NTP ntp=4.3.5
NTP ntp=4.3.6
NTP ntp=4.3.7
NTP ntp=4.3.8
NTP ntp=4.3.10
NTP ntp=4.3.11
NTP ntp=4.3.12
NTP ntp=4.3.13
NTP ntp=4.3.14
NTP ntp=4.3.15
NTP ntp=4.3.16
NTP ntp=4.3.17
NTP ntp=4.3.18
NTP ntp=4.3.19
NTP ntp=4.3.20
NTP ntp=4.3.21
NTP ntp=4.3.22
NTP ntp=4.3.23
NTP ntp=4.3.24
NTP ntp=4.3.25
NTP ntp=4.3.26
NTP ntp=4.3.27
NTP ntp=4.3.28
NTP ntp=4.3.29
NTP ntp=4.3.30
NTP ntp=4.3.31
NTP ntp=4.3.32
NTP ntp=4.3.33
NTP ntp=4.3.34
NTP ntp=4.3.35
NTP ntp=4.3.36
NTP ntp=4.3.37
NTP ntp=4.3.38
NTP ntp=4.3.39
NTP ntp=4.3.40
NTP ntp=4.3.41
NTP ntp=4.3.42
NTP ntp=4.3.43
NTP ntp=4.3.44
NTP ntp=4.3.45
NTP ntp=4.3.46
NTP ntp=4.3.47
NTP ntp=4.3.48
NTP ntp=4.3.49
NTP ntp=4.3.50
NTP ntp=4.3.51
NTP ntp=4.3.52
NTP ntp=4.3.53
NTP ntp=4.3.54
NTP ntp=4.3.55
NTP ntp=4.3.56
NTP ntp=4.3.57
NTP ntp=4.3.58
NTP ntp=4.3.59
NTP ntp=4.3.60
NTP ntp=4.3.61
NTP ntp=4.3.62
NTP ntp=4.3.63
NTP ntp=4.3.64
NTP ntp=4.3.65
NTP ntp=4.3.66
NTP ntp=4.3.67
NTP ntp=4.3.68
NTP ntp=4.3.69
NTP ntp=4.3.70
NTP ntp=4.3.71
NTP ntp=4.3.72
NTP ntp=4.3.73
NTP ntp=4.3.74
NTP ntp=4.3.75
NTP ntp=4.3.76
NTP ntp=4.3.77
NTP ntp=4.3.78
NTP ntp=4.3.79
NTP ntp=4.3.80
NTP ntp=4.3.81
NTP ntp=4.3.82
NTP ntp=4.3.83
NTP ntp=4.3.84
NTP ntp=4.3.85
NTP ntp=4.3.86
NTP ntp=4.3.87
NTP ntp=4.3.88
NTP ntp=4.3.89
redhat/ntp<4.2.8
4.2.8
debian/ntp<1:4.2.8p7+dfsg-1
1:4.2.8p7+dfsg-1
debian/ntp
1:4.2.6.p5+dfsg-2+deb7u71:4.2.6.p5+dfsg-7+deb8u21:4.2.8p7+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ntp to a version that resolves this vulnerability.

    Fixed in 4.2.8
  2. Upgrade

    Upgrade debian/ntp to a version that resolves this vulnerability.

    Fixed in 1:4.2.8p7+dfsg-1
  3. Upgrade

    Upgrade debian/ntp to a version that resolves this vulnerability.

    Fixed in 1:4.2.6.p5+dfsg-2+deb7u7Fixed in 1:4.2.6.p5+dfsg-7+deb8u2Fixed in 1:4.2.8p7+dfsg-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.8p6
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.3.90

Event History

Jan 20, 2016
Data Sourced
via Red Hat·11:42 AM
DescriptionSeverityAffected Software
Jan 30, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
09:59 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·09:59 PM
DescriptionSeverityAffected Software
May 13, 2026
Updated
via NVD·12:24 AM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2015-7978?

CVE-2015-7978 has a medium severity score due to its potential to cause denial of service.

2

How do I fix CVE-2015-7978?

To fix CVE-2015-7978, upgrade to NTP version 4.2.8p12+dfsg-4 or later.

3

What versions of NTP are affected by CVE-2015-7978?

NTP versions before 4.2.8p6 and 4.3.0 before 4.3.90 are affected by CVE-2015-7978.

4

What type of attack does CVE-2015-7978 facilitate?

CVE-2015-7978 can be exploited to perform a denial of service attack through stack exhaustion.

5

Is there a known exploit for CVE-2015-7978?

Yes, CVE-2015-7978 is known to be exploited via the ntpdc relist command to trigger recursive traversal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203