CVE-2026-45978

staging: greybus: lights: avoid NULL deref

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:18 PM UTC
Updated: June 17, 2026 at 10:52 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.9 ≤ v < 5.10.2524.9 ≤ v < 5.15.2024.9 ≤ v < 6.1.1654.9 ≤ v < 6.12.754.9 ≤ v < 6.18.144.9 ≤ v < 6.19.44.9 ≤ v < 6.6.1284.9 ≤ v < 7.05.11 ≤ v < 5.15.2025.16 ≤ v < 6.1.1656.13 ≤ v < 6.18.146.19 ≤ v < 6.19.46.2 ≤ v < 6.6.1286.7 ≤ v < 6.12.752870b52bae4c81823ffcb3ed2b0626fb39d64f484.9
Vendor states this is fixed in 01b91cb3e748032fd96bbe0043812b426a52f091 (fixed)
Vendor states this is fixed in 06162d85f830582da6e9e5fcf9c9504d6da9ae0b (fixed)
Vendor states this is fixed in 3cbe694d235d96f628ec7dc6ae4d8bdddb768699 (fixed)
Vendor states this is fixed in 65f2c608096d766540953d9b170d216aa3b5eb95 (fixed)
Vendor states this is fixed in a118724d7641b832fa14323e2733e28ae4834552 (fixed)
Vendor states this is fixed in ba5022162da63059bae36c4fd84d7031f582c71f (fixed)
Vendor states this is fixed in da46264a7016034a5bbbad034c012ef218b7d0af (fixed)
Vendor states this is fixed in efcffd9a6ad8d190651498d5eda53bfc7cf683a7 (fixed)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 5.10.252 (unaffected)
Vendor states this is fixed in 5.15.202 (unaffected)
Vendor states this is fixed in 6.1.165 (unaffected)
Vendor states this is fixed in 6.12.75 (unaffected)
Vendor states this is fixed in 6.18.14 (unaffected)
Vendor states this is fixed in 6.19.4 (unaffected)
Vendor states this is fixed in 6.6.128 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card