Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97967 Overview
CVE-2026-97967 is a use-after-free vulnerability in the Linux kernel's hwmon subsystem, specifically within the corsair-cpro driver. The flaw occurs when ccp_debugfs_init() registers debugfs files that store a pointer to the devm-allocated ccp structure as their private data. If hwmon_device_register_with_info() fails immediately after this registration, ccp_probe() returns an error without unregistering the debugfs entries. The HID core then frees the ccp structure, but the debugfs files remain accessible. Reading one of them dereferences the freed pointer, triggering memory corruption.
Critical Impact
A local user with access to debugfs can trigger a use-after-free in the kernel by reading residual corsair-cpro debugfs entries after a failed device probe.
Affected Products
- Linux kernel versions containing the corsair-cpro hwmon driver prior to the fix
- Distributions shipping the vulnerable drivers/hwmon/corsair-cpro.c code
- Systems where Corsair Commander Pro hardware triggers the ccp_probe() path
Discovery Timeline
- 2026-09-25 - CVE-2026-97967 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97967
Vulnerability Analysis
The corsair-cpro driver provides hwmon (hardware monitoring) support for the Corsair Commander Pro controller. During device initialization, ccp_probe() calls ccp_debugfs_init() to register debugfs files for exposing diagnostic data. These files hold a pointer to the ccp driver context, which is allocated with the device-managed allocator devm_kzalloc().
The defect appears in the probe error-handling path. When hwmon_device_register_with_info() fails after ccp_debugfs_init() has already run, ccp_probe() returns an error without calling debugfs_remove_recursive(). Because the probe failed, ccp_remove() is never invoked. The HID core subsequently releases the device-managed allocations, freeing the ccp structure, yet the debugfs files remain registered and reachable from userspace.
Any subsequent read() against the stale debugfs entry invokes the show callback, which dereferences the freed ccp pointer. This produces a classic use-after-free condition in kernel context, which can lead to kernel memory disclosure, denial of service, or potentially privilege escalation depending on heap layout.
Root Cause
The root cause is an incomplete probe-failure cleanup path [CWE-416: Use After Free]. The driver registers debugfs resources with a non-managed API but relies on ccp_remove() to tear them down, breaking the invariant that resources registered during probe must be released on every error path.
Attack Vector
Exploitation requires local access and the ability to read files under the debugfs mount, which is typically restricted to root. The attacker must induce or wait for a failed probe of the corsair-cpro driver, then read the orphaned debugfs file to trigger the dereference. The attack surface is limited to systems where the vulnerable driver is loaded and debugfs is mounted.
No verified public exploit code is available for this vulnerability. See the upstream fix for implementation details: Kernel Change Log Entry 1.
Detection Methods for CVE-2026-97967
Indicators of Compromise
- Kernel oops or BUG: KASAN: use-after-free warnings referencing corsair-cpro show callbacks in dmesg
- Unexpected kernel panics correlated with reads of /sys/kernel/debug/corsair-cpro/*
- Probe failure messages from the corsair-cpro driver followed by residual debugfs entries
Detection Strategies
- Enable KASAN (Kernel Address Sanitizer) in test environments to catch use-after-free conditions in the hwmon code path
- Audit loaded kernel modules against the fixed kernel versions published in the upstream stable tree
- Monitor dmesg for hwmon_device_register_with_info failures emitted by the corsair-cpro driver
Monitoring Recommendations
- Collect kernel ring buffer telemetry and alert on KASAN or general protection fault entries from hwmon drivers
- Track access to /sys/kernel/debug paths from non-root processes using auditd rules
- Inventory endpoints with Corsair Commander Pro hardware and prioritize them for patching
How to Mitigate CVE-2026-97967
Immediate Actions Required
- Apply the upstream kernel patches referenced in the stable tree commits listed in the NVD advisory
- Unload the corsair-cpro module (modprobe -r corsair-cpro) on systems that do not require Corsair hardware monitoring
- Restrict debugfs access by ensuring /sys/kernel/debug is mounted with root-only permissions
Patch Information
The upstream fix adds a debugfs_remove_recursive() call on the error path when hwmon_device_register_with_info() fails, ensuring debugfs files are torn down before the ccp structure is freed. Fixes are available in the stable kernel commits 4ee875c4, a5de53b0, ae01aafd, and fdc1bc23. Distribution-specific kernels should pull these commits as backports.
Workarounds
- Blacklist the corsair-cpro module on hosts that do not use Corsair Commander Pro devices
- Disable debugfs by removing the mount from /etc/fstab or booting with debugfs=off where supported
- Ensure debugfs is only mounted with mode=0700 and owned by root to limit read access
# Blacklist the vulnerable driver and remove debugfs read access
echo 'blacklist corsair-cpro' | sudo tee /etc/modprobe.d/blacklist-corsair-cpro.conf
sudo modprobe -r corsair-cpro
sudo mount -o remount,mode=0700 /sys/kernel/debug
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

