CVE-2022-41850
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-41850 affects the Linux kernel through version 5.19.12, specifically in the roccat_report_event function within drivers/hid/hid-roccat.c. The vulnerability was discovered on September 30, 2022, and involves a race condition that leads to a use-after-free vulnerability in situations where a report is received while copying a report->value is in progress (MITRE CVE).

Technical details

The vulnerability exists in the roccat_report_event function which handles the registration of roccat-related reports in struct roccat_device. The issue occurs because there was no lock protection when performing kfree() operations on saved reports. When more reports are received than the ROCCAT_CBUF_SIZE value, the driver frees the saved report from cbuf[0] and allocates a new report. This creates a race condition where kfree() can be executed while reading the saved report, potentially leading to a use-after-free condition (Kernel Commit).

Impact

A local user with access to a Roccat device could exploit this vulnerability to cause a denial of service (system crash or memory corruption) or potentially execute arbitrary code. The vulnerability is particularly relevant for users who have access to Roccat devices for screen display of profile or DPI settings (Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed by adding mutex locks around the critical section in roccat_report_event(). The fix involves using device->cbuf_lock to protect the report handling operations. Various Linux distributions have released patches, including Ubuntu and Debian. For Debian 10 buster, the fix was included in version 5.10.158-2~deb10u1 (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management