Linux
HID: sensor: custom: Fix field sysfs group cleanup on failure
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < 416194933af63bd58d03b7605b1ebc1711186838
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < d0e15091e88d18e30b67daf85b88f6528bb9bf41
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < 10b05fafff932e325896d59dde40938954ab4577
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < 2409779f3096fcef41bcf57b5f4887d0fa0dc8dd
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < 79154fad98ee843e5363940841e2d831503c190a
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < f3f37b937a6ea2a00fb5e6189e74f855caa43eb5
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < d96f8958d4469ac02d9c563686cdd968005b944d
- >= 4a7de0519df5e8fb89cef6ee062330ffe4b50a4d, < 3789d0802ddb4b3be04062caf4bfadd23496e9a7
Fixed in 416194933af63bd58d03b7605b1ebc1711186838, d0e15091e88d18e30b67daf85b88f6528bb9bf41, 10b05fafff932e325896d59dde40938954ab4577, 2409779f3096fcef41bcf57b5f4887d0fa0dc8dd, 79154fad98ee843e5363940841e2d831503c190a, f3f37b937a6ea2a00fb5e6189e74f855caa43eb5, d96f8958d4469ac02d9c563686cdd968005b944d, 3789d0802ddb4b3be04062caf4bfadd23496e9a7
- 4.1
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 416194933af63bd58d03b7605b1ebc1711186838 or d0e15091e88d18e30b67daf85b88f6528bb9bf41 or 10b05fafff932e325896d59dde40938954ab4577 or 2409779f3096fcef41bcf57b5f4887d0fa0dc8dd or 79154fad98ee843e5363940841e2d831503c190a or f3f37b937a6ea2a00fb5e6189e74f855caa43eb5 or d96f8958d4469ac02d9c563686cdd968005b944d or 3789d0802ddb4b3be04062caf4bfadd23496e9a7 or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.