CVE-2026-31624
HID: core: clamp report_size in s32ton() to avoid undefined shift
Description
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.
INFO
Published Date :
April 24, 2026, 3:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Apply the Linux kernel commit ec61b41918587.
- Update the Linux kernel to a patched version.
- Clamp the max value of n in s32ton().
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31624.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31624 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31624
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31624 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31624 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: HID: core: limitar report_size en s32ton() para evitar un desplazamiento indefinido s32ton() desplaza por n-1 donde n es el report_size del campo, un valor que proviene directamente de un dispositivo HID. El analizador HID limita report_size solo a menor o igual que 256, por lo que un dispositivo HID defectuoso puede proporcionar un descriptor de informe con un campo amplio que activa exponentes de desplazamiento de hasta 256 en un tipo de 32 bits cuando se construye un informe de salida a través de hid_output_field() o hid_set_field(). El commit ec61b41918587 (’HID: core: corregir desplazamiento fuera de límites en hid_report_raw_event’) añadió la misma limitación n mayor que 32 a la función snto32(), pero s32ton() nunca recibió la misma corrección ya que supongo que syzbot no había descubierto cómo fuzzear un dispositivo de la misma manera. Corregir esto simplemente limitando el valor máximo de n, tal como lo hace snto32(). -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 06, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-31624', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-11-06T15:22:55.150218Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/0ab048dbdb1daacf17d52e9252297eb6e1298e49 Added Reference https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95 Added Reference https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d Added Reference https://git.kernel.org/stable/c/76ad02854a30c394e0c076e6e6bed0a388573a94 Added Reference https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f Added Reference https://git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f Added Reference https://git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195 Added Reference https://git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc Added Reference https://git.kernel.org/stable/c/eb415ddaf25e09ddb8fe5736a70c9de2e6462534 Removed Reference https://git.kernel.org/stable/c/0ab048dbdb1daacf17d52e9252297eb6e1298e49 Removed Reference https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95 Removed Reference https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d Removed Reference https://git.kernel.org/stable/c/76ad02854a30c394e0c076e6e6bed0a388573a94 Removed Reference https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f Removed Reference https://git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f Removed Reference https://git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195 Removed Reference https://git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc Removed Reference https://git.kernel.org/stable/c/eb415ddaf25e09ddb8fe5736a70c9de2e6462534 Removed Reference Type https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d Types: Patch Removed Reference Type https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f Types: Patch Removed Reference Type https://git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f Types: Patch Removed Reference Type https://git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc Types: Patch -
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Oct. 15, 2026
Action Type Old Value New Value Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/31xxx/CVE-2026-31624.json">CVE-2026-31624</a> Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '76ad02854a30c394e0c076e6e6bed0a388573a94', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': 'eb415ddaf25e09ddb8fe5736a70c9de2e6462534', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '0ab048dbdb1daacf17d52e9252297eb6e1298e49', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '932ae5309e53561197aa7d1606c7cf63af10e24f', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '58386f00af710922cafb0fb69211497beddfaa95', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '8a8333237f1f5caab8d4c3d2c2e7578c4263a97f', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': 'ea363a34086ddb4231adc581a7f36c39ec154bfc', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '97014719bb8fccb1ffcbbc299e84b1f11b114195', 'versionType': 'git'}, {'status': 'affected', 'version': 'dde5845a529ff753364a6d1aea61180946270bfa', 'lessThan': '69c02ffde6ed4d535fa4e693a9e572729cad3d0d', 'versionType': 'git'}], 'programFiles': ['drivers/hid/hid-core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2.6.20'}, {'status': 'unaffected', 'version': '0', 'lessThan': '2.6.20', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.258', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.136', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.83', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.24', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.14', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0.1', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hid/hid-core.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 01, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/0ab048dbdb1daacf17d52e9252297eb6e1298e49 Added Reference https://git.kernel.org/stable/c/76ad02854a30c394e0c076e6e6bed0a388573a94 Added Reference https://git.kernel.org/stable/c/eb415ddaf25e09ddb8fe5736a70c9de2e6462534 -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.24 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 7.0 up to (excluding) 7.0.1 *cpe:2.3:o:linux:linux_kernel:2.6.20:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.83 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.20.1 up to (excluding) 6.6.136 Added Reference Type kernel.org: https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 27, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/932ae5309e53561197aa7d1606c7cf63af10e24f -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 27, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/69c02ffde6ed4d535fa4e693a9e572729cad3d0d -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 24, 2026
Action Type Old Value New Value Added Description 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. Added Reference https://git.kernel.org/stable/c/58386f00af710922cafb0fb69211497beddfaa95 Added Reference https://git.kernel.org/stable/c/8a8333237f1f5caab8d4c3d2c2e7578c4263a97f Added Reference https://git.kernel.org/stable/c/97014719bb8fccb1ffcbbc299e84b1f11b114195 Added Reference https://git.kernel.org/stable/c/ea363a34086ddb4231adc581a7f36c39ec154bfc