CVE-2018-7183
ntp: decodearr() can write beyond its buffer limit
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (medium).
Description
Buffer overflow in the decodearr function in ntpq in ntp 4.2.8p6 through 4.2.8p10 allows remote attackers to execute arbitrary code by leveraging an ntpq query and sending a response with a crafted array.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | ntp | 4.2.8p11-1.ph1 |
| amazon linux 1 | ntp, ntp-debuginfo, ntp-doc and 2 more | 4.2.8p11-1.37.amzn1 |
| debian 11 | ntp | 1:4.2.8p11+dfsg-1 |
| debian 7 | ntp | no fix listed |
| debian 8 | ntp | no fix listed |
| debian 9 | ntp | no fix listed |
| ubuntu 14.04 | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13 |
| ubuntu 14.04-ESM | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13 |
| ubuntu 16.04 | ntp | 1:4.2.8p4+dfsg-3ubuntu5.9 |
| ubuntu 16.04-ESM | ntp | 1:4.2.8p4+dfsg-3ubuntu5.9 |
| ubuntu 17.10 | ntp | 1:4.2.8p10+dfsg-5ubuntu3.3 |
| ubuntu 18.04 | ntp | 1:4.2.8p10+dfsg-5ubuntu7.1 |
Show all 18 entries from 14 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | ntp | 4.2.8p11-1.ph1 |
| amazon linux 1 | ntp | 4.2.8p11-1.37.amzn1 |
| amazon linux 1 | ntp-debuginfo | 4.2.8p11-1.37.amzn1 |
| amazon linux 1 | ntp-doc | 4.2.8p11-1.37.amzn1 |
| amazon linux 1 | ntp-perl | 4.2.8p11-1.37.amzn1 |
| amazon linux 1 | ntpdate | 4.2.8p11-1.37.amzn1 |
| debian 11 | ntp | 1:4.2.8p11+dfsg-1 |
| debian 7 | ntp | no fix listed |
| debian 8 | ntp | no fix listed |
| debian 9 | ntp | no fix listed |
| ubuntu 14.04 | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13 |
| ubuntu 14.04-ESM | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13 |
| ubuntu 16.04 | ntp | 1:4.2.8p4+dfsg-3ubuntu5.9 |
| ubuntu 16.04-ESM | ntp | 1:4.2.8p4+dfsg-3ubuntu5.9 |
| ubuntu 17.10 | ntp | 1:4.2.8p10+dfsg-5ubuntu3.3 |
| ubuntu 18.04 | ntp | 1:4.2.8p10+dfsg-5ubuntu7.1 |
| ubuntu 18.04-ESM | ntp | 1:4.2.8p10+dfsg-5ubuntu7.1 |
| ubuntu 18.10 | ntp | 1:4.2.8p11+dfsg-1ubuntu1 |
References
- http://support.ntp.org/bin/view/Main/NtpBug3414
- http://support.ntp.org/bin/view/Main/SecurityNotice#February_2018_ntp_4_2_8p11_NTP_S
- http://www.kb.cert.org/vuls/id/961909
- http://www.securityfocus.com/bid/103351
- https://access.redhat.com/security/cve/CVE-2018-7183
- https://nvd.nist.gov/vuln/detail/CVE-2018-7183
- https://security.freebsd.org/advisories/FreeBSD-SA-18:02.ntp.asc
- https://security.gentoo.org/glsa/201805-12
All 17 references
- https://security.netapp.com/advisory/ntap-20180626-0001/
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03962en_us
- https://ubuntu.com/security/notices/USN-3707-1
- https://ubuntu.com/security/notices/USN-3707-2
- https://usn.ubuntu.com/3707-1/
- https://usn.ubuntu.com/3707-2/
- https://www.cve.org/CVERecord?id=CVE-2018-7183
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.synology.com/support/security/Synology_SA_18_13