{"id":"CVE-2026-80918","aliases":["CVE-2026-80918"],"related":[],"kind":"vulnerability","state":"published","title":"HID: core: fix number/pointer type confusion on long items","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: core: fix number/pointer type confusion on long items\n\nWhen fetch_item() is called by hid_scan_report() on an item with\nHID_ITEM_TAG_LONG, it stores a pointer to the item data in\nitem->data.longdata instead of storing a value directly in\nitem->data.{u8/u16/u32}.\n\nWhen item_udata() or item_sdata() encounters such an item, it incorrectly\nassumes that the item is in short format, and therefore returns the lower\npart of a kernel pointer reinterpreted as a number.\n\nWhen a HID device is connected whose descriptor contains a\nHID_GLOBAL_ITEM_TAG_REPORT_SIZE encoded in long format with size=4, this\ncauses the lower half of a kernel pointer to be printed into dmesg as a\nnumber, like this:\n\n    hid (null): invalid report_size 107953555\n\nTo fix it, let item_udata() and item_sdata() verify that the item is in\nshort format.\n\nNote that this bug only affects hid_scan_report(), while the main parsing\npass hid_parse_collections() will always bail out when encountering a long\nitem.\n\nSidenote: There are currently no users of data.longdata; maybe we should\njust remove any parsing of long-format descriptors as a follow-up.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: core: fix number/pointer type confusion on long items\n\nWhen fetch_item() is called by hid_scan_report() on an item with\nHID_ITEM_TAG_LONG, it stores a pointer to the item data in\nitem->data.longdata instead of storing a value directly in\nitem->data.{u8/u16/u32}.\n\nWhen item_udata() or item_sdata() encounters such an item, it incorrectly\nassumes that the item is in short format, and therefore returns the lower\npart of a kernel pointer reinterpreted as a number.\n\nWhen a HID device is connected whose descriptor contains a\nHID_GLOBAL_ITEM_TAG_REPORT_SIZE encoded in long format with size=4, this\ncauses the lower half of a kernel pointer to be printed into dmesg as a\nnumber, like this:\n\n    hid (null): invalid report_size 107953555\n\nTo fix it, let item_udata() and item_sdata() verify that the item is in\nshort format.\n\nNote that this bug only affects hid_scan_report(), while the main parsing\npass hid_parse_collections() will always bail out when encountering a long\nitem.\n\nSidenote: There are currently no users of data.longdata; maybe we should\njust remove any parsing of long-format descriptors as a follow-up.","source":"cvelist"}],"published":"2026-09-09T16:13:15.799Z","modified":"2026-10-19T09:17:22.707Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"bed7fe3a936b6bdd84671385951397ca673cf6e7","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"aec2c2ec87d4ec1f098979f68cd81b29f031c8cb","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"634f498ea5d5e8e01f8d9414d4f45eeaf9ee1996","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"abec577de5fc16cd5caae42f97cdcd0983c06d66","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"dd8035dec26e98204d6e4a6e0cee5c4d329b3d7e","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"1fa1591efd417e39e5e164bebea8ca7a3837c469","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"e60159f5ea60254a5c3de4ea4f2f939f0171031b","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"e542edada3f79387c0ac2a528cebf01f4ef47df8","status":"affected"},{"type":"git","introduced":"3dc8fc083dbfeede7b63a0c07581192e97711365","fixed":"28abce951343fcec26e397610868efa4e1395c3f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"5.10.267","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.218","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.185","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.154","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.106","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.47","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.11","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.1","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/bed7fe3a936b6bdd84671385951397ca673cf6e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aec2c2ec87d4ec1f098979f68cd81b29f031c8cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/634f498ea5d5e8e01f8d9414d4f45eeaf9ee1996","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abec577de5fc16cd5caae42f97cdcd0983c06d66","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd8035dec26e98204d6e4a6e0cee5c4d329b3d7e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1fa1591efd417e39e5e164bebea8ca7a3837c469","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e60159f5ea60254a5c3de4ea4f2f939f0171031b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e542edada3f79387c0ac2a528cebf01f4ef47df8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28abce951343fcec26e397610868efa4e1395c3f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80918","url":"https://www.cve.org/CVERecord?id=CVE-2026-80918","licence":"CVE Terms of Use","modified":"2026-10-19T08:45:02.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80918","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80918","licence":"Public domain","modified":"2026-10-19T09:17:22.707Z"}],"updatedAt":"2026-11-25T22:59:37.771Z","epss":{"score":0.00182,"percentile":0.08117,"date":"2026-12-01T12:00:22.000Z"}}