CVE-2022-50156
Last modified
CVE-2022-50156 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: HID: cp2112: prevent a buffer overflow in cp2112_xfer() Smatch warnings: drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy() 'data->block[1]' too small (33 vs 255) drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy() 'buf' too small (64 vs 255) The 'read_length' variable is provided by 'data->block[0]' which comes from user and it(read_length) can take a value between 0-255. Add an upper bound to 'read_length' variable 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: cp2112: prevent a buffer overflow in cp2112_xfer() Smatch warnings: drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy() 'data->block[1]' too small (33 vs 255) drivers/hid/hid-cp2112.c:793 cp2112_xfer() error: __memcpy() 'buf' too small (64 vs 255) The 'read_length' variable is provided by 'data->block[0]' which comes from user and it(read_length) can take a value between 0-255. Add an upper bound to 'read_length' variable 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 | >= 4.15.1, < 4.19.256 |
| Linux | Linux Kernel | >= 4.20, < 5.4.211 |
| Linux | Linux Kernel | >= 5.5, < 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 |
| Linux | Linux Kernel | 4.15 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-50156?
How severe is CVE-2022-50156?
How do I fix CVE-2022-50156?
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-50150Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-50151In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-50152In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50153In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50154In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50155In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50157In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50158In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50159In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50160In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50161In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-50162In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-50156?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
