{"vuid":"VU#548487","idnumber":"548487","name":"BSD libc contains a buffer overflow vulnerability in link_ntoa()","keywords":["buffer overflow","CWE-120"],"overview":"The BSD libc library's link_ntoa() function may be vulnerable to a classic buffer overflow. It is currently unclear if this issue is exploitable.","clean_desc":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') - CVE-2016-6559 Improper bounds checking of the obuf variable in the link_ntoa() function in linkaddr.c 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. The CVSS score below reflects a worst-case scenario in which an attacker may execute arbitrary code with root permissions. It is unclear if any program exists that would allow exploit in any manner.","impact":"The full impact and severity depends on the method of exploit and how the library is used by applications. An attacker may be able to execute arbitrary code, but CERT/CC is currently unaware of a proof of concept.","resolution":"Apply an update FreeBSD libc was updated to address this vulnerability. Affected users are encouraged to upgrade to the latest version of libc and/or the latest release of your operating system. In FreeBSD, the following patch levels (or later) contain a fix: 9.3-RELEASE-p51\n10.1-RELEASE-p43\n10.2-RELEASE-p26\n10.3-RELEASE-p13\n11.0-RELEASE-p4","workarounds":"","sysaffected":"","thanks":"Thanks to the reporter who wishes to remain anonymous.","author":"This document was written by Garret Wassermann.","public":["https://www.freebsd.org/security/advisories/FreeBSD-SA-16:37.libc.asc","https://github.com/freebsd/freebsd/blob/386ddae58459341ec567604707805814a2128a57/lib/libc/net/linkaddr.c#L132","http://www.tedunangst.com/flak/post/who-even-calls-link-ntoa","http://cwe.mitre.org/data/definitions/120.html"],"cveids":["CVE-2016-6559"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2016-10-10T06:54:02Z","publicdate":"2016-12-06T00:00:00Z","datefirstpublished":"2016-12-06T16:37:26Z","dateupdated":"2016-12-08T22:54:49Z","revision":54,"vrda_d1_directreport":"1","vrda_d1_population":"3","vrda_d1_impact":"3","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"M","cvss_authentication":null,"cvss_confidentialityimpact":"C","cvss_integrityimpact":"C","cvss_availabilityimpact":"C","cvss_exploitablity":null,"cvss_remediationlevel":"OF","cvss_reportconfidence":"C","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"L","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"9.3","cvss_basevector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","cvss_temporalscore":"6.9","cvss_environmentalscore":"1.72528520976","cvss_environmentalvector":"CDP:ND/TD:L/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}