{
  "id": "CVE-2026-31401",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31401",
  "published_at": "2026-04-03T15:16:04.903Z",
  "title": "HID: bpf: prevent buffer overflow in hid_hw_request",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-120",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, \u003c d6efaa50af62fb0790dd1fd4e7e5506b46312510",
          "\u003e= 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, \u003c 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1",
          "\u003e= 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, \u003c eb57dae20fdf6f3069cdc07821fa3bb46de381d7",
          "\u003e= 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, \u003c 2b658c1c442ec1cd9eec5ead98d68662c40fe645"
        ],
        "fixed_in": [
          "d6efaa50af62fb0790dd1fd4e7e5506b46312510",
          "73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1",
          "eb57dae20fdf6f3069cdc07821fa3bb46de381d7",
          "2b658c1c442ec1cd9eec5ead98d68662c40fe645"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.78",
          "6.18.20",
          "6.19.10",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to d6efaa50af62fb0790dd1fd4e7e5506b46312510 or 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 or eb57dae20fdf6f3069cdc07821fa3bb46de381d7 or 2b658c1c442ec1cd9eec5ead98d68662c40fe645 or later.",
      "Upgrade Linux to 0 or 6.12.78 or 6.18.20 or 6.19.10 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
