reset: gpio: suppress bind attributes in sysfs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
reset: gpio: suppress bind attributes in sysfs
This is a special device that's created dynamically and is supposed to stay in memory forever. We also currently don't have a devlink between it and the actual reset consumer. Suppress sysfs bind attributes so that user-space can't unbind the device because - as of now - it will cause a use-after-free splat from any user that puts the reset control handle.
From the CVE record · Linux
The Linux kernel's dynamically created GPIO reset device exposes sysfs bind attributes that allow it to be unbound. A local user-space actor able to unbind the device can trigger a use-after-free when a user of its reset control handle releases it. The input does not specify authentication requirements or user interaction beyond the unbind action.
Engineers running the Linux kernel should check whether their kernel is affected; affected versions are not specified.