{"id":"CVE-2026-23178","published":"2026-02-14T16:27:10Z","modified":"2026-10-19T18:25:34Z","title":"HID: i2c-hid: fix potential buffer overflow in i2c_hid_get_report()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00194,"percentile":0.09318,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://git.kernel.org/stable/c/f9c9ad89d845f88a1509e9d672f65d234425fde9","tags":[]},{"url":"https://git.kernel.org/stable/c/cff3f619fd1cb40cdd89971df9001f075613d219","tags":[]},{"url":"https://git.kernel.org/stable/c/786ec171788bdf9dda38789163f1b1fbb47f2d1e","tags":[]},{"url":"https://git.kernel.org/stable/c/2124279f1f8c32c1646ce98e75a1a39b23b7db76","tags":[]},{"url":"https://git.kernel.org/stable/c/2497ff38c530b1af0df5130ca9f5ab22c5e92f29","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.86},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 85df713377ddc0482071c3e6b64c37bd1e48f1f1, < f9c9ad89d845f88a1509e9d672f65d234425fde9",">= 85df713377ddc0482071c3e6b64c37bd1e48f1f1, < cff3f619fd1cb40cdd89971df9001f075613d219",">= 85df713377ddc0482071c3e6b64c37bd1e48f1f1, < 786ec171788bdf9dda38789163f1b1fbb47f2d1e",">= 85df713377ddc0482071c3e6b64c37bd1e48f1f1, < 2124279f1f8c32c1646ce98e75a1a39b23b7db76",">= 85df713377ddc0482071c3e6b64c37bd1e48f1f1, < 2497ff38c530b1af0df5130ca9f5ab22c5e92f29"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:06:40.043320Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-6112","exploited":false,"provenance":"source"}}