CVE-2026-31624 — HID: core: clamp report_size in s32ton() to avoid undefined shift
In the Linux kernel, the following vulnerability has been resolved: HID: core: clamp report_size in s32ton() to avoid undefined shift s32ton() shifts by n-1 where n is the field's report_size, a value that comes directly from a HID device. The HID parser bounds report_size only to <= 256, so a broken HID device can supply a report descriptor with a wide field that triggers shift exponents up to 256 on a 32-bit type when an output report is built via hid_output_field() or hid_set_field(). Commit ec61b41918587 ("HID: core: fix shift-out-of-bounds in hid_report_raw_event") added the same n > 32 clamp to the function snto32(), but s32ton() was never given the same fix as I guess syzbot hadn't figured out how to fuzz a device the same way. Fix this up by just clamping the max value of n, just like snto32() does.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- EPSS 0.2% (30-day exploitation probability)+1
- Technical severity (medium)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
- Documented patch — git.kernel.org (NIST National Vulnerability Database)
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Linux Linux, Linux Linux Kernel).
- Apply the fixed version or the patch documented under Remediation.
- Search available logs for exploit probes, errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
| Vendor | Product | Versions | Status | Source |
|---|---|---|---|---|
| Linux | Linux |
≥ dde5845a529ff753364a6d1aea61180946270bfa and < 76ad02854a30c394e0c076e6e6bed0a388573a94≥ dde5845a529ff753364a6d1aea61180946270bfa and < eb415ddaf25e09ddb8fe5736a70c9de2e6462534≥ dde5845a529ff753364a6d1aea61180946270bfa and < 0ab048dbdb1daacf17d52e9252297eb6e1298e49≥ dde5845a529ff753364a6d1aea61180946270bfa and < 932ae5309e53561197aa7d1606c7cf63af10e24f≥ dde5845a529ff753364a6d1aea61180946270bfa and < 58386f00af710922cafb0fb69211497beddfaa95≥ dde5845a529ff753364a6d1aea61180946270bfa and < 8a8333237f1f5caab8d4c3d2c2e7578c4263a97f≥ dde5845a529ff753364a6d1aea61180946270bfa and < ea363a34086ddb4231adc581a7f36c39ec154bfc≥ dde5845a529ff753364a6d1aea61180946270bfa and < 97014719bb8fccb1ffcbbc299e84b1f11b114195 and 2 more≥ dde5845a529ff753364a6d1aea61180946270bfa and < 69c02ffde6ed4d535fa4e693a9e572729cad3d0dversion 2.6.20 |
Vulnerable | CVE Program (cve.org) e CISA ADP |
| Linux | Linux Kernel | ≥ 2.6.20.1 and < 6.6.136≥ 6.7 and < 6.12.83≥ 6.13 and < 6.18.24≥ 6.19 and < 6.19.14≥ 7.0 and < 7.0.1version 2.6.20 | Vulnerable | NIST National Vulnerability Database |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 5.5 | CVSS 3.1 | Medium | 1.8 | 3.6 | nvd@nist.gov via NIST National Vulnerability Database |
| 5.5 | CVSS 3.1 | Medium | — | — | GitHub, Inc. via GitHub Security Advisories |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (score shown at the top: nvd@nist.gov) EPSS over time FIRST
Oct 13, 2026 → Oct 15, 2026 · 3 reading(s) · max 0.17%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Local/physical vector: focus on endpoint telemetry (EDR) from affected hosts.
Timeline
What happened to this CVE, newest first.
- 2026
- Affected products added · linux/linux
- Record published
- Fix documented
- CVSS changed · 5.5
- Source status changed · → Modified
- Record created in this database
- CVE published
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 14, 2026 – Oct 14, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
12 on the record
- git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195
- git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f
- git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f
- git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d
- git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc
- git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95
- git.kernel.org/stable/c/0ab048dbdb1daacf17d52e9252297eb6e1298e49
- git.kernel.org/stable/c/76ad02854a30c394e0c076e6e6bed0a388573a94
- nvd.nist.gov/vuln/detail/CVE-2026-31624
- github.com/advisories/GHSA-7r46-pv4v-9gxj
- cert-portal.siemens.com/productcert/html/ssa-784472.html
- git.kernel.org/stable/c/eb415ddaf25e09ddb8fe5736a70c9de2e6462534
Elsewhere on this site
Related CVEs (same products)
- Critical CVE-2026-99999 ipv4: validate checksum_start before completing checksum 17h
- Unknown CVE-2026-98432 ipv4: free inet_opt and ireq_opt after an RCU grace period 17h
- Unknown CVE-2026-98428 ALSA: usb: 6fire: Avoid embedded URBs 1d
- Unknown CVE-2026-98431 RDMA/uverbs: Fix mmap_lock/disassociation_lock circular dependency 1d
- Unknown CVE-2026-98430 RDMA/efa: Keep admin queues alive while IRQ is registered 1d
- Unknown CVE-2026-98429 RDMA/efa: Keep EQ resources alive while IRQ is registered 1d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No CISA SSVC assessment.
- No CWE classification.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2026-31624 is "HID: core: clamp report_size in s32ton() to avoid undefined shift", rated Medium. It affects Linux (Linux); versions are in the scope table. It is not in CISA KEV, which does not rule out exploitation. CVSS 5.5 describes technical severity. EPSS 0.17% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.