CVE-2026-80767
NoneCVSS
—
EPSS
0.2%
Published
Sep 4, 2026
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's handling of certain sensor devices could let a logged-in user crash the system or gain higher privileges.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free in the HID sensor custom driver where enable_sensor_store dereferences power_state and report_state pointers into fields that may already be freed on concurrent access or during module removal.
Why it matters to the business
Local attackers on affected Linux systems can trigger kernel crashes or potentially escalate privileges, leading to system instability or full host compromise on multi-user or containerized environments.
How an attack unfolds
An attacker with local access writes to the enable_sensor sysfs attribute while the driver is unloading or before fields are initialized, causing the kernel to dereference freed memory through the state pointers.
How to fix it
Update to a kernel containing the fix that initializes field attributes before exposing enable_sensor and removes the attribute before freeing fields; apply the latest stable kernel for your distribution.
How to confirm the fix worked
Confirm the sysfs attribute creation order matches the fixed sequence in the sensor custom driver source and that the remove path deletes enable_sensor prior to field deallocation.
Typical attack path
- Obtain local shell access on a vulnerable kernel
- Locate the HID sensor sysfs enable_sensor attribute
- Trigger concurrent write during module removal or initialization race
- Cause use-after-free dereference leading to crash or controlled memory access
How to detect it
Review kernel logs for use-after-free warnings or oops in the hid-sensor-custom module, and inspect sysfs interaction timing around module load/unload events.
What your security team should do
- Prioritize kernel updates on systems exposing HID sensor sysfs interfaces
- Monitor for local privilege-escalation attempts targeting sensor drivers
- Restrict untrusted local user access to sysfs HID entries until patched
The record
In the Linux kernel, the following vulnerability has been resolved: HID: sensor: custom: Fix use-after-free in enable_sensor enable_sensor_store() can call set_power_report_state(), which dereferences sensor_inst->power_state and sensor_inst->report_state. These pointers refer to entries in sensor_inst->fields. Create the field attributes before exposing the enable_sensor sysfs attribute, so enable_sensor cannot be accessed before the state it depends on has been initialized. On remove, delete enable_sensor before freeing the field attributes, so a concurrent sysfs write cannot dereference freed memory through power_state or report_state.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|