Skip to content
CVE PROGRAM SOURCE RECORD8.8 High

CVE-2026-89626

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

Description

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 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 < 416194933af63bd58d03b7605b1ebc1711186838affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < d0e15091e88d18e30b67daf85b88f6528bb9bf41affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 10b05fafff932e325896d59dde40938954ab4577affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 2409779f3096fcef41bcf57b5f4887d0fa0dc8ddaffected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 79154fad98ee843e5363940841e2d831503c190aaffected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < f3f37b937a6ea2a00fb5e6189e74f855caa43eb5affected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < d96f8958d4469ac02d9c563686cdd968005b944daffected
  • 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d to < 3789d0802ddb4b3be04062caf4bfadd23496e9a7affected

Linux Linux

Default version status: affected

  • 4.1affected
  • 0 to < 4.1unaffected
  • 5.10.270 to ≤ 5.10.*unaffected
  • 5.15.221 to ≤ 5.15.*unaffected
  • 6.1.188 to ≤ 6.1.*unaffected
  • 6.6.157 to ≤ 6.6.*unaffected
  • 6.12.109 to ≤ 6.12.*unaffected
  • 6.18.50 to ≤ 6.18.*unaffected
  • 7.2.4 to ≤ 7.2.*unaffected
  • 7.3 to ≤ *unaffected

References