CVE-2022-50131
HIGHLinux Kernel 5.7-5.10.137, 5.11-5.15.61, 5.16-5.18.18, 5.19-5.19.2 - Out-of-bounds Write in HID mcp2221 SMBus Write
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: HID: mcp2221: prevent a buffer overflow in mcp_smbus_write() Smatch Warning: drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy() '&mcp->txbuf[5]' too small (59 vs 255) drivers/hid/hid-mcp2221.c:388 mcp_smbus_write() error: __memcpy() 'buf' too small (34 vs 255) The 'len' variable can take a value between 0-255 as it can come from data->block[0] and it is user data. So add an bound check to prevent a buffer overflow in memcpy().
References (5)
Core 5
Core References
Scores
CVSS v3
7.8
EPSS
0.0018
EPSS Percentile
7.9%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-787
Status
published
Products (17)
linux/Kernel
5.11.0 - 5.15.61linux
linux/Kernel
5.16.0 - 5.18.18linux
linux/Kernel
5.19.0 - 5.19.2linux
linux/Kernel
5.7.0 - 5.10.137linux
Linux/Linux
< 5.7
Linux/Linux
5.10.137 - 5.10.*
Linux/Linux
5.15.61 - 5.15.*
Linux/Linux
5.18.18 - 5.18.*
Linux/Linux
5.19.2 - 5.19.*
Linux/Linux
5.7
... and 7 more
Published
Jun 18, 2025
Tracked Since
Feb 18, 2026