{"id":"CVE-2026-80767","aliases":["CVE-2026-80767"],"related":[],"kind":"vulnerability","state":"published","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 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.","source":"cvelist"}],"published":"2026-09-04T15:12:39.363Z","modified":"2026-10-19T09:17:10.757Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"c2be74b0272b7f8f60739e7aaf0d36c0befe7136","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"d37ff4e3635c18af907f25712596f8ccec323751","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"2ce90cfc6646a32100feabd7110ae0352aa01167","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"244a1cb638370490ed74a8adb5cc3f1212602e32","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"8406d4b69d48bc72fb6f8812a65a17a1f903440b","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"c0757f10610542d763bd0bf9bda455b78afeef0b","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"7bb79a3cf45e0805aef74457e19deb77e18cf196","status":"affected"},{"type":"git","introduced":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","fixed":"ad8fb82b04422f49530d2aa2753cc81d1c60102c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"5.10.267","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.218","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.185","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.154","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.106","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.47","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.11","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.1","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c2be74b0272b7f8f60739e7aaf0d36c0befe7136","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d37ff4e3635c18af907f25712596f8ccec323751","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ce90cfc6646a32100feabd7110ae0352aa01167","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/244a1cb638370490ed74a8adb5cc3f1212602e32","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8406d4b69d48bc72fb6f8812a65a17a1f903440b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0757f10610542d763bd0bf9bda455b78afeef0b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7bb79a3cf45e0805aef74457e19deb77e18cf196","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad8fb82b04422f49530d2aa2753cc81d1c60102c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80767","url":"https://www.cve.org/CVERecord?id=CVE-2026-80767","licence":"CVE Terms of Use","modified":"2026-10-19T08:43:23.786Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80767","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80767","licence":"Public domain","modified":"2026-10-19T09:17:10.757Z"}],"updatedAt":"2026-11-25T22:59:36.318Z","epss":{"score":0.00243,"percentile":0.09298,"date":"2026-11-30T12:00:22.000Z"}}