In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]HID: mcp2221: prevent a buffer overflow in mcp_smbus_write()[EOL][EOL]Smatch Warning:[EOL]drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy()[EOL]'&mcp->txbuf[5]' too small (59 vs 255)[EOL]drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy() 'buf'[EOL]too small (34 vs 255)[EOL][EOL]The 'len' variable can take a value between 0-255 as it can come from[EOL]data->block[0] and it is user data. So add an bound check to prevent a[EOL]buffer overflow in memcpy().