Vulnerability Name:

CVE-2016-1886 (CCN-113352)

Assigned:2016-05-17
Published:2016-05-17
Updated:2017-04-20
Summary:Integer signedness error in the genkbd_commonioctl function in sys/dev/kbd/kbd.c in FreeBSD 9.3 before p42, 10.1 before p34, 10.2 before p17, and 10.3 before p3 allows local users to obtain sensitive information from kernel memory, cause a denial of service (memory overwrite and kernel crash), or gain privileges via a negative value in the flen structure member in the arg argument in a SETFKEY ioctl call, which triggers a "two way heap and stack overflow."
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.4 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
7.3 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.2 High (CVSS v2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
7.2 High (CCN CVSS v2 Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-119
Vulnerability Consequences:Gain Privileges
References:Source: MISC
Type: Exploit
http://cturt.github.io/SETFKEY.html

Source: MITRE
Type: CNA
CVE-2016-1886

Source: CCN
Type: SECTRACK ID: 1035905
FreeBSD Buffer Overflow in Keyboard Driver Lets Local Users Gain Elevated Privileges

Source: BID
Type: UNKNOWN
90734

Source: SECTRACK
Type: UNKNOWN
1035905

Source: XF
Type: UNKNOWN
freebsd-cve20161886-priv-esc(113352)

Source: CCN
Type: FreeBSD Security Advisory FreeBSD-SA-16:18.atkbd
Buffer overflow in keyboard driver

Source: CONFIRM
Type: Patch
https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch

Source: FREEBSD
Type: Vendor Advisory
FreeBSD-SA-16:18

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2016-1886

Vulnerable Configuration:Configuration 1:
  • cpe:/o:freebsd:freebsd:9.3:*:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:10.1:*:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:10.2:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:10.3:-:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/o:freebsd:freebsd:9.3:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:10.1:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:10.2:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    freebsd freebsd 9.3
    freebsd freebsd 10.1
    freebsd freebsd 10.2
    freebsd freebsd 10.3
    freebsd freebsd 9.3 -
    freebsd freebsd 10.1 -
    freebsd freebsd 10.2