CVE-2026-23178: HID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()
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.
Security readout for executives and security teams
Plain-English summary
A local Linux kernel flaw could let an oversized HID report overwrite memory, potentially crashing the system or altering protected data. Although the supplied CVSS score is 7.8, the kernel description calls the practical impact low because accessing the relevant hidraw device requires root. This is not presented as a remote vulnerability.
Executive priority
Patch during the next appropriate kernel maintenance window, prioritizing shared or sensitive systems using I2C HID devices. The memory-corruption consequences are serious, but the stated root-access prerequisite and absence of known exploitation do not support an emergency internet-wide response.
Technical view
i2c_hid_get_report() could accept a userspace-controlled receive length larger than the runtime-sized raw buffer. i2c_hid_xfer() then reads that length plus a two-byte field into the buffer, creating a potential overflow. The stable fixes cap the receive length at the buffer size minus those two bytes.
Likely exposure
Exposure is limited to Linux systems using the I2C HID and hidraw path. The supplied record identifies affected Linux releases across several maintained branches, but distributions may backport fixes without changing major version numbers. The source states that hidraw access requires root, substantially reducing ordinary-user exposure.
Exploitation context
The issue requires local access and interaction with a hidraw device. The supplied source says this access requires root, while the CVSS vector records low privileges; that discrepancy should be checked against distribution permissions. The CVE is not listed as KEV, and the bundle provides no evidence of active exploitation or a public exploit.
Researcher notes
The important boundary is between userspace-controlled recv_len, the additional sizeof(__le16) read, and the device-dependent ihid->rawbuf size. The fix truncates recv_len to ihid->bufsize minus that field. Researchers should verify actual hidraw permissions and vendor backports rather than relying solely on version strings.
Mitigation direction
Install a vendor-supported kernel containing the applicable cited stable fix.
Use distribution advisories or changelogs to identify backported fixes accurately.
Until updated, keep hidraw device access restricted to trusted privileged users.
Prioritize systems where local privileged processes interact with I2C HID devices.
Validation and detection
Inventory running kernel builds and identify systems using I2C HID devices.
Check vendor advisories for CVE-2026-23178 or the cited stable commits.
Review hidraw device permissions and identify processes permitted to access them.
After updating, verify the fixed kernel is running and test attached HID devices.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2026-23178 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
6Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.