{"id":"CVE-2026-72352","summary":"HID: bpf: Fix hid_bpf_get_data() range check","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: bpf: Fix hid_bpf_get_data() range check\n\nhid_bpf_get_data() returns a pointer into the HID-BPF context data when\nthe caller-provided offset and size fit inside ctx-\u003eallocated_size.\n\nThe current check adds rdwr_buf_size and offset before comparing the\nresult against ctx-\u003eallocated_size. Since both values are unsigned, a\nvery large size can wrap the sum below ctx-\u003eallocated_size and make the\nhelper return a pointer even though the requested range is not contained\nin the backing buffer.\n\nUse check_add_overflow() to reject wrapped range ends before comparing\nthe requested range end against ctx-\u003eallocated_size.","modified":"2026-08-18T03:56:41.871859651Z","published":"2026-08-15T05:55:54.809Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72352.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2d044049421dd48212b28646a850749d4a2d57fa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61a959b82f1aecd6d2d35c208013dd077cac9d10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca373549140dfb386aa2de38364b58441b1f4885"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72352.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72352"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"658ee5a64fcfbbf758447fa3af425729eaabb0dc"},{"fixed":"ca373549140dfb386aa2de38364b58441b1f4885"},{"fixed":"61a959b82f1aecd6d2d35c208013dd077cac9d10"},{"fixed":"f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f"},{"fixed":"2d044049421dd48212b28646a850749d4a2d57fa"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72352.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72352.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}