CVE-2022-50131
Last modified
CVE-2022-50131 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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().. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.7, < 5.10.137 |
| Linux | Linux Kernel | >= 5.11, < 5.15.61 |
| Linux | Linux Kernel | >= 5.16, < 5.18.18 |
| Linux | Linux Kernel | >= 5.19, < 5.19.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-50131?
How severe is CVE-2022-50131?
How do I fix CVE-2022-50131?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-50125In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50126In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50127In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50128Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-50129In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50130In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50132In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50133In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50134In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50135In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50136In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50137In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2022-50131?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
