CVE-2026-45978

MEDIUM

staging: greybus: lights: avoid NULL deref

Title source: cna
STIX 2.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.

Scores

CVSS v3 5.5
EPSS 0.0012
EPSS Percentile 2.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (26)
linux/Kernel 4.9.0 - 5.10.252linux
linux/Kernel 5.11.0 - 5.15.202linux
linux/Kernel 5.16.0 - 6.1.165linux
linux/Kernel 6.13.0 - 6.18.14linux
linux/Kernel 6.19.0 - 6.19.4linux
linux/Kernel 6.2.0 - 6.6.128linux
linux/Kernel 6.7.0 - 6.12.75linux
Linux/Linux < 4.9
Linux/Linux 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 - 01b91cb3e748032fd96bbe0043812b426a52f091
Linux/Linux 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 - 06162d85f830582da6e9e5fcf9c9504d6da9ae0b
... and 16 more
Published May 27, 2026
Tracked Since May 27, 2026