greybus: lights: check return of get_channel_from_mode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 · < 518e2c46b5dbce40b1aa0100001d03c3ceaa7d38| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
greybus: lights: check return of get_channel_from_mode
If channel for the given node is not found we return null from get_channel_from_mode. Make sure we validate the return pointer before using it in two of the missing places.
This was originally reported in [0]: Found by Linux Verification Center (linuxtesting.org) with SVACE.
[0] https://lore.kernel.org/all/20240301190425.120605-1-m.lobanov@rosalinux.ru
From the CVE record · Linux
The Linux kernel’s Greybus lights code can dereference a null pointer when it cannot find a channel for a given node. This could cause a kernel crash; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with Greybus lights support should check their exposure; affected versions are not specified.