CVE-2026-23178
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA buffer overflow exists in the Linux kernel's HID i2c-hid driver where i2c_hid_get_report() reads recv_len + sizeof(__le16) bytes into a fixed-size buffer (ihid->rawbuf). Since recv_len originates from userspace and is only bounded by HID_MAX_BUFFER_SIZE (16384), it can exceed the buffer allocation, causing overflow.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check kernel version for vulnerability statusRun 'uname -r' to get the kernel version, then compare it against the fixed kernel version in your distribution's security advisories. The fix truncates recv_len to ihid->bufsize - sizeof(__le16).Affected if The kernel version is older than the version containing the fix and i2c-hid devices are in use.
-
Verify i2c-hid driver is loadedRun 'lsmod | grep i2c_hid' or check '/sys/bus/i2c/drivers/i2c-hid' to see if the i2c-hid kernel module is loaded.Affected if The driver module is loaded and an i2c-hid device is present.
-
Identify active i2c-hid devicesCheck /sys/bus/i2c/devices/ for devices using the i2c-hid driver, or run 'i2cdetect -l' to list i2c adapters that may have hid devices attached.Affected if Any i2c-hid devices are enumerated and actively communicating with the driver.
-
Confirm rawbuf allocation sizeExamine the driver's buffer allocation in /sys/module/i2c_hid/parameters/ or via kernel debugfs at /sys/kernel/debug/i2c-hid/ if available, to see the bufsize value.Affected if The bufsize is less than HID_MAX_BUFFER_SIZE (16384) plus sizeof(__le16), creating the overflow condition.
A system is affected if it runs a vulnerable kernel version, has the i2c-hid driver loaded, and has i2c-hid devices actively using a buffer size smaller than what a malicious userspace could request.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataApply the kernel patch to truncate recv_len to ihid->bufsize - sizeof(__le16), or update to a kernel version containing this fix.
- Consultation3.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,128.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-23178 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-23178 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data