# CVE-2026-45978: staging: greybus: lights: avoid NULL deref

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:36.753Z
- Modified: 2026-06-17T10:52:50.150Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before a118724d7641b832fa14323e2733e28ae4834552; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 3cbe694d235d96f628ec7dc6ae4d8bdddb768699; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before ba5022162da63059bae36c4fd84d7031f582c71f; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 65f2c608096d766540953d9b170d216aa3b5eb95; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 01b91cb3e748032fd96bbe0043812b426a52f091; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 06162d85f830582da6e9e5fcf9c9504d6da9ae0b; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before da46264a7016034a5bbbad034c012ef218b7d0af; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before efcffd9a6ad8d190651498d5eda53bfc7cf683a7; 4.9 (not affected: before 4.9; from 5.10.252 up to 5.10.*; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 4.9 before 5.10.252; from 5.11 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552> (patch)
- <https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699> (patch)
- <https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f> (patch)
- <https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95> (patch)
- <https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091> (patch)
- <https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b> (patch)
- <https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af> (patch)
- <https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7> (patch)

## Sources

- CVE List: [CVE-2026-45978](https://www.cve.org/CVERecord?id=CVE-2026-45978), CVE Terms of Use, modified 2026-05-27
- NVD: [CVE-2026-45978](https://nvd.nist.gov/vuln/detail/CVE-2026-45978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45978 · Whole record: https://cve.day/CVE-2026-45978.json · Rebuilt by cve.day 2026-11-25T22:59:22.529Z
