Linux kernel denial of service in shared GPIO lookup
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:
gpio: shared: gracefully handle no-device lookup of shared GPIOs
We use platform lookup tables for shared GPIOs. This mechanism needs a struct device to work so fwnode-based lookup with no device associated currently causes a NULL-pointer deference.
Adding this functionality will require a larger rework and it has never worked anyway so add a check that allows the kernel to gracefully handle this situation with an error ahead of implementing that functionality as a new feature.
From the CVE record · Linux
The Linux kernel's shared GPIO lookup can dereference a NULL pointer when an fwnode-based lookup has no associated device. The input does not specify whether an attacker can trigger this condition, or any network, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected shared GPIO lookup code should check their deployments; affected versions are not specified.