CVE Database›Document archive›CVE-2026-31624

CVE-2026-31624

kernel: HID: core: clamp report_size in s32ton() to avoid undefined shift

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · April 24, 2026

Updated · June 28, 2026

Description

A flaw was found in the Linux kernel's Human Interface Device (HID) core. A malicious or malformed HID device could provide a specially crafted report descriptor with an overly large report_size value. This could lead to an undefined shift operation within the s32ton() function when processing output reports. This vulnerability may result in system instability or a denial of service (DoS).

Statement

HID s32ton() now clamps report_size so pathological descriptors cannot provoke undefined left-shift behavior. Red Hat treats this as local USB/HID attack surface hardening. Core HID is not practically unloadable; patch kernels.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-1335 · Incorrect Bitwise Shift of Integer