CVE-2023-25012
Linux Kernel vulnerability analysis and mitigation

Overview

The Linux kernel through 6.1.9 contains a Use-After-Free vulnerability (CVE-2023-25012) in the bigben_remove function in drivers/hid/hid-bigbenff.c. The vulnerability can be triggered via a crafted USB device because the LED controllers remain registered for too long. This vulnerability was discovered and reported by Pietro Borrello in January 2023 (OSS Security).

Technical details

The vulnerability occurs due to a race condition where the LED controller bigbensetled() may schedule a worker after the device structure has been freed during device removal. The workstruct is embedded in struct bigbendevice, and when the device is removed, struct bigben_device is freed while the LED controllers are still registered. This leads to a use-after-free condition when accessing the freed memory (Kernel Commit).

Impact

An attacker able to insert and remove USB devices can exploit this vulnerability to cause a denial of service (system crash or memory corruption) or potentially execute arbitrary code in the kernel context (Debian Security).

Mitigation and workarounds

The issue has been fixed through a series of patches that implement proper synchronization using spinlocks and deregister LED controllers before device removal. The fixes include using spinlock to protect concurrent accesses and safely schedule workers. The patches have been merged into the mainline kernel (Kernel Commit, Kernel Commit).

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-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

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