CVE-2026-45978 Details
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.
A vulnerability in the Linux kernel's Greybus lights implementation can lead to a NULL pointer dereference. The issue arises in the 'gb_lights_light_config' function, which stores the channel count before allocating the channels array. If the memory allocation fails, the release function attempts to access the channels, resulting in a NULL dereference. This vulnerability affects the staging area of the Greybus lights driver.
The vulnerability has been addressed by modifying the channel allocation process. Channels are now allocated before the channel count is published, preventing the release function from dereferencing a NULL pointer. Users should update to the latest version of the Linux kernel where this fix has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091 | kernel.org | Patch |
| https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b | kernel.org | Patch |
| https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699 | kernel.org | Patch |
| https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f | kernel.org | Patch |
| https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af | kernel.org | Patch |
| https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.9, < 5.10.252 >= 5.11, < 5.15.202 >= 5.16, < 6.1.165 >= 6.2, < 6.6.128 >= 6.7, < 6.12.75 >= 6.13, < 6.18.14 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 16, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | kernel.org |