HID: sensor: custom: Fix use-after-free in enable_sensor (Linux Linux)

CVE-2026-80767
Not available

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < c2be74b0272b7f8f60739e7aaf0d36c0befe7136 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d37ff4e3635c18af907f25712596f8ccec323751 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 2ce90cfc6646a32100feabd7110ae0352aa01167 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 244a1cb638370490ed74a8adb5cc3f1212602e32 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 8406d4b69d48bc72fb6f8812a65a17a1f903440b
Linux · Linuxaffected 4.1 ; unaffected 0 < 4.1 ; unaffected 5.10.267 ≤ 5.10.* ; unaffected 5.15.218 ≤ 5.15.* ; unaffected 6.1.185 ≤ 6.1.* ; unaffected 6.6.154 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD