CVE-2022-50131
Description
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().
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-50131
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2022-50131.html
Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2023:2458
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 6.0.2-1 |
| debian | bullseye | fixed | 5.10.140-1 |
| debian | forky | fixed | 6.0.2-1 |
| debian | sid | fixed | 6.0.2-1 |
| debian | trixie | fixed | 6.0.2-1 |
References
Verify integrity in audit chain (admin only). AS-IS.