{"id":"CVE-2026-23178","title":"HID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()\n\n`i2c_hid_xfer` is used to read `recv_len + sizeof(__le16)` bytes of data\ninto `ihid->rawbuf`.\n\nThe …","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvssSource":"cna","vendor":"Linux","product":"Linux","affected":["Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < f9c9ad89d845f88a1509e9d672f65d234425fde9","Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < cff3f619fd1cb40cdd89971df9001f075613d219","Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 786ec171788bdf9dda38789163f1b1fbb47f2d1e","Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 2124279f1f8c32c1646ce98e75a1a39b23b7db76","Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 2497ff38c530b1af0df5130ca9f5ab22c5e92f29","Linux 5.18"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:06:40.043320Z"},"published":"2026-02-14","updated":"2026-10-16","sourceUpdated":"2026-10-16T15:09:50.041Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-23178","references":[{"url":"https://git.kernel.org/stable/c/f9c9ad89d845f88a1509e9d672f65d234425fde9"},{"url":"https://git.kernel.org/stable/c/cff3f619fd1cb40cdd89971df9001f075613d219"},{"url":"https://git.kernel.org/stable/c/786ec171788bdf9dda38789163f1b1fbb47f2d1e"},{"url":"https://git.kernel.org/stable/c/2124279f1f8c32c1646ce98e75a1a39b23b7db76"},{"url":"https://git.kernel.org/stable/c/2497ff38c530b1af0df5130ca9f5ab22c5e92f29"}],"tags":["cve.org"],"epss":0.00167,"epssPercentile":0.05554,"ingestedAt":"2026-10-16T17:24:46.640Z","slug":"CVE-2026-23178","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nHID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()\n\n`i2c_hid_xfer` is used to read `recv_len + sizeof(__le16)` bytes of data\ninto `ihid->rawbuf`.\n\nThe former can come from the userspace in the hidraw driver and is only\nbounded by HID_MAX_BUFFER_SIZE(16384) by default (unless we also set\n`max_buffer_size` field of `struct hid_ll_driver` which we do not).\n\nThe latter has size determined at runtime by the maximum size of\ndifferent report types you could receive on any particular device and\ncan be a much smaller value.\n\nFix this by truncating `recv_len` to `ihid->bufsize - sizeof(__le16)`.\n\nThe impact is low since access to hidraw devices requires root.\n\n## Affected\n\n- `Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < f9c9ad89d845f88a1509e9d672f65d234425fde9`\n- `Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < cff3f619fd1cb40cdd89971df9001f075613d219`\n- `Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 786ec171788bdf9dda38789163f1b1fbb47f2d1e`\n- `Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 2124279f1f8c32c1646ce98e75a1a39b23b7db76`\n- `Linux >= 85df713377ddc0482071c3e6b64c37bd1e48f1f1 < 2497ff38c530b1af0df5130ca9f5ab22c5e92f29`\n- `Linux 5.18`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}