gpio: cdev: Avoid NULL dereference in linehandle_create()
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: cdev: Avoid NULL dereference in linehandle_create()
In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh);
Soon after, there is a debug printout that dereferences "lh", which will crash things.
Avoid the crash by using handlereq.lines, which is the same value.
From the CVE record · Linux
The Linux kernel GPIO character device has a NULL pointer dereference in linehandle_create(). A debug printout can dereference a pointer after it has been set to NULL, causing a crash. The input does not specify how the code path is reached or whether authentication or user interaction is required.
Engineers running the Linux kernel should check for affected versions; none are specified in the input.