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.
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The staging greybus lights subsystem in the Linux kernel contains a flaw that triggers a NULL pointer dereference during module cleanup. When the memory allocation for channel structures fails, the cleanup routine still reads the channel count and dereferences a NULL pointer, causing a kernel panic and rebooting the system. This results in a loss of availability for the affected host.

Affected Systems

The vulnerability affects any Linux kernel build that includes the greybus staging lights module and has not yet applied the upstream fix, which reorganizes allocation to avoid a NULL reference. The issue is present across all Linux distributions because it resides in the upstream kernel source, so all vendors that ship a kernel containing this module are impacted.

Risk and Exploitability

The EPSS score is not reported and the flaw is not listed in CISA’s KEV catalog, indicating no documented large‑scale exploitation. The attack vector is inferred to be local or involve direct interaction with a greybus device over USB; an attacker could trigger the failure by forcing allocation failure during a module unload. Without a CVSS rating, the overall risk is uncertain, but a kernel crash that renders the system unusable justifies immediate attention.

Generated by OpenCVE AI on May 27, 2026 at 20:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the upstream patch which allocates the channel array before publishing its count
  • If the greybus functionality is unnecessary, blacklist or remove the module from the kernel configuration
  • Monitor kernel logs for BUG or panic entries related to greybus to detect any inadvertent exploitation attempts

Generated by OpenCVE AI on May 27, 2026 at 20:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4606-1 linux security update
History

Tue, 16 Jun 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Thu, 28 May 2026 00:15:00 +0000


Wed, 27 May 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values 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.
Title staging: greybus: lights: avoid NULL deref
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:18:36.753Z

Reserved: 2026-05-13T15:03:33.090Z

Link: CVE-2026-45978

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-27T14:17:14.903

Modified: 2026-06-16T02:40:18.040

Link: CVE-2026-45978

cve-icon Redhat

Severity :

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45978 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T23:00:06Z

Weaknesses