{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2870b52bae4c81823ffcb3ed2b0626fb39d64f48"
            },
            {
              "fixed": "a118724d7641b832fa14323e2733e28ae4834552"
            },
            {
              "fixed": "3cbe694d235d96f628ec7dc6ae4d8bdddb768699"
            },
            {
              "fixed": "ba5022162da63059bae36c4fd84d7031f582c71f"
            },
            {
              "fixed": "65f2c608096d766540953d9b170d216aa3b5eb95"
            },
            {
              "fixed": "01b91cb3e748032fd96bbe0043812b426a52f091"
            },
            {
              "fixed": "06162d85f830582da6e9e5fcf9c9504d6da9ae0b"
            },
            {
              "fixed": "da46264a7016034a5bbbad034c012ef218b7d0af"
            },
            {
              "fixed": "efcffd9a6ad8d190651498d5eda53bfc7cf683a7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45978.json"
  },
  "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.",
  "id": "CVE-2026-45978",
  "modified": "2026-07-08T05:36:59.623478712Z",
  "published": "2026-05-27T12:18:36.753Z",
  "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"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "staging: greybus: lights: avoid NULL deref"
}