7.8high

CVE-2016-18861 exploit

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 p1…

Published 10 y ago · modified 4 mo ago · JSON

CVSS
7.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.1%
percentile 67%
Public exploits
1
Exploit-DB

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."

Exploit prediction (EPSS)

1.14% probability of exploitation in the next 30 days, higher than 67% of all scored CVEs.

Exploits and detections

  • EDB-44211 FreeBSD Kernel (FreeBSD 10.2 < 10.3 x64) - 'SETFKEY' (PoC) · dos · 2016-05-29

CVSS scores

Assigned byVersionScoreVector
NVD3.07.8CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD2.07.2AV:L/AC:L/Au:N/C:C/I:C/A:C

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

  • securitytracker.com /id/1035905 · vdb-entry, x_refsource_SECTRACK, x_transferred
  • securityfocus.com /bid/90734 · vdb-entry, x_refsource_BID, x_transferred
  • freebsd.org /security/advisories/FreeBSD-SA-16:18.atkbd.asc · vendor-advisory, x_refsource_FREEBSD, x_transferred
  • security.freebsd.org /patches/SA-16:18/atkbd.patch · x_refsource_CONFIRM, x_transferred
  • cturt.github.io /SETFKEY.html · x_refsource_MISC, x_transferred

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.