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 37050152521 for ; Wed, 3 Apr 2024 17:33:05 +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=1712165585; cv=none; b=ue9aaRrf4Qs0y3CxZq1QlgGfWMisH+eINZsIxLHEXfRhncKyUKG5VGKGCsBcgIdZ9JtxAvyLfmyf5eW36rrj7uFoGokPqZXhyy913Wu4mLUuGl/ouOKszxo+0MZOIW5p0TWSnn2hQwehJgkjXbUzvgL39wY8B3vxoivFGtIgHzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165585; c=relaxed/simple; bh=HnXXXrMzvT3u0HWgvAmbqzQ9Zcm12vpX1L1wb/kHMM4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E9OizO57LqhTq2jPPJiJiCEefH8k7iIxfpjK0MVHp8xaSg/Nl6q93cjKYHoCcVTOeW4srXzcZsuHDrVeWycV4elZMsWLqEVVs44AiwsxCW2k7HTqNJkyL9rK048E4jVDXKFLtEZZ3xV2U3iytHnTrklgj0isIbiHLIBX1V1dowc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cxyCNOwV; 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="cxyCNOwV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F863C433C7; Wed, 3 Apr 2024 17:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165585; bh=HnXXXrMzvT3u0HWgvAmbqzQ9Zcm12vpX1L1wb/kHMM4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cxyCNOwVug11LnyMQmb4tN0TVuE0yam9Xg87LNAdEVmhPZvZFXPwvGj3e0CoLuCzL 16KkenD2nE4DHe1W4F6z6Pz7tF6Lp4fCLtwDqkpqFdQo4sGMGUC1w0qOchxF/d+djB kO8efU/BpASvlMr1Dbg25TO808G8UQiFfySNhU5o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26770: HID: nvidia-shield: Add missing null pointer checks to LED initialization Date: Wed, 3 Apr 2024 19:31:37 +0200 Message-ID: <2024040307-CVE-2024-26770-1c08@gregkh> X-Mailer: git-send-email 2.44.0 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=1900; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HnXXXrMzvT3u0HWgvAmbqzQ9Zcm12vpX1L1wb/kHMM4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8k6L1wrex6LxXXM0epd91fsfq+zkFj++ZLVQ6ocLz/ njrzi+ZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRjUEM8+zWpDUctu+UTlwk 5/lHZILmo/XHchnmmR+Rvr/TyPrMPf92jpCwfeb2TJ/+AQA= 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: HID: nvidia-shield: Add missing null pointer checks to LED initialization devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. [jkosina@suse.com: tweak changelog a bit] The Linux kernel CVE team has assigned CVE-2024-26770 to this issue. Affected and fixed versions =========================== Fixed in 6.6.19 with commit 83527a13740f Fixed in 6.7.7 with commit e71cc4a1e584 Fixed in 6.8 with commit b6eda11c44dc 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-26770 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/hid/hid-nvidia-shield.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/83527a13740f57b45f162e3af4c7db4b88521100 https://git.kernel.org/stable/c/e71cc4a1e584293deafff1a7dea614b0210d0443 https://git.kernel.org/stable/c/b6eda11c44dc89a681e1c105f0f4660e69b1e183