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 A59D121254F for ; Fri, 22 Aug 2025 16:01:29 +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=1755878489; cv=none; b=rLXbGceG21GgsMChGmU5IqqIYw2PJw2mvJpr21LM7oPU/p1kMptn0ZERu/uRyChS+TGSI7CBtdhE43h/WxEWv8X8K/xhyFILPJ8ncb29tVmrNN8bVjKyILFwH0vyVd2s2+FDo7w002s6TId+e7rwolN3hMfotZolycjE1P5wRVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878489; c=relaxed/simple; bh=SVzW5HlcvX3CPJdFgRIKaKHPt9pYKf244IMpzpUCfZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=REiAZDRDfv9UGx99IcF41DtJNnWZ9+cST48dIMpTg1DjJx90KdZ4hrTvjXzS0Em8aGBvjNiAKhs+hivzTSMnZfutxZhC/zIth8LkCUCtlQzjp6tCBR0imIKpFF278vRC+oI1Jz4aKJ6lyuDNEbZmD4NiTn/giwwGboe9mjtfIHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=twiy4v8u; 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="twiy4v8u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC7BBC4CEED; Fri, 22 Aug 2025 16:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878489; bh=SVzW5HlcvX3CPJdFgRIKaKHPt9pYKf244IMpzpUCfZ4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=twiy4v8u4AE60KvHKBkUdAwRxfIzoJyzZjKuPEgqMJ2zQKEeyX7vOTp/lP4YLYtSA jJAYbdmw94/KmmZ5NkCw0nvO5EA9Lo9nKcguM2IPU7Oi7sIMcneSVcGLrVgE7kgGWT yjthBcuP0tAJAexntPcZ8JBKqYSuTWq5FigH6Fvk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38635: clk: davinci: Add NULL check in davinci_lpsc_clk_register() Date: Fri, 22 Aug 2025 18:00:44 +0200 Message-ID: <2025082233-CVE-2025-38635-aa1c@gregkh> X-Mailer: git-send-email 2.50.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=2973; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fbpmUITLSwbLivHkPGf98HuYbSlvT2W5yGklXGEINF0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpihGJxx+F9lh6CW9r/B3zolNJ+cKh/dbPzEUZtjX/ uGuq9ajjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIRU2G+Z67w6/IC6olrrBd M/1v6toFjxT54hjmKS2LqTznqOrHIZf7dZ3Etmk7cuV8AQ== 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: clk: davinci: Add NULL check in davinci_lpsc_clk_register() devm_kasprintf() returns NULL when memory allocation fails. Currently, davinci_lpsc_clk_register() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue and ensuring no resources are left allocated. The Linux kernel CVE team has assigned CVE-2025-38635 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.1.148 with commit 105e8115944a9f93e9412abe7bb07ed96725adf9 Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.6.102 with commit 1d92608a29251278015f57f3572bc950db7519f0 Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.12.42 with commit 7943ed1f05f5cb7372dca2aa227f848747a98791 Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.15.10 with commit 6fb19cdcf040e1dec052a9032acb66cc2ad1d43f Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.16.1 with commit 23f564326deaafacfd7adf6104755b15216d8320 Issue introduced in 4.17 with commit c6ed4d734bc7f731709dab0ffd69eed499dd5277 and fixed in 6.17-rc1 with commit 13de464f445d42738fe18c9a28bab056ba3a290a 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-2025-38635 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/clk/davinci/psc.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/105e8115944a9f93e9412abe7bb07ed96725adf9 https://git.kernel.org/stable/c/1d92608a29251278015f57f3572bc950db7519f0 https://git.kernel.org/stable/c/7943ed1f05f5cb7372dca2aa227f848747a98791 https://git.kernel.org/stable/c/6fb19cdcf040e1dec052a9032acb66cc2ad1d43f https://git.kernel.org/stable/c/23f564326deaafacfd7adf6104755b15216d8320 https://git.kernel.org/stable/c/13de464f445d42738fe18c9a28bab056ba3a290a