Executive Summary

Summary
Title libbsd: Arbitrary code execution
Informations
Name GLSA-201607-13 First vendor Publication 2016-07-20
Vendor Gentoo Last vendor Modification 2016-07-20
Severity (Vendor) N/A Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A buffer overflow in libbsd might allow remote attackers to execute arbitrary code.

Background

This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.

Description

libbsd contains a buffer overflow in the fgetwln() function. An if statement, which is responsible for checking the necessity to reallocate memory in the target buffer, is off by one therefore an out of bounds write occurs.

Impact

Remote attackers could potentially execute arbitrary code with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All libbsd users should upgrade to the latest version:
# emerge --sync
# emerge --ask --verbose --oneshot ">=dev-libs/libbsd-0.8.2"

References

[ 1 ] CVE-2016-2090
http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-2090

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

https://security.gentoo.org/glsa/201607-13

Original Source

Url : http://security.gentoo.org/glsa/glsa-201607-13.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-119 Failure to Constrain Operations within the Bounds of a Memory Buffer

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 1
Os 5
Os 1
Os 2

Nessus® Vulnerability Scanner

Date Description
2017-01-03 Name : The remote Fedora host is missing a security update.
File : fedora_2016-5c3d057783.nasl - Type : ACT_GATHER_INFO
2017-01-03 Name : The remote Fedora host is missing a security update.
File : fedora_2016-d3e562bb52.nasl - Type : ACT_GATHER_INFO
2016-07-21 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-201607-13.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
2
Date Informations
2017-07-01 09:25:34
  • Multiple Updates
2016-07-22 13:38:25
  • Multiple Updates
2016-07-22 13:36:15
  • First insertion