{"id":"CVE-2026-89626","state":"PUBLISHED","title":"HID: sensor: custom: Fix field sysfs group cleanup on failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix field sysfs group cleanup on failure\n\nhid_sensor_custom_add_attributes() creates one sysfs group for each\ncustom sensor field. If sysfs_create_group() fails after some groups\nhave already been created, the function returns the error without\nremoving the previously created groups.\n\nAdd a local unwind path to remove the groups that were already created.\nWith enable_sensor exposed only after the field attributes are ready,\nthis path can free sensor_inst->fields without leaving enable_sensor\nable to access pointers into that array.","publishedAt":"2026-09-11T19:45:22.769Z","updatedAt":"2026-10-19T08:49:58.552Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"416194933af63bd58d03b7605b1ebc1711186838","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"d0e15091e88d18e30b67daf85b88f6528bb9bf41","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"10b05fafff932e325896d59dde40938954ab4577","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"2409779f3096fcef41bcf57b5f4887d0fa0dc8dd","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"79154fad98ee843e5363940841e2d831503c190a","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"f3f37b937a6ea2a00fb5e6189e74f855caa43eb5","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"d96f8958d4469ac02d9c563686cdd968005b944d","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"3789d0802ddb4b3be04062caf4bfadd23496e9a7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-sensor-custom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-sensor-custom.c"]}],"references":["https://git.kernel.org/stable/c/416194933af63bd58d03b7605b1ebc1711186838","https://git.kernel.org/stable/c/d0e15091e88d18e30b67daf85b88f6528bb9bf41","https://git.kernel.org/stable/c/10b05fafff932e325896d59dde40938954ab4577","https://git.kernel.org/stable/c/2409779f3096fcef41bcf57b5f4887d0fa0dc8dd","https://git.kernel.org/stable/c/79154fad98ee843e5363940841e2d831503c190a","https://git.kernel.org/stable/c/f3f37b937a6ea2a00fb5e6189e74f855caa43eb5","https://git.kernel.org/stable/c/d96f8958d4469ac02d9c563686cdd968005b944d","https://git.kernel.org/stable/c/3789d0802ddb4b3be04062caf4bfadd23496e9a7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89626.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89626","state":"PUBLISHED","datePublished":"2026-09-11T19:45:22.769Z","dateUpdated":"2026-10-19T08:49:58.552Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.737Z"},"containers":{"cna":{"title":"HID: sensor: custom: Fix field sysfs group cleanup on failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix field sysfs group cleanup on failure\n\nhid_sensor_custom_add_attributes() creates one sysfs group for each\ncustom sensor field. If sysfs_create_group() fails after some groups\nhave already been created, the function returns the error without\nremoving the previously created groups.\n\nAdd a local unwind path to remove the groups that were already created.\nWith enable_sensor exposed only after the field attributes are ready,\nthis path can free sensor_inst->fields without leaving enable_sensor\nable to access pointers into that array."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"416194933af63bd58d03b7605b1ebc1711186838","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"d0e15091e88d18e30b67daf85b88f6528bb9bf41","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"10b05fafff932e325896d59dde40938954ab4577","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"2409779f3096fcef41bcf57b5f4887d0fa0dc8dd","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"79154fad98ee843e5363940841e2d831503c190a","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"f3f37b937a6ea2a00fb5e6189e74f855caa43eb5","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"d96f8958d4469ac02d9c563686cdd968005b944d","versionType":"git"},{"version":"4a7de0519df5e8fb89cef6ee062330ffe4b50a4d","status":"affected","lessThan":"3789d0802ddb4b3be04062caf4bfadd23496e9a7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-sensor-custom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-sensor-custom.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/416194933af63bd58d03b7605b1ebc1711186838"},{"url":"https://git.kernel.org/stable/c/d0e15091e88d18e30b67daf85b88f6528bb9bf41"},{"url":"https://git.kernel.org/stable/c/10b05fafff932e325896d59dde40938954ab4577"},{"url":"https://git.kernel.org/stable/c/2409779f3096fcef41bcf57b5f4887d0fa0dc8dd"},{"url":"https://git.kernel.org/stable/c/79154fad98ee843e5363940841e2d831503c190a"},{"url":"https://git.kernel.org/stable/c/f3f37b937a6ea2a00fb5e6189e74f855caa43eb5"},{"url":"https://git.kernel.org/stable/c/d96f8958d4469ac02d9c563686cdd968005b944d"},{"url":"https://git.kernel.org/stable/c/3789d0802ddb4b3be04062caf4bfadd23496e9a7"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - hid-sensor-hub matches HID_BUS_ANY HID_GROUP_SENSOR_HUB devices and instantiates HID-SENSOR-2000e1/2000e2, so a Bluetooth HID/HoGP peer in radio range can supply a crafted custom-sensor descriptor that probes hid-sensor-custom; USB attach is only a lower-severity physical path.\nAC:L - Duplicate feature/input field group names in the attacker-controlled HID descriptor make sysfs_create_group() fail with -EEXIST after earlier groups are installed, so the missing unwind runs deterministically with no attacker-uncontrollable race or memory layout.\nPR:N - hid_sensor_custom_probe() runs from HID/MFD enumeration when the Bluetooth or USB sensor-hub connects and needs no local account, capability, or userspace authorization.\nUI:N - Probe and sysfs group creation run automatically on HID connect; leftover field attributes are then hit by udev and ordinary sysfs reads with no separate victim mount or file-open action.\nS:U - The leftover sysfs groups and use-after-free of probe-allocated hid_sensor_custom state remain in the host kernel and do not cross a VM, IOMMU, or sandbox boundary.\nC:H - Failed probe leaves field sysfs groups in place while really_probe() device_unbind_cleanup() frees the devm hid_sensor_custom object, so in-progress or later show_value() is a slab use-after-free enabling arbitrary kernel read.\nI:H - The same dangling sysfs show/store path runs against freed hid_sensor_custom state (fields, mutex, hid-sensor-hub pointers), a heap UAF that can be sprayed for arbitrary write and control-flow hijack.\nA:H - Accessing leftover field attributes after probe failure NULL-dereferences cleared drvdata or uses freed sensor_inst, causing kernel oops/panic; any UAF is High availability impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:49:58.552Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-89626","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T19:24:35.586739Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T19:26:45.215Z"}}]}}}