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 CE65B216618 for ; Wed, 26 Feb 2025 02:14:31 +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=1740536071; cv=none; b=PTdy0ZYVJXgBqO9mTe9VmLuepBcYUb82I4/P5QaMO3bn3mArf+gWY1fdEBnLizeOUkHw8Bg7ybAijqfwwRsUW66e8P1qLk6Xo8dve98BgherMw5fNv5lUtyApTcu9BKlhrt7myjTBam9Q84N6TzQvEjmlvI4SQI+gC+7CalVgHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536071; c=relaxed/simple; bh=pp7tZ/EU5oJyR0fmn2FE89oEQD4FqwXCk/NKsB+w0nA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QNvYG8q9ui6anIxZxqg8F1/SDKOdNBpRs8yI7FUoIto4FKDgyaq3ulYy371Xfp1DRkU/F9Ed0zAbpKfABkIV6qORjXRhqF4K1R0mQQKNRHl3sDOp+GdX4Ru8Z0VrlBgtu71tzGpVE7g7UJ7reh6vtncMjXFpqQkgqIomQCQ+isI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ju7LZ/ua; 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="ju7LZ/ua" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0452C4CEDD; Wed, 26 Feb 2025 02:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536071; bh=pp7tZ/EU5oJyR0fmn2FE89oEQD4FqwXCk/NKsB+w0nA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ju7LZ/uaAClZpqv3D+CosgBOCeFkRP2jukrhL/O1MEGJjHW27uey0+oJho0c7CF6V iTmbcYDVIP502mrVcA+6O7ZNk8EshaRAdb83D8w5RGWP4FzgVsjSi8xLDUxzRCKSGJ iOUrRq2k6M5kZ9nx4UTu2l1bf1FPI1wg8u3x7NxA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49453: soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc Date: Wed, 26 Feb 2025 03:12:07 +0100 Message-ID: <2025022659-CVE-2022-49453-9819@gregkh> X-Mailer: git-send-email 2.48.1 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=2301; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pp7tZ/EU5oJyR0fmn2FE89oEQD4FqwXCk/NKsB+w0nA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yr/Lymf/W1e9hyXQLmNie+Bcxo1Si/pE1JwOzXnEG z9bUvxURywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEJZxhwfJ/Gml998+5zVaS YrOb5sMRK/tZnGGe4trHv9SSWN85RdlNmiOrIhkiIGYCAA== 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: soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc The allocation funciton devm_kcalloc may fail and return a null pointer, which would cause a null-pointer dereference later. It might be better to check it and directly return -ENOMEM just like the usage of devm_kcalloc in previous code. The Linux kernel CVE team has assigned CVE-2022-49453 to this issue. Affected and fixed versions =========================== Fixed in 5.10.121 with commit 05efc4591f80582b6fe53366b70b6a35a42fd255 Fixed in 5.15.46 with commit 7cef9274fa1b8506949d74bc45aef072b890824a Fixed in 5.17.14 with commit c4e188869406b47ac3350920bf165be303cb1c96 Fixed in 5.18.3 with commit 01ba41a359622ab256ce4d4f8b94c67165ae3daf Fixed in 5.19 with commit ba56291e297d28aa6eb82c5c1964fae2d7594746 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-2022-49453 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/soc/ti/ti_sci_pm_domains.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/05efc4591f80582b6fe53366b70b6a35a42fd255 https://git.kernel.org/stable/c/7cef9274fa1b8506949d74bc45aef072b890824a https://git.kernel.org/stable/c/c4e188869406b47ac3350920bf165be303cb1c96 https://git.kernel.org/stable/c/01ba41a359622ab256ce4d4f8b94c67165ae3daf https://git.kernel.org/stable/c/ba56291e297d28aa6eb82c5c1964fae2d7594746