HID: sensor: custom: Fix field sysfs group cleanup on failure (Linux Linux)

CVE-2026-89626
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.35 % · percentile 29 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 416194933af63bd58d03b7605b1ebc1711186838 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < d0e15091e88d18e30b67daf85b88f6528bb9bf41 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 10b05fafff932e325896d59dde40938954ab4577 ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 2409779f3096fcef41bcf57b5f4887d0fa0dc8dd ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < 79154fad98ee843e5363940841e2d831503c190a ; affected 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d < f3f37b937a6ea2a00fb5e6189e74f855caa43eb5
Linux · Linuxaffected 4.1 ; unaffected 0 < 4.1 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD