Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-50156

published high CVSS 3.1 · 7.8

HID: cp2112: prevent a buffer overflow in cp2112_xfer()

Published
18 Jun 2025, 11:03:13 UTC
Updated
05 Aug 2026, 08:57:33 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 3af7d60e9a6c17d6d41c4341f8020511887d372d · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 519ff31a6ddd87aa4905bd9bf3b92e8b88801614 · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < ebda3d6b004bb6127a66a616524a2de152302ca7 · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 8489a20ac481b08c0391608d81ed3796d373cfdf · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < e7028944e61014ae915e7fb74963d3835f2f761a · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 26e427ac85c2b8d0d108cc80b6de34d33e2780c4 · 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 381583845d19cb4bd21c8193449385f3fefa9caf · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.15 (affected) · 0 to < 4.15 (unaffected · semver) · 4.19.256 through 4.19.* (unaffected · semver) · 5.4.211 through 5.4.* (unaffected · semver) · 5.10.137 through 5.10.* (unaffected · semver) · 5.15.61 through 5.15.* (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoaarch64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoppc64le Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfos390x Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfox86_64 Advisory build 7.0.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelsrc Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernelx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64kaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debugaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-abi-stablelistsnoarch Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugs390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debugx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfos390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfox86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-develx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matcheds390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-moduless390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrappc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extras390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-extrax86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debug-uki-virtx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfoppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfos390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfox86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-aarch64aarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-ppc64leppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-s390xs390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-debuginfo-common-x86_64x86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devels390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-develx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matcheds390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-devel-matchedx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-docnoarch Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-moduless390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modulesx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-coreppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-cores390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-corex86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extraaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrappc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extras390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-modules-extrax86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsaarch64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsppc64le Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolss390x Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458
Red Hat Enterprise Linux RHEL-9 kernel-toolsx86_64 Advisory build 5.14.0-284.11.1.el9_2 RHSA-2023:2458

Package entries are limited to the first 100 builds and 100 linked advisories.

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().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

10

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The overflow is triggered through the local i2c-dev I2C_SMBUS ioctl path into cp2112_xfer(), not by crafted USB HID reports from a malicious peripheral. Presence of a CP2112 adapter is a deployment precondition; the attack itself is a local syscall against /dev/i2c-N. AC:L - An attacker who can open the adapter reliably sets data->block[0] above I2C_SMBUS_BLOCK_MAX (e.g. 33–61) and completes a normal I2C block read; no race or unpredictable state outside attacker influence is required. CP2112 deployments typically have responding I2C slaves (EEPROMs/sensors) that the attacker can address. PR:L - i2cdev_open() performs no capability check; access is governed by /dev/i2c-* permissions, commonly 0660 root:i2c or similarly granted to unprivileged service accounts on embedded/industrial systems. That is basic local access, not real root/init-namespace admin rights. UI:N - Exploitation requires only the attacker issuing ioctl(I2C_SMBUS) with I2C_SMBUS_I2C_BLOCK_DATA; no victim action is needed. S:U - This is ordinary kernel memory corruption within the host OS authority (local privilege escalation/DoS), with no VM escape, IOMMU bypass, or other cross-boundary impact. C:H - The bug is an out-of-bounds write of attacker-chosen length (and I2C-sourced contents) past union i2c_smbus_data on the stack, which is memory corruption that can be leveraged for information disclosure. I:H - Out-of-bounds stack write via memcpy(data->block+1, buf, read_length) with read_length up to 61 into a 33-byte destination enables integrity compromise and potential control-flow hijacking. A:H - The same memory corruption can crash the kernel (oops/panic) even when not fully exploited for code execution.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 3af7d60e9a6c17d6d41c4341f8020511887d372d (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 519ff31a6ddd87aa4905bd9bf3b92e8b88801614 (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < ebda3d6b004bb6127a66a616524a2de152302ca7 (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 8489a20ac481b08c0391608d81ed3796d373cfdf (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < e7028944e61014ae915e7fb74963d3835f2f761a (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 26e427ac85c2b8d0d108cc80b6de34d33e2780c4 (affected · git)542134c0375b5ca2b1d18490c02b8a20bfdd8d74 to < 381583845d19cb4bd21c8193449385f3fefa9caf (affected · git)Default: unaffected Linux · cna
Linux Linux 4.15 (affected)0 to < 4.15 (unaffected · semver)4.19.256 through 4.19.* (unaffected · semver)5.4.211 through 5.4.* (unaffected · semver)5.10.137 through 5.10.* (unaffected · semver)5.15.61 through 5.15.* (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

HID: cp2112: prevent a buffer overflow in cp2112_xfer()

Provenance

Schema
5.2
Searchable
yes
Content hash
1046c72529dc5fa00c48a21ba3e8ea4b6da7a02a8b19bbe558c84c0e1d310a8d
Ingested
23 Sep 2026, 08:04:39 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected