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."
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
FreeBSD Kernel (FreeBSD 10.2 < 10.3 x64) - 'SETFKEY' (PoC)
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| freebsd | 9.3 | affected | |
| freebsd | 10.1 | affected | |
| freebsd | 10.2 | affected | |
| freebsd | 10.3 | affected | |
References
- http://cturt.github.io/SETFKEY.html
- http://www.securityfocus.com/bid/90734
- http://www.securitytracker.com/id/1035905
- 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
- https://security.FreeBSD.org/patches/SA-16:18/atkbd.patch
- https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc
CWEs
CWE-119
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.