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
Affected Vendors & Products
References
History
Tue, 25 Nov 2025 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-787 | |
| CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:4.15:-:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:4.15:rc6:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:4.15:rc7:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:4.15:rc8:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:4.15:rc9:*:*:*:*:*:* |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
Fri, 20 Jun 2025 14:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
Wed, 18 Jun 2025 11:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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(). | |
| Title | HID: cp2112: prevent a buffer overflow in cp2112_xfer() | |
| References |
|
|
Status: PUBLISHED
Assigner: Linux
Published: 2025-06-18T11:03:13.913Z
Updated: 2025-06-18T11:03:13.913Z
Reserved: 2025-06-18T10:57:27.425Z
Link: CVE-2022-50156
No data.
Status : Analyzed
Published: 2025-06-18T11:15:45.747
Modified: 2025-11-25T15:21:57.797
Link: CVE-2022-50156