{"id":"CVE-2016-1886","aliases":["EUVD-2016-2980","GHSA-3pmm-q6gm-q5rg"],"status":"published","title":"Integer signedness error in the genkbd_commonioctl function in sys/dev/kbd/kbd.c in FreeBSD 9.3...","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":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01143,"percentile":0.66911,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-119"],"published":"2016-05-25T15:00:00Z","modified":"2026-06-17T00:42:48Z","exploits":[{"source":"exploitdb","id":"EDB-44211","title":"FreeBSD Kernel (FreeBSD 10.2 \u003c 10.3 x64) - 'SETFKEY' (PoC)","type":"dos","platform":"freebsd_x86-64","date":"2016-05-29","url":"https://www.exploit-db.com/exploits/44211"}],"products":[{"vendor":"freebsd","product":"freebsd"}],"references":[{"url":"http://www.securitytracker.com/id/1035905","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://www.securityfocus.com/bid/90734","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc","tags":["vendor-advisory","x_refsource_FREEBSD","x_transferred","Vendor Advisory"]},{"url":"https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch","tags":["x_refsource_CONFIRM","x_transferred","Patch"]},{"url":"http://cturt.github.io/SETFKEY.html","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-1886"},{"url":"https://github.com/advisories/GHSA-3pmm-q6gm-q5rg"}],"sources":{"cve":[{"id":"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.\"","status":"published","published":"2016-05-25T15:00:00Z","modified":"2024-08-05T23:10:40.32Z","updated_at":"2026-11-02T14:33:35.841056Z"}],"euvd":[{"id":"EUVD-2016-2980","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.\"","status":"published","published":"2016-05-25T15:00:00Z","modified":"2024-08-05T23:10:40Z","updated_at":"2026-11-03T02:22:55.100655Z"}],"ghsa":[{"id":"GHSA-3pmm-q6gm-q5rg","title":"Integer signedness error in the genkbd_commonioctl function in sys/dev/kbd/kbd.c in FreeBSD 9.3...","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.\"","status":"published","published":"2022-05-17T02:49:24Z","modified":"2023-01-27T05:05:53Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:42:47.671932Z"}],"nvd":[{"id":"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.\"","status":"published","published":"2016-05-25T15:59:02.677Z","modified":"2026-06-17T00:42:48.127Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:03:25.366449Z"}]}}
