{"api_version":"1","generated_at":"2026-07-24T02:23:37+00:00","cve":"CVE-2016-1886","urls":{"html":"https://cve.report/CVE-2016-1886","api":"https://cve.report/api/cve/CVE-2016-1886.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-1886","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-1886"},"summary":{"title":"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.\"","state":"PUBLISHED","assigner":"mitre","published_at":"2016-05-25 15:59:02","updated_at":"2026-05-06 22:30:45"},"problem_types":["CWE-119","n/a"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.2","severity":"","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://cturt.github.io/SETFKEY.html","name":"http://cturt.github.io/SETFKEY.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"Analysis of CVE-2016-1886, SETFKEY FreeBSD kernel vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch","name":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"text/x-diff","httpstatus":"200","archivestatus":"200"},{"url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc","name":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securitytracker.com/id/1035905","name":"http://www.securitytracker.com/id/1035905","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"FreeBSD Buffer Overflow in Keyboard Driver Lets Local Users Gain Elevated Privileges - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/90734","name":"http://www.securityfocus.com/bid/90734","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"FreeBSD CVE-2016-1886 Local Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-1886","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-1886","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"1886","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"freebsd","cpe5":"freebsd","cpe6":"10.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"1886","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"freebsd","cpe5":"freebsd","cpe6":"10.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"1886","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"freebsd","cpe5":"freebsd","cpe6":"10.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"1886","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"freebsd","cpe5":"freebsd","cpe6":"9.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T23:10:40.320Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"1035905","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://www.securitytracker.com/id/1035905"},{"name":"90734","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/90734"},{"name":"FreeBSD-SA-16:18","tags":["vendor-advisory","x_refsource_FREEBSD","x_transferred"],"url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://cturt.github.io/SETFKEY.html"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2016-05-17T00:00:00.000Z","descriptions":[{"lang":"en","value":"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.\""}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-04-19T09:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"1035905","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://www.securitytracker.com/id/1035905"},{"name":"90734","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/90734"},{"name":"FreeBSD-SA-16:18","tags":["vendor-advisory","x_refsource_FREEBSD"],"url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc"},{"tags":["x_refsource_CONFIRM"],"url":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch"},{"tags":["x_refsource_MISC"],"url":"http://cturt.github.io/SETFKEY.html"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2016-1886","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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.\""}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"1035905","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1035905"},{"name":"90734","refsource":"BID","url":"http://www.securityfocus.com/bid/90734"},{"name":"FreeBSD-SA-16:18","refsource":"FREEBSD","url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc"},{"name":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch","refsource":"CONFIRM","url":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch"},{"name":"http://cturt.github.io/SETFKEY.html","refsource":"MISC","url":"http://cturt.github.io/SETFKEY.html"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2016-1886","datePublished":"2016-05-25T15:00:00.000Z","dateReserved":"2016-01-13T00:00:00.000Z","dateUpdated":"2024-08-05T23:10:40.320Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2016-05-25 15:59:02","lastModifiedDate":"2026-05-06 22:30:45","problem_types":["CWE-119","n/a"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:freebsd:freebsd:9.3:*:*:*:*:*:*:*","matchCriteriaId":"57052F01-8695-4C63-A947-7671375B9312"},{"vulnerable":true,"criteria":"cpe:2.3:o:freebsd:freebsd:10.1:*:*:*:*:*:*:*","matchCriteriaId":"F6D63B21-9D2E-4B15-9E60-6181D44B1F55"},{"vulnerable":true,"criteria":"cpe:2.3:o:freebsd:freebsd:10.2:*:*:*:*:*:*:*","matchCriteriaId":"21EFF723-7B5A-4712-8A6B-56CADAA4BFD5"},{"vulnerable":true,"criteria":"cpe:2.3:o:freebsd:freebsd:10.3:*:*:*:*:*:*:*","matchCriteriaId":"E102E760-362C-4DC7-BDED-E2CF9F94ECE7"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"1886","Ordinal":"1","Title":"CVE-2016-1886","CVE":"CVE-2016-1886","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"1886","Ordinal":"1","NoteData":"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.\"","Type":"Description","Title":"CVE-2016-1886"},{"CveYear":"2016","CveId":"1886","Ordinal":"2","NoteData":"2016-05-25","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"1886","Ordinal":"3","NoteData":"2017-04-19","Type":"Other","Title":"Modified"}]}}}