Skip to main content

Linux Kernel EUVDEUVD-2026-25517

| CVE-2026-31624 MEDIUM
2026-04-24 Linux GHSA-7r46-pv4v-9gxj
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Insert malicious HID device
  2. Delivery
    Kernel loads HID driver
  3. Exploit
    Driver processes output report
  4. Install
    s32ton() receives oversized report_size
  5. C2
    Undefined shift executed
  6. Execute
    Kernel panic
  7. Impact
    Denial of service

Vulnerability Assessment

Exploitation Conditions

The vulnerability requires: (1) local system access with at minimum user-level privileges (PR:L per CVSS), (2) ability to present a malicious HID device to the kernel, either physically via USB hotplug or logically via privileged HID driver insertion, (3) the kernel to process an output report for the malicious device (hid_output_field or hid_set_field must be invoked), and (4) a kernel version prior to the patched releases (6.12.83, 6.18.24, 6.19.14, 7.0.1). The attack does NOT require network access, does NOT require root privileges (user-level sufficient), and does NOT require user interaction beyond device insertion. Non-default configurations that increase risk: systems with USB hotplugging enabled, systems permitting unprivileged kernel module loading, shared systems or kiosks with untrusted physical access. Limiting factors: requires local presence and HID subsystem must be active and processing device reports.

Impact

Real-world risk is moderate but limited by attack prerequisites. CVSS 5.5 accurately reflects the threat: local-only access (AV:L), low complexity (AC:L), requires user-level privileges (PR:L) to trigger via HID device interaction, no scope violation, and direct availability impact (A:H). EPSS score of 0.02% (5th percentile) indicates low probability of widespread automated exploitation, likely because weaponizing this requires either physical HID device manipulation or kernel module insertion capability. The vulnerability is NOT actively exploited (no CISA KEV status), no public POC identified, yet the fix is already released across multiple stable branches (6.12.83, 6.18.24, 6.19.14, 7.0.1), suggesting this was a proactive hardening fix rather than response to active threats. The limiting factor is that exploitation requires local system access and ability to present a malicious HID device or load a malicious HID driver - typical users cannot remotely trigger this. However, in environments with USB device hotplugging enabled and untrusted physical access (kiosks, shared lab systems), or where unprivileged users can load HID modules, risk escalates significantly.

Exploit ScenarioDerived

An attacker with local system access and ability to present a custom HID device (via USB on a shared system, or via loadable kernel module if unprivileged module loading is permitted) crafts a malicious HID report descriptor with a report_size field set to 256. When the kernel's HID driver processes an output report for this device via hid_output_field() or hid_set_field(), the s32ton() function attempts to shift a 32-bit integer by 255 positions, triggering undefined behavior that typically causes a kernel crash (panic), resulting in denial of service. No code execution is achieved, but system availability is compromised.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

Shift-out-of-bounds vulnerability in Linux kernel HID core driver allows local authenticated attackers to cause denial of service via crafted HID device report descriptors with oversized fields that trigger undefined bit-shift operations in the s32ton() function. A malicious or malfunctioning HID device can supply a report_size value up to 256, causing shifts on 32-bit integers with exponents exceeding safe limits, crashing the kernel or triggering undefined behavior. CVSS 5.5 reflects local-only attack vector with low complexity and requirement for user/driver privileges to process HID output reports.

RemediationAI

Upgrade to patched Linux kernel versions: 6.12.83 or later, 6.18.24 or later, 6.19.14 or later, or 7.0.1 or later, depending on your baseline kernel series. Apply the fix by pulling the stable commits from kernel.org (referenced in git commit links). For systems unable to immediately upgrade, disable or restrict HID device hotplugging via BIOS/UEFI settings if USB insertion is not required, and audit kernel module loading permissions to prevent unprivileged users from loading malicious HID drivers. As a temporary workaround on systems with untrusted physical access, disable the HID subsystem entirely via kernel boot parameter hid=off if not needed, though this will disable all connected keyboards, mice, and gamepads. Verify kernel version post-patch with uname -r to confirm the fix is applied.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <58386f00af710922cafb0fb69211497beddfaa95
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <97014719bb8fccb1ffcbbc299e84b1f11b114195
Linux patch: 6.18.24
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ea363a34086ddb4231adc581a7f36c39ec154bfc
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8a8333237f1f5caab8d4c3d2c2e7578c4263a97f
Linux patch: 7.0.1
Linux patch: 6.19.14

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the Linux kernel's HID (Human Interface Device) core driver, specifically in the s32ton() function used to convert 32-bit signed integers to variable-width field values when building HID output reports. The HID parser validates report_size only to a maximum of 256 bytes, but s32ton() performs a bit shift of n-1 where n is the report_size without clamping for 32-bit integer overflow. When report_size > 33 on 32-bit systems (or exceeds the integer width), the shift operation becomes undefined behavior per C standards. The related function snto32() had been fixed previously via commit ec61b41918587 to clamp n > 32, but s32ton() lacked the same protection. This is a bounds-checking error (shift-out-of-bounds) triggered by untrusted HID descriptor data during hid_output_field() or hid_set_field() operations.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Apr 28, 2026 - 14:07 NVD
5.5 (MEDIUM)
Patch released
Apr 28, 2026 - 14:02 nvd
Patch available
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
MEDIUM 5.5

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy