{
  "id": "CVE-2025-38103",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38103",
  "published_at": "2025-07-03T08:35:13.941Z",
  "title": "HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()\n\nUpdate struct hid_descriptor to better reflect the mandatory and\noptional parts of the HID Descriptor as per USB HID 1.11 specification.\nNote: the kernel currently does not parse any optional HID class\ndescriptors, only the mandatory report descriptor.\n\nUpdate all references to member element desc[0] to rpt_desc.\n\nAdd test to verify bLength and bNumDescriptors values are valid.\n\nReplace the for loop with direct access to the mandatory HID class\ndescriptor member for the report descriptor. This eliminates the\npossibility of getting an out-of-bounds fault.\n\nAdd a warning message if the HID descriptor contains any unsupported\noptional HID class descriptors.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:4.14:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:4.14:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:4.14:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:4.14:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:4.14:rc8:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 7a6d6b68db128da2078ccd9a751dfa3f75c9cf5b",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 41827a2dbdd7880df9881506dee13bc88d4230bb",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 1df80d748f984290c895e843401824215dcfbfb0",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c a8f842534807985d3a676006d140541b87044345",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 4fa7831cf0ac71a0a345369d1a6084f2b096e55e",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 74388368927e9c52a69524af5bbd6c55eb4690de",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c 485e1b741eb838cbe1d6b0e81e5ab62ae6c095cf",
          "\u003e= f043bfc98c193c284e2cd768fefabe18ac2fed9b, \u003c fe7f7ac8e0c708446ff017453add769ffc15deed",
          "99de0781e0de7c866f762b931351c2a501c3074f",
          "8d675aa967d3927ac100f7af48f2a2af8a041d2d",
          "f4cf5d75416ae3d79e03179fe6f4b9f1231ae42c",
          "439f76690d7d5dd212ea7bebc1f2fa077e3d645d",
          "2929cb995378205bceda86d6fd3cbc22e522f97f",
          "57265cddde308292af881ce634a5378dd4e25900",
          "984154e7eef1f9e543dabd7422cfc99015778732",
          "\u003e= 3.2.95, \u003c 3.3",
          "\u003e= 3.16.50, \u003c 3.17",
          "\u003e= 3.18.76, \u003c 3.19",
          "\u003e= 4.1.46, \u003c 4.2",
          "\u003e= 4.4.93, \u003c 4.5",
          "\u003e= 4.9.57, \u003c 4.10",
          "\u003e= 4.13.8, \u003c 4.14"
        ],
        "fixed_in": [
          "7a6d6b68db128da2078ccd9a751dfa3f75c9cf5b",
          "41827a2dbdd7880df9881506dee13bc88d4230bb",
          "1df80d748f984290c895e843401824215dcfbfb0",
          "a8f842534807985d3a676006d140541b87044345",
          "4fa7831cf0ac71a0a345369d1a6084f2b096e55e",
          "74388368927e9c52a69524af5bbd6c55eb4690de",
          "485e1b741eb838cbe1d6b0e81e5ab62ae6c095cf",
          "fe7f7ac8e0c708446ff017453add769ffc15deed",
          "3.3",
          "3.17",
          "3.19",
          "4.2",
          "4.5",
          "4.10",
          "4.14"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.14"
        ],
        "fixed_in": [
          "0",
          "5.4.295",
          "5.10.239",
          "5.15.186",
          "6.1.142",
          "6.6.94",
          "6.12.34",
          "6.15.3",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 7a6d6b68db128da2078ccd9a751dfa3f75c9cf5b or 41827a2dbdd7880df9881506dee13bc88d4230bb or 1df80d748f984290c895e843401824215dcfbfb0 or a8f842534807985d3a676006d140541b87044345 or 4fa7831cf0ac71a0a345369d1a6084f2b096e55e or 74388368927e9c52a69524af5bbd6c55eb4690de or 485e1b741eb838cbe1d6b0e81e5ab62ae6c095cf or fe7f7ac8e0c708446ff017453add769ffc15deed or 3.3 or 3.17 or 3.19 or 4.2 or 4.5 or 4.10 or 4.14 or later.",
      "Upgrade Linux to 0 or 5.4.295 or 5.10.239 or 5.15.186 or 6.1.142 or 6.6.94 or 6.12.34 or 6.15.3 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
