{
  "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-31624",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31624",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-04-24T14:42:41.655Z",
    "updatedAt": "2026-10-15T01:17:16.412Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "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: core: clamp report_size in s32ton() to avoid undefined shift",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: core: clamp report_size in s32ton() to avoid undefined shift\n\ns32ton() shifts by n-1 where n is the field's report_size, a value that\ncomes directly from a HID device.  The HID parser bounds report_size\nonly to <= 256, so a broken HID device can supply a report descriptor\nwith a wide field that triggers shift exponents up to 256 on a 32-bit\ntype when an output report is built via hid_output_field() or\nhid_set_field().\n\nCommit ec61b41918587 (\"HID: core: fix shift-out-of-bounds in\nhid_report_raw_event\") added the same n > 32 clamp to the function\nsnto32(), but s32ton() was never given the same fix as I guess syzbot\nhadn't figured out how to fuzz a device the same way.\n\nFix this up by just clamping the max value of n, just like snto32()\ndoes.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "76ad02854a30c394e0c076e6e6bed0a388573a94"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "eb415ddaf25e09ddb8fe5736a70c9de2e6462534"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0ab048dbdb1daacf17d52e9252297eb6e1298e49"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "932ae5309e53561197aa7d1606c7cf63af10e24f"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "58386f00af710922cafb0fb69211497beddfaa95"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8a8333237f1f5caab8d4c3d2c2e7578c4263a97f"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ea363a34086ddb4231adc581a7f36c39ec154bfc"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "97014719bb8fccb1ffcbbc299e84b1f11b114195"
            },
            {
              "version": "dde5845a529ff753364a6d1aea61180946270bfa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "69c02ffde6ed4d535fa4e693a9e572729cad3d0d"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.20",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.20"
            },
            {
              "version": "5.10.258",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.209",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.175",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.136",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.83",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.24",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19.14",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.19.*"
            },
            {
              "version": "7.0.1",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.0.*"
            },
            {
              "version": "7.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}