CVE-2016-6559

The BSD libc library's link_ntoa() function may be vulnerable to a classic buffer overflow

No CVSS score yet EPSS 3.60%

Published 13 Jul 2018 Updated 6 Aug 2024 CNA: certcc

Check your servers for CVE-2016-6559

The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-6559 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.

Check my servers

Description

Improper bounds checking of the obuf variable in the link_ntoa() function in linkaddr.c of the BSD libc library may allow an attacker to read or write from memory. The full impact and severity depends on the method of exploit and how the library is used by applications. According to analysis by FreeBSD developers, it is very unlikely that applications exist that utilize link_ntoa() in an exploitable manner, and the CERT/CC is not aware of any proof of concept. A blog post describes the functionality of link_ntoa() and points out that none of the base utilities use this function in an exploitable manner. For more information, please see FreeBSD Security Advisory SA-16:37.

Exploitation

EPSS 3.60%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 90.2% of all scored CVEs. Scores of 26 Nov 2026.

Weakness

  • CWE-120 Buffer Copy without Checking Size of Input

Affected products

As the CNA lists them.

ProductVersions
libc library
affected link_ntoa()

Is my server affected?

Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-6559 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-6559

RHEL, Rocky, Alma, Fedora

rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-6559

Alpine

apk list --installed | grep -i PACKAGE

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2016-6559
trivy image --scanners vuln IMAGE | grep CVE-2016-6559

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.

References

Advisories

Other references

  • 1037398 securitytracker.com · vdb entry
  • 94694 securityfocus.com · vdb entry

Source: the record CVE-2016-6559 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.