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 6C00E30AAC9 for ; Wed, 12 Nov 2025 10:24:51 +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=1762943091; cv=none; b=bYtJeA5N1KsX+5UJbuXFjpKdXFu3zKMK6jQDvipBCAXp5mcmxIw3rc2Pc17yR0bdcYhaxN0o6UEJ0to0Zteaw4zojowi5y5eq/pacnWNLZFvfZadhoBrI4kiTuyIf8lYz/Fv+pdouMSZQNYgs2nz9tJktasZPnm+qTlDMuLXLP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943091; c=relaxed/simple; bh=2VeLs0rWxfWEYUj5YQ1SoswD4cRVynGzA40Ox2MEvaA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=svImCsDVv3hBitHSSv3HyP5aArX+sZJOZz6AphdXhpEuxK7QXNiB2+KXLb5EJPDEv6kAloOUK/rvvt5TwCeaaO2zusWlbedx0aPJKzEBXXMjhuZixuEZQ0L9uohFh/jbFmzCBC4jGsPvlNVLlt17gMRqkwoy8Q62GuKpAhoA54I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iOfUOXyJ; 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="iOfUOXyJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E6A1C4CEF8; Wed, 12 Nov 2025 10:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943091; bh=2VeLs0rWxfWEYUj5YQ1SoswD4cRVynGzA40Ox2MEvaA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iOfUOXyJA/N7FaUeVQUiAWQVOQocxnPGxMlq7fw9+sNBZXt6YKGB2tf8kj6RYQ73E tBfpDk8CMVqIC10rK2hbZdPkpAQVgZEivx5upbAceN+pznKMvUsdUBmw/VqtgNiE4s 6b+PXu8cBeFDjGbLQE+T2I5N0g8yc5tttw3/MmnU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40156: PM / devfreq: mtk-cci: Fix potential error pointer dereference in probe() Date: Wed, 12 Nov 2025 19:24:32 +0900 Message-ID: <2025111258-CVE-2025-40156-3045@gregkh> X-Mailer: git-send-email 2.51.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=2649; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uFye0YH3CX8BZVOht+wgkb2BRk8h6K2EzhsA+PUrLso=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCXZdbmnRdy0u2FXY3VVfzrozuH5q4ROREjG+Awzm8 dHsdj0dsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJHJdQzzTC4VbXgbwVj5zMxk Zr6crjGXjp8lw1zpOdlZbiGzpJSuXP/89HzJdePgSmsA 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: PM / devfreq: mtk-cci: Fix potential error pointer dereference in probe() The drv->sram_reg pointer could be set to ERR_PTR(-EPROBE_DEFER) which would lead to a error pointer dereference. Use IS_ERR_OR_NULL() to check that the pointer is valid. The Linux kernel CVE team has assigned CVE-2025-40156 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit e09bd5757b5227d6804b30c58d4587f7f87d1afa and fixed in 6.1.156 with commit 9cc23e221f392304b7b8aad213812564ddf6517e Issue introduced in 6.1 with commit e09bd5757b5227d6804b30c58d4587f7f87d1afa and fixed in 6.6.112 with commit 80eab6a9df7e1107dc334434dbacd05297703377 Issue introduced in 6.1 with commit e09bd5757b5227d6804b30c58d4587f7f87d1afa and fixed in 6.12.53 with commit 44e32104cf7e670e3d683c97b52350d8fac23322 Issue introduced in 6.1 with commit e09bd5757b5227d6804b30c58d4587f7f87d1afa and fixed in 6.17.3 with commit 24d61b6e23d2c7291c528dd43a0bf76b5c05c8f0 Issue introduced in 6.1 with commit e09bd5757b5227d6804b30c58d4587f7f87d1afa and fixed in 6.18-rc1 with commit fc33bf0e097c6834646b98a7b3da0ae5b617f0f9 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-40156 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/devfreq/mtk-cci-devfreq.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/9cc23e221f392304b7b8aad213812564ddf6517e https://git.kernel.org/stable/c/80eab6a9df7e1107dc334434dbacd05297703377 https://git.kernel.org/stable/c/44e32104cf7e670e3d683c97b52350d8fac23322 https://git.kernel.org/stable/c/24d61b6e23d2c7291c528dd43a0bf76b5c05c8f0 https://git.kernel.org/stable/c/fc33bf0e097c6834646b98a7b3da0ae5b617f0f9