{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-98860",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-98860",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-10-18T15:51:21.403Z",
    "updatedAt": "2026-10-19T09:26:54.770Z",
    "importedAt": "2026-10-24T01:58:41.756Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: bpf: cast size to ssize_t when checking hid_bpf_hw_request\n\nAs reported by Sashiko:\nIf a transport driver encounters a hardware error and returns a negative\nerror code such as -EPIPE, ret is implicitly promoted to size_t when\ncompared against size. This causes the negative error code to evaluate\nas a large positive number, making the (ret > size) condition true.\n\nThis silently converts the hardware error into a success return value\nand copies the unmodified buffer back, which could leave BPF programs\noperating on uninitialized or stale data.\n\nFix this by casting size into ssize_t to return the actual negative\nerror code.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "d6efaa50af62fb0790dd1fd4e7e5506b46312510",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8b85ef0f561039e249c3f883c5280a1449c6dbee"
            },
            {
              "version": "73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "97be6396817bd3b11d06239010d27902940bfaa9"
            },
            {
              "version": "2b658c1c442ec1cd9eec5ead98d68662c40fe645",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f9f808227554b2c116fd07dd2328ecd74ea3f411"
            },
            {
              "version": "2b658c1c442ec1cd9eec5ead98d68662c40fe645",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3afefbfe55c2a8a0c4bdf6f4cc1f773da120027c"
            },
            {
              "version": "eb57dae20fdf6f3069cdc07821fa3bb46de381d7",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "6.12.78",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.12.113"
            },
            {
              "version": "6.18.20",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.18.56"
            },
            {
              "version": "6.19.10",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.20"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "7.0",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "7.0"
            },
            {
              "version": "6.12.113",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.56",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.2.10",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.2.*"
            },
            {
              "version": "7.3",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}