---
id: CVE-2026-89626
title: 'HID: sensor: custom: Fix field sysfs group cleanup on failure'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  HID: sensor: custom: Fix field sysfs group cleanup on failure

  hid_sensor_custom_add_attributes() creates one sysfs group for each
  custom sensor field. If sysfs_create_…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-772
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    416194933af63bd58d03b7605b1ebc1711186838
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    d0e15091e88d18e30b67daf85b88f6528bb9bf41
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    10b05fafff932e325896d59dde40938954ab4577
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    2409779f3096fcef41bcf57b5f4887d0fa0dc8dd
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    79154fad98ee843e5363940841e2d831503c190a
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    f3f37b937a6ea2a00fb5e6189e74f855caa43eb5
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    d96f8958d4469ac02d9c563686cdd968005b944d
  - >-
    Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d <
    3789d0802ddb4b3be04062caf4bfadd23496e9a7
  - Linux 4.1
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T19:24:35.586739Z'
published: '2026-09-11'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T08:49:58.552Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89626'
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'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89626.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-89626'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532034'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-89626'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-89626'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-89626.mbox
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00354
epssPercentile: 0.28951
scores:
  cna: 8.8
  vendor: 7
ingestedAt: '2026-09-14T15:23:07.450Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

HID: sensor: custom: Fix field sysfs group cleanup on failure

hid_sensor_custom_add_attributes() creates one sysfs group for each
custom sensor field. If sysfs_create_group() fails after some groups
have already been created, the function returns the error without
removing the previously created groups.

Add a local unwind path to remove the groups that were already created.
With enable_sensor exposed only after the field attributes are ready,
this path can free sensor_inst->fields without leaving enable_sensor
able to access pointers into that array.

## Affected

- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 416194933af63bd58d03b7605b1ebc1711186838`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d0e15091e88d18e30b67daf85b88f6528bb9bf41`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 10b05fafff932e325896d59dde40938954ab4577`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 2409779f3096fcef41bcf57b5f4887d0fa0dc8dd`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 79154fad98ee843e5363940841e2d831503c190a`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < f3f37b937a6ea2a00fb5e6189e74f855caa43eb5`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d96f8958d4469ac02d9c563686cdd968005b944d`
- `Linux >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 3789d0802ddb4b3be04062caf4bfadd23496e9a7`
- `Linux 4.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, … · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89626.json)
