{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45978","id":"CVE-2026-45978","title":"staging: greybus: lights: avoid NULL deref","description":"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->channels, which is NULL.\n\nAllocate channels first and only then publish channels_count so the\ncleanup path can'","descriptionLong":"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->channels, which is NULL.\n\nAllocate channels first and only then publish channels_count so the\ncleanup path can't walk a NULL pointer.","published":"2026-05-27T12:18:36.753Z","updated":"2026-10-28T02:31:08.229643111Z","reserved":"2026-05-13T15:03:33.090Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"a118724d7641b832fa14323e2733e28ae4834552","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"3cbe694d235d96f628ec7dc6ae4d8bdddb768699","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"ba5022162da63059bae36c4fd84d7031f582c71f","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"65f2c608096d766540953d9b170d216aa3b5eb95","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"01b91cb3e748032fd96bbe0043812b426a52f091","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"06162d85f830582da6e9e5fcf9c9504d6da9ae0b","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"da46264a7016034a5bbbad034c012ef218b7d0af","status":"affected","versionType":"git"},{"version":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48","lessThan":"efcffd9a6ad8d190651498d5eda53bfc7cf683a7","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","lessThan":"4.9","status":"unaffected","versionType":"semver"},{"version":"5.10.252","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.202","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.165","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.128","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.75","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.14","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.4","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45978.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45978","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00123,"epssPercentile":0.02111,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45978","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45978","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45978","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45978","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}