{"id":"CVE-2026-23178","aliases":["CVE-2026-23178"],"related":[],"kind":"vulnerability","state":"published","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nHID: i2c-hid: corrige un potencial desbordamiento de búfer en i2c_hid_get_report()\n\n'i2c_hid_xfer' se utiliza para leer 'recv_len + sizeof(__le16)' bytes de datos en 'ihid-&gt;rawbuf'.\n\nEl primero puede provenir del espacio de usuario en el controlador hidraw y está limitado únicamente por HID_MAX_BUFFER_SIZE(16384) por defecto (a menos que también configuremos el campo 'max_buffer_size' de 'struct hid_ll_driver', lo cual no hacemos).\n\nEl segundo tiene un tamaño determinado en tiempo de ejecución por el tamaño máximo de los diferentes tipos de informes que se podrían recibir en cualquier dispositivo particular y puede ser un valor mucho menor.\n\nEsto se soluciona truncando 'recv_len' a 'ihid-&gt;bufsize - sizeof(__le16)'.\n\nEl impacto es bajo ya que el acceso a los dispositivos hidraw requiere root.","source":"nvd"}],"published":"2026-02-14T16:27:10.108Z","modified":"2026-10-19T19:17:40.423Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"type":"git","introduced":"85df713377ddc0482071c3e6b64c37bd1e48f1f1","fixed":"f9c9ad89d845f88a1509e9d672f65d234425fde9","status":"affected"},{"type":"git","introduced":"85df713377ddc0482071c3e6b64c37bd1e48f1f1","fixed":"cff3f619fd1cb40cdd89971df9001f075613d219","status":"affected"},{"type":"git","introduced":"85df713377ddc0482071c3e6b64c37bd1e48f1f1","fixed":"786ec171788bdf9dda38789163f1b1fbb47f2d1e","status":"affected"},{"type":"git","introduced":"85df713377ddc0482071c3e6b64c37bd1e48f1f1","fixed":"2124279f1f8c32c1646ce98e75a1a39b23b7db76","status":"affected"},{"type":"git","introduced":"85df713377ddc0482071c3e6b64c37bd1e48f1f1","fixed":"2497ff38c530b1af0df5130ca9f5ab22c5e92f29","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.163","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.124","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.70","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.10","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f9c9ad89d845f88a1509e9d672f65d234425fde9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cff3f619fd1cb40cdd89971df9001f075613d219","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/786ec171788bdf9dda38789163f1b1fbb47f2d1e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2124279f1f8c32c1646ce98e75a1a39b23b7db76","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2497ff38c530b1af0df5130ca9f5ab22c5e92f29","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:06:40.043Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23178","url":"https://www.cve.org/CVERecord?id=CVE-2026-23178","licence":"CVE Terms of Use","modified":"2026-10-19T18:25:34.295Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23178","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23178","licence":"Public domain","modified":"2026-10-19T19:17:40.423Z"}],"updatedAt":"2026-11-25T22:59:13.906Z","epss":{"score":0.00194,"percentile":0.096,"date":"2026-12-01T12:00:22.000Z"}}