gpio: grgpio: Add NULL check in grgpio_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7eb6ce2f272336ff8337f40fa8668fa04dc2d684 · < db2fc255fcf41f536ac8666409849e11659af88d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gpio: grgpio: Add NULL check in grgpio_probe
devm_kasprintf() can return a NULL pointer on failure,but this returned value in grgpio_probe is not checked. Add NULL check in grgpio_probe, to handle kernel NULL pointer dereference error.
From the CVE record · Linux
In the Linux kernel's grgpio_probe, a failed devm_kasprintf() call can return NULL, which was not checked and could cause a kernel NULL pointer dereference. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the grgpio driver should check whether their kernel includes the NULL-check fix; affected versions are not specified.