{"id":"CVE-2026-80767","title":"HID: sensor: custom: Fix use-after-free in enable_sensor","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix use-after-free in enable_sensor\n\nenable_sensor_store() can call set_power_report_state(), which\ndereferences sensor_inst->power_state and senso…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < c2be74b0272b7f8f60739e7aaf0d36c0befe7136","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d37ff4e3635c18af907f25712596f8ccec323751","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 2ce90cfc6646a32100feabd7110ae0352aa01167","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 244a1cb638370490ed74a8adb5cc3f1212602e32","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 8406d4b69d48bc72fb6f8812a65a17a1f903440b","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < c0757f10610542d763bd0bf9bda455b78afeef0b","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 7bb79a3cf45e0805aef74457e19deb77e18cf196","Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < ad8fb82b04422f49530d2aa2753cc81d1c60102c","Linux 4.1"],"published":"2026-09-04","updated":"2026-10-19","sourceUpdated":"2026-10-19T08:43:23.786Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-80767","references":[{"url":"https://git.kernel.org/stable/c/c2be74b0272b7f8f60739e7aaf0d36c0befe7136"},{"url":"https://git.kernel.org/stable/c/d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855"},{"url":"https://git.kernel.org/stable/c/d37ff4e3635c18af907f25712596f8ccec323751"},{"url":"https://git.kernel.org/stable/c/2ce90cfc6646a32100feabd7110ae0352aa01167"},{"url":"https://git.kernel.org/stable/c/244a1cb638370490ed74a8adb5cc3f1212602e32"},{"url":"https://git.kernel.org/stable/c/8406d4b69d48bc72fb6f8812a65a17a1f903440b"},{"url":"https://git.kernel.org/stable/c/c0757f10610542d763bd0bf9bda455b78afeef0b"},{"url":"https://git.kernel.org/stable/c/7bb79a3cf45e0805aef74457e19deb77e18cf196"},{"url":"https://git.kernel.org/stable/c/ad8fb82b04422f49530d2aa2753cc81d1c60102c"}],"tags":["cve.org"],"epss":0.00195,"epssPercentile":0.08584,"ingestedAt":"2026-10-19T10:20:54.952Z","slug":"CVE-2026-80767","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix use-after-free in enable_sensor\n\nenable_sensor_store() can call set_power_report_state(), which\ndereferences sensor_inst->power_state and sensor_inst->report_state.\nThese pointers refer to entries in sensor_inst->fields.\n\nCreate the field attributes before exposing the enable_sensor sysfs\nattribute, so enable_sensor cannot be accessed before the state it\ndepends on has been initialized.\n\nOn remove, delete enable_sensor before freeing the field attributes,\nso a concurrent sysfs write cannot dereference freed memory through\npower_state or report_state.\n\n## Affected\n\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < c2be74b0272b7f8f60739e7aaf0d36c0befe7136`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d37ff4e3635c18af907f25712596f8ccec323751`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 2ce90cfc6646a32100feabd7110ae0352aa01167`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 244a1cb638370490ed74a8adb5cc3f1212602e32`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 8406d4b69d48bc72fb6f8812a65a17a1f903440b`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < c0757f10610542d763bd0bf9bda455b78afeef0b`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 7bb79a3cf45e0805aef74457e19deb77e18cf196`\n- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < ad8fb82b04422f49530d2aa2753cc81d1c60102c`\n- `Linux 4.1`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}