CVE-2026-80767
HID: sensor: custom: Fix use-after-free in enable_sensor
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.
INFO
Published Date :
Sept. 4, 2026, 4:18 p.m.
Last Modified :
Sept. 4, 2026, 4:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Ensure fields are created before exposing the sysfs attribute.
- Delete the sysfs attribute before freeing fields on remove.
- Update the Linux kernel to include the fix.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-80767.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-80767 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-80767
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-80767 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-80767 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 04, 2026
Action Type Old Value New Value 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/80xxx/CVE-2026-80767.json">CVE-2026-80767</a> Added Reference https://git.kernel.org/stable/c/244a1cb638370490ed74a8adb5cc3f1212602e32 Added Reference https://git.kernel.org/stable/c/2ce90cfc6646a32100feabd7110ae0352aa01167 Added Reference https://git.kernel.org/stable/c/7bb79a3cf45e0805aef74457e19deb77e18cf196 Added Reference https://git.kernel.org/stable/c/8406d4b69d48bc72fb6f8812a65a17a1f903440b Added Reference https://git.kernel.org/stable/c/ad8fb82b04422f49530d2aa2753cc81d1c60102c Added Reference https://git.kernel.org/stable/c/c0757f10610542d763bd0bf9bda455b78afeef0b Added Reference https://git.kernel.org/stable/c/c2be74b0272b7f8f60739e7aaf0d36c0befe7136 Added Reference https://git.kernel.org/stable/c/d37ff4e3635c18af907f25712596f8ccec323751 Added Reference https://git.kernel.org/stable/c/d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855