Description
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.
Published: 2026-09-04
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel HID sensor subsystem contains a use‑after‑free vulnerability in enable_sensor_store(). This function may call set_power_report_state() and dereference power_state and report_state pointers that refer to entries in sensor_inst->fields. If enable_sensor is accessed before these fields are initialized or after they are freed, the dereference may read or write corrupted memory. In a kernel context such memory corruption can allow a local attacker to corrupt kernel data or execute arbitrary code, resulting in privilege escalation or a system crash.

Affected Systems

The vulnerability affects all Linux kernels that include the custom HID sensor driver and expose the enable_sensor sysfs attribute. No specific version range is provided, but any kernel where this attribute exists is potentially impacted until the fix is applied.

Risk and Exploitability

The CVSS score is not reported, EPSS is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local interaction with the sysfs interface; an attacker with write permission to /sys/.../enable_sensor can trigger the use‑after‑free before proper initialization. Kernel memory corruption may lead to full privilege escalation. While exploitation may require local access, the severity of the potential impact warrants a prompt patch.

Generated by OpenCVE AI on September 4, 2026 at 17:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the commit resolving the enable_sensor use‑after‑free condition.
  • If an update cannot be applied immediately, remove or disable the enable_sensor sysfs attribute from the custom sensor driver to prevent its manipulation.
  • Ensure that only trusted processes have write access to the sensor subsystem’s sysfs entries so that unprivileged users cannot trigger the vulnerability.

Generated by OpenCVE AI on September 4, 2026 at 17:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 04 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title HID: sensor: custom: Fix use-after-free in enable_sensor
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-04T15:12:39.363Z

Reserved: 2026-08-26T14:34:25.791Z

Link: CVE-2026-80767

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-04T16:18:02.080

Modified: 2026-09-04T16:18:02.080

Link: CVE-2026-80767

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T17:30:17Z

Weaknesses