Advisories

TinyOS <= 2.1.2 Stack-Based Buffer Overflow in mcp2200gpio

Go Back
severity
medium
date
Affecting
  • TinyOS <= 2.1.2

CWE
  • CWE-121 Stack-based Buffer Overflow
CVSS
4.8
CVSS V4 Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Credit
Ron Edgerson
Description
TinyOS versions up to and including 2.1.2 contain a stack-based buffer overflow vulnerability in the mcp2200gpio utility. The vulnerability is caused by unsafe use of strcpy() and strcat() functions when constructing device paths during automatic device discovery. A local attacker can exploit this by creating specially crafted filenames under /dev/usb/, leading to stack memory corruption and application crashes.