{"id":"CVE-2026-45978","summary":"staging: greybus: lights: avoid NULL deref","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: greybus: lights: avoid NULL deref\n\ngb_lights_light_config() stores channel_count before allocating the\nchannels array. If kcalloc() fails, gb_lights_release() iterates the\nnon-zero count and dereferences light-\u003echannels, which is NULL.\n\nAllocate channels first and only then publish channels_count so the\ncleanup path can't walk a NULL pointer.","modified":"2026-06-18T03:54:57.932482321Z","published":"2026-05-27T12:18:36.753Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45978.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091"},{"type":"WEB","url":"https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45978.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45978"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48"},{"fixed":"a118724d7641b832fa14323e2733e28ae4834552"},{"fixed":"3cbe694d235d96f628ec7dc6ae4d8bdddb768699"},{"fixed":"ba5022162da63059bae36c4fd84d7031f582c71f"},{"fixed":"65f2c608096d766540953d9b170d216aa3b5eb95"},{"fixed":"01b91cb3e748032fd96bbe0043812b426a52f091"},{"fixed":"06162d85f830582da6e9e5fcf9c9504d6da9ae0b"},{"fixed":"da46264a7016034a5bbbad034c012ef218b7d0af"},{"fixed":"efcffd9a6ad8d190651498d5eda53bfc7cf683a7"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45978.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.9.0"},{"fixed":"5.10.252"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.202"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.165"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.128"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45978.json"}}],"schema_version":"1.7.5"}