CVE-2022-50131
HID: mcp2221: prevent a buffer overflow in mcp_smbus_write()
Reported by linux · Published June 18, 2025
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 0.22% · 13.3th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 67a95c21463d066060b0f66d65a75d45bb386ffb, 67a95c21463d066060b0f66d65a75d45bb386ffb, 67a95c21463d066060b0f66d65a75d45bb386ffb |
| Linux | Linux | 5.7, 0, 5.10.137 |
| linux | linux_kernel | 5.7, 5.7, 5.7 |
| Linux | Linux | 0, 67a95c21463d066060b0f66d65a75d45bb386ffb, 67a95c21463d066060b0f66d65a75d45bb386ffb |
Timeline
- Jun 18, 2025 CVE Published
- Jun 29, 2025 EPSS Score (29 in total, the first dated here)
- May 23, 2026 Coalition ESS Score
- Jun 2, 2026 Security Advisory (239 in total, the first dated here)
- Oct 13, 2026 CVE Updated
- Oct 18, 2026 Distribution Patch (228 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-50131
vulnetix vdb fixes CVE-2022-50131
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-50131/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart