CVE-2026-23178
HID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()
Check your servers for CVE-2026-23178
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-23178 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
HID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()
`i2c_hid_xfer` is used to read `recv_len + sizeof(__le16)` bytes of data into `ihid->rawbuf`.
The former can come from the userspace in the hidraw driver and is only bounded by HID_MAX_BUFFER_SIZE(16384) by default (unless we also set `max_buffer_size` field of `struct hid_ll_driver` which we do not).
The latter has size determined at runtime by the maximum size of different report types you could receive on any particular device and can be a much smaller value.
Fix this by truncating `recv_len` to `ihid->bufsize - sizeof(__le16)`.
The impact is low since access to hidraw devices requires root.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.64% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-122 Heap-based Buffer Overflow
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 85df713377ddc0482071c3e6b64c37bd1e48f1f1, before f9c9ad89d845f88a1509e9d672f65d234425fde9 affected from 85df713377ddc0482071c3e6b64c37bd1e48f1f1, before cff3f619fd1cb40cdd89971df9001f075613d219 affected from 85df713377ddc0482071c3e6b64c37bd1e48f1f1, before 786ec171788bdf9dda38789163f1b1fbb47f2d1e affected from 85df713377ddc0482071c3e6b64c37bd1e48f1f1, before 2124279f1f8c32c1646ce98e75a1a39b23b7db76 affected from 85df713377ddc0482071c3e6b64c37bd1e48f1f1, before 2497ff38c530b1af0df5130ca9f5ab22c5e92f29
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 6.1.163 up to and including 6.1.* unaffected from 6.6.124 up to and including 6.6.* unaffected from 6.12.70 up to and including 6.12.* unaffected from 6.18.10 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-23178 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-23178
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-23178
trivy image --scanners vuln IMAGE | grep CVE-2026-23178
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f9c9ad89d845f88a1509e9d672f65d234425fde9 git.kernel.org
- https://git.kernel.org/stable/c/cff3f619fd1cb40cdd89971df9001f075613d219 git.kernel.org
- https://git.kernel.org/stable/c/786ec171788bdf9dda38789163f1b1fbb47f2d1e git.kernel.org
- https://git.kernel.org/stable/c/2124279f1f8c32c1646ce98e75a1a39b23b7db76 git.kernel.org
- https://git.kernel.org/stable/c/2497ff38c530b1af0df5130ca9f5ab22c5e92f29 git.kernel.org
Source: the record CVE-2026-23178 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse