gpio: mockup: fix NULL pointer dereference when removing debugfs
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 |
|
≥ 5.15.69 · < 5.15.71≥ 5.19.10 · < 5.19.12| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
gpio: mockup: fix NULL pointer dereference when removing debugfs
We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first.
From the CVE record · Linux
The Linux kernel GPIO mockup driver can dereference a NULL pointer during module exit. This happens when platform devices are unregistered after the global debugfs directory has been removed. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with the GPIO mockup driver should check their versions; affected versions are not specified.