From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D58F817106F for ; Fri, 21 Jun 2024 10:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965535; cv=none; b=WJrlTuoWKS+I/MAEKibUjutJJsMUc6Fk0geg0dlkQUCVhwf97NGJ5HjCxX3dAZ0bNMAQJ5GIB/Sn9DWdQv3bLcQv4s/VVluZaprF39zkD9Lt4a5zZhwpI9VVnIJogKdiA0/GAoFtQRZCfDHSFzit3FdeXpdG3Sg47MqkiCi3uCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965535; c=relaxed/simple; bh=rRT57sGoQyUHzBKklUp2Kxv8YC2gRIa2Vf6hGNrKoio=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EB0i1Z1zC3d1qPuGgOYdOua/CskRVQ9n5Pm5t0VtX87eyFNz1z6lKJHFZgsDGoov6DYYNpmmowNQ2l2nBBxlYFz+yGqxag2dccSGSv3Yhr2VrCfraC+t+MAo4moO8ITJOeJgkPwmhj1l2gDsPdHVKCln5CwHPjVAJDNxPRfmxIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vyqm4gOn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vyqm4gOn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B876C2BBFC; Fri, 21 Jun 2024 10:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965535; bh=rRT57sGoQyUHzBKklUp2Kxv8YC2gRIa2Vf6hGNrKoio=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vyqm4gOnnMBSOxQdv2bUZ4AuGxPUf7UH6TqD/vs8cTz3rfiPdcg18I1Cq8tGSYITo mQorvG3aeeoA/bdXig9PzPUlbxHG3hTat5Fl3CfC4KGdcS7p3ZSqoVHK0NP4leGE+X EAzvZo5Y7mT9STgkPbKNXcxEbWVfI/BWi9U0VhjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38637: greybus: lights: check return of get_channel_from_mode Date: Fri, 21 Jun 2024 12:20:03 +0200 Message-ID: <2024062143-CVE-2024-38637-e38e@gregkh> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3054; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rRT57sGoQyUHzBKklUp2Kxv8YC2gRIa2Vf6hGNrKoio=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwfs3a5TZnPt/23bR9MSTZosjLz+pq30vKXT9SW/9K od9HdeCO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAie1sYFpw5tTBw/tzLjbz3 /q9veM678dXBWHGGuQK8qRVxNT2HOxojMm0uqzxxaYgqBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: greybus: lights: check return of get_channel_from_mode If channel for the given node is not found we return null from get_channel_from_mode. Make sure we validate the return pointer before using it in two of the missing places. This was originally reported in [0]: Found by Linux Verification Center (linuxtesting.org) with SVACE. [0] https://lore.kernel.org/all/20240301190425.120605-1-m.lobanov@rosalinux.ru The Linux kernel CVE team has assigned CVE-2024-38637 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 4.19.316 with commit 8f4a76d477f0 Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 5.4.278 with commit e2c64246e5dc Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 5.10.219 with commit eac10cf3a97f Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 5.15.161 with commit 330f6bcdcef0 Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 6.1.93 with commit 9b41a9b9c8be Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 6.6.33 with commit 518e2c46b5db Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 6.9.4 with commit 895cdd9aa954 Issue introduced in 4.9 with commit 2870b52bae4c and fixed in 6.10-rc1 with commit a1ba19a1ae7c 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-2024-38637 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/8f4a76d477f0cc3c54d512f07f6f88c8e1c1e07b https://git.kernel.org/stable/c/e2c64246e5dc8c0d35ec41770b85e2b4cafdff21 https://git.kernel.org/stable/c/eac10cf3a97ffd4b4deb0a29f57c118225a42850 https://git.kernel.org/stable/c/330f6bcdcef03f70f81db5f2ed6747af656a09f2 https://git.kernel.org/stable/c/9b41a9b9c8be8c552f10633453fdb509e83b66f8 https://git.kernel.org/stable/c/518e2c46b5dbce40b1aa0100001d03c3ceaa7d38 https://git.kernel.org/stable/c/895cdd9aa9546523df839f9cc1488a0ecc1e0731 https://git.kernel.org/stable/c/a1ba19a1ae7cd1e324685ded4ab563e78fe68648