Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F29313FBB6A for ; Wed, 27 May 2026 12:27:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884840; cv=none; b=jhTzgwclNmZ8/OsTeLIiCW99D9bvxPfn7OBATnBcSWVlJLiGW1k3Ht+QfcJeswYPuierW7HK8GgYqxeJtJMQLJ6J/JId88D1dkpW8oUGxbgzzyWDskDyu3FPhbm3uu2j5IRbowUiiJrsCMGxQijk4k9PJrouC86KmOlDqhEbfGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884840; c=relaxed/simple; bh=G42qb20vQ76ejum3/ww+NypcAaT4oKyCtIMrtDjTX+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nYSOYQj/0n0C2NL/BCw8jIjFG38sRACDQ9n3u7i+nNR+r/OTCRPgeBqngFZdpuIW7v4+a4GzH7wwletWt0VFmg8bhwRABi4Rbqfl3TQlilLd7mD2fUAjnVGEpb9xm8H2qgNBacgBoOxUehWrM3ElyswuS4kRzp8KbJPc6OxO878= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FykZhhO1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FykZhhO1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50AB91F000E9; Wed, 27 May 2026 12:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884838; bh=NQ7GndmNoRvvnoY15Idd+mClNjbX50gsr0ymwvQ8+Cg=; h=From:To:Cc:Subject:Date:Reply-To; b=FykZhhO10RenK2ksRAGjR4m/N/4JP8/HzZgTxv7E/uevxCQ5Ja23t9PBpy36B7UYU TeKfvroODFDUBcMjpRtv6BoCjZn4aniAvvuMNtuP126w1tBFi6qxLU4+XZ+cWrFaQP wv9wWGpe12Nq/oKGOOiWyeGgLcnBYQJrRM28AxoQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45978: staging: greybus: lights: avoid NULL deref Date: Wed, 27 May 2026 14:20:20 +0200 Message-ID: <2026052737-CVE-2026-45978-c2e9@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3438; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PfC1wuyTcYSE/mgzpHinAn1Yn2YCQ1YUsJaJooLhWgY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD+We3InYmm5f775hhaCZqZ3/MtVrLydc2hgxq3Zm2 V7TC8sDOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizBMY5vCui0pcysGcdHzm 3yssF+P8BNymdDHMlZ0facZ1dcfRJTOm85u2aLkcK6j2BwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-45978 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 5.10.252 with commit a118724d7641b832fa14323e2733e28ae4834552 Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 5.15.202 with commit 3cbe694d235d96f628ec7dc6ae4d8bdddb768699 Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 6.1.165 with commit ba5022162da63059bae36c4fd84d7031f582c71f Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 6.6.128 with commit 65f2c608096d766540953d9b170d216aa3b5eb95 Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 6.12.75 with commit 01b91cb3e748032fd96bbe0043812b426a52f091 Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 6.18.14 with commit 06162d85f830582da6e9e5fcf9c9504d6da9ae0b Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 6.19.4 with commit da46264a7016034a5bbbad034c012ef218b7d0af Issue introduced in 4.9 with commit 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 and fixed in 7.0 with commit efcffd9a6ad8d190651498d5eda53bfc7cf683a7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-45978 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/staging/greybus/light.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a118724d7641b832fa14323e2733e28ae4834552 https://git.kernel.org/stable/c/3cbe694d235d96f628ec7dc6ae4d8bdddb768699 https://git.kernel.org/stable/c/ba5022162da63059bae36c4fd84d7031f582c71f https://git.kernel.org/stable/c/65f2c608096d766540953d9b170d216aa3b5eb95 https://git.kernel.org/stable/c/01b91cb3e748032fd96bbe0043812b426a52f091 https://git.kernel.org/stable/c/06162d85f830582da6e9e5fcf9c9504d6da9ae0b https://git.kernel.org/stable/c/da46264a7016034a5bbbad034c012ef218b7d0af https://git.kernel.org/stable/c/efcffd9a6ad8d190651498d5eda53bfc7cf683a7