CVE-2026-45978
staging: greybus: lights: avoid NULL deref
Description
In the Linux kernel, the following vulnerability has been resolved: staging: greybus: lights: avoid NULL deref gb_lights_light_config() stores channel_count before allocating the channels array. If kcalloc() fails, gb_lights_release() iterates the non-zero count and dereferences light->channels, which is NULL. Allocate channels first and only then publish channels_count so the cleanup path can't walk a NULL pointer.
INFO
Published Date :
May 27, 2026, 2:17 p.m.
Last Modified :
May 27, 2026, 2:48 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Allocate the channels array before setting channel_count.
- Ensure cleanup path checks for NULL pointers.
- Update the Linux kernel to the latest version.
- Apply the provided patch for the vulnerability.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-45978.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-45978 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-45978
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-45978 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-45978 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 27, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: staging: greybus: lights: avoid NULL deref gb_lights_light_config() stores channel_count before allocating the channels array. If kcalloc() fails, gb_lights_release() iterates the non-zero count and dereferences light->channels, which is NULL. Allocate channels first and only then publish channels_count so the cleanup path can't walk a NULL pointer. Added Reference https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091 Added Reference https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b Added Reference https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699 Added Reference https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95 Added Reference https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552 Added Reference https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f Added Reference https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af Added Reference https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7