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

A NULL pointer dereference in the Linux kernel greybus staging lights module occurs when the memory allocation for the channels array fails. Because the channel count is stored before the array allocation, the cleanup routine later accesses a NULL pointer, causing a kernel panic. This flaw is a classic use‑of‑uninitialized or null pointer dereference (CWE‑476) and results in a loss of availability for the affected host.

Affected Systems

All Linux kernel builds that compile the greybus staging lights module and have not yet incorporated the upstream patch are affected. The module is included in many distributions’ default kernel configurations, so any system running such a kernel is at risk unless the module has been removed or disabled.

Risk and Exploitability

The EPSS score is less than 1% and the vulnerability is not listed in CISA’s KEV catalog, indicating no widespread exploitation. The CVSS score of 5.5 classifies it as moderate severity. Based on the description, it is inferred that a local attacker who can trigger the allocation failure by forcing a module unload or inducing memory pressure could cause a kernel crash. The likely attack vector is local; remote is unlikely, and any successful exploitation results in a system reboot and loss of service.

Generated by OpenCVE AI on June 17, 2026 at 23:52 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 channels array before publishing its count
  • If 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 June 17, 2026 at 23:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4606-1 linux security update
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
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-17T10:52:50.150

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-06-18T00:00:05Z

Weaknesses