CVE Catalog

CVE-2026-80767

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel, the HID sensor custom driver has a use-after-free vulnerability in enable_sensor. Field attributes are created after exposing the enable_sensor sysfs attribute, and on removal enable_sensor is deleted after freeing the field attributes.

Risk Assessment

A concurrent sysfs write could lead to dereferencing freed memory, potentially causing a system crash or privilege escalation.

Recommendation

Apply the Linux kernel update containing the fix that changes the order of initialization and removal of attributes.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS