HID: roccat: free buffered reports when destroying device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 206f5f2fcb5ff5bb0c60f9e9189937f3ca03e378 · < da00eac19feef209c9591e48c860afc2014603be| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: roccat: free buffered reports when destroying device
roccat_report_event() duplicates each report with kmemdup() and stores the allocation in a circular-buffer slot. The allocation is released only when that slot is reused.
The device destruction paths free struct roccat_device without releasing reports still stored in cbuf[]. This makes those allocations unreachable and leaks up to ROCCAT_CBUF_SIZE report buffers per device.
Add a small destructor that frees every buffered report before freeing the device, and use it in both paths that can destroy a registered device.
From the CVE record · Linux
The Linux kernel’s HID roccat driver does not free buffered reports when a registered device is destroyed, leaking up to ROCCAT_CBUF_SIZE report buffers per device. The input does not specify whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels with the HID roccat driver should check their versions; affected versions are not specified.