VDB

CVE-2022-50131

CVE-2022-50131 PUBLISHED CVSS 7.8 HIGH

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

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.22%
13.3th percentile

Affected products

VendorProductVersions
LinuxLinux67a95c21463d066060b0f66d65a75d45bb386ffb, 67a95c21463d066060b0f66d65a75d45bb386ffb, 67a95c21463d066060b0f66d65a75d45bb386ffb
LinuxLinux5.7, 0, 5.10.137
linuxlinux_kernel5.7, 5.7, 5.7
LinuxLinux0, 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›