CVE-2016-1886
Description
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."
Severity
HIGH
CVSS v3
7.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
1.143%
chance of exploitation in the next 30 days
higher than 67.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Timeline
- 2016-05-25Published by the CNA15:00 UTC
- 2016-05-29First Exploit-DB entry (EDB-ID 44211)4 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 44211 | dos | freebsd_x86-64 | 2016-05-29 | no |
Affected products
| Vendor | Product |
|---|---|
| freebsd | freebsd |
References
- https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch
- https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc
- http://cturt.github.io/SETFKEY.html
- http://www.securityfocus.com/bid/90734
- http://www.securitytracker.com/id/1035905
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2016-1886'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2016-1886'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2016-1886'curl 'https://api.contrastcyber.com/cve_products/CVE-2016-1886'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).