CVE-2022-50131
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2022
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
HID: mcp2221: prevent a buffer overflow in mcp_smbus_write()
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().
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 67a95c21463d066060b0f66d65a75d45bb386ffb | affected | git | 66c8e816f2f2ca4a61b406503bd10bad1b35f72f | Unavailable | None listed |
| 67a95c21463d066060b0f66d65a75d45bb386ffb | affected | git | 91443c669d280937968f0aa4edefa741cfe35314 | Unavailable | None listed |
| 67a95c21463d066060b0f66d65a75d45bb386ffb | affected | git | 6402116a7b5ec80fa40fd145a80c813019cd555f | Unavailable | None listed |
| 67a95c21463d066060b0f66d65a75d45bb386ffb | affected | git | 3c0f8a59f2cc8841ee6653399a77f4f3e6e9a270 | Unavailable | None listed |
| 67a95c21463d066060b0f66d65a75d45bb386ffb | affected | git | 62ac2473553a00229e67bdf3cb023b62cf7f5a9a | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 5.7 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 5.7 | Unavailable | None listed |
| 5.10.137 | unaffected | semver | Unavailable | 5.10.* | None listed |
| 5.15.61 | unaffected | semver | Unavailable | 5.15.* | None listed |
| 5.18.18 | unaffected | semver | Unavailable | 5.18.* | None listed |
| 5.19.2 | unaffected | semver | Unavailable | 5.19.* | None listed |
| 6.0 | unaffected | original_commit_for_fix | Unavailable | * | None listed |