{"id":"CVE-2026-31401","aliases":["CVE-2026-31401"],"related":[],"kind":"vulnerability","state":"published","title":"HID: bpf: prevent buffer overflow in hid_hw_request","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: bpf: prevent buffer overflow in hid_hw_request\n\nright now the returned value is considered to be always valid. However,\nwhen playing with HID-BPF, the return value can be arbitrary big,\nbecause it's the return value of dispatch_hid_bpf_raw_requests(), which\ncalls the struct_ops and we have no guarantees that the value makes\nsense.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: bpf: prevent buffer overflow in hid_hw_request\n\nright now the returned value is considered to be always valid. However,\nwhen playing with HID-BPF, the return value can be arbitrary big,\nbecause it's the return value of dispatch_hid_bpf_raw_requests(), which\ncalls the struct_ops and we have no guarantees that the value makes\nsense.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nHID: bpf: prevenir desbordamiento de búfer en hid_hw_request\n\nActualmente, el valor devuelto se considera siempre válido. Sin embargo, al interactuar con HID-BPF, el valor de retorno puede ser arbitrariamente grande, porque es el valor de retorno de dispatch_hid_bpf_raw_requests(), que llama a las struct_ops y no tenemos garantías de que el valor tenga sentido.","source":"nvd"}],"published":"2026-04-03T15:16:04.903Z","modified":"2026-10-19T19:17:51.193Z","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-120","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"8bd0488b5ea58655ad6fdcbe0408ef49b16882b1","fixed":"d6efaa50af62fb0790dd1fd4e7e5506b46312510","status":"affected"},{"type":"git","introduced":"8bd0488b5ea58655ad6fdcbe0408ef49b16882b1","fixed":"73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1","status":"affected"},{"type":"git","introduced":"8bd0488b5ea58655ad6fdcbe0408ef49b16882b1","fixed":"eb57dae20fdf6f3069cdc07821fa3bb46de381d7","status":"affected"},{"type":"git","introduced":"8bd0488b5ea58655ad6fdcbe0408ef49b16882b1","fixed":"2b658c1c442ec1cd9eec5ead98d68662c40fe645","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.10","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.11","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.20"},{"status":"affected","introduced":"6.19","fixed":"6.19.10"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:08:47.196Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31401","url":"https://www.cve.org/CVERecord?id=CVE-2026-31401","licence":"CVE Terms of Use","modified":"2026-10-19T18:35:46.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31401","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31401","licence":"Public domain","modified":"2026-10-19T19:17:51.193Z"}],"updatedAt":"2026-11-25T22:59:17.905Z","epss":{"score":0.00154,"percentile":0.04773,"date":"2026-12-01T12:00:22.000Z"}}