Skip to content
CVE PROGRAM SOURCE RECORDUnscored

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < c2be74b0272b7f8f60739e7aaf0d36c0befe7136affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < d37ff4e3635c18af907f25712596f8ccec323751affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 2ce90cfc6646a32100feabd7110ae0352aa01167affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 244a1cb638370490ed74a8adb5cc3f1212602e32affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 8406d4b69d48bc72fb6f8812a65a17a1f903440baffected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < c0757f10610542d763bd0bf9bda455b78afeef0baffected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 7bb79a3cf45e0805aef74457e19deb77e18cf196affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < ad8fb82b04422f49530d2aa2753cc81d1c60102caffected

Linux Linux

Default version status: affected

  • 4.1affected
  • 0 to < 4.1unaffected
  • 5.10.267 to ≤ 5.10.*unaffected
  • 5.15.218 to ≤ 5.15.*unaffected
  • 6.1.185 to ≤ 6.1.*unaffected
  • 6.6.154 to ≤ 6.6.*unaffected
  • 6.12.106 to ≤ 6.12.*unaffected
  • 6.18.47 to ≤ 6.18.*unaffected
  • 7.1.11 to ≤ 7.1.*unaffected
  • 7.2.1 to ≤ 7.2.*unaffected
  • 7.3 to ≤ *unaffected

References