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 5AE73D53C for ; Fri, 9 May 2025 06:42:48 +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=1746772969; cv=none; b=BCjm4kqU00kwNCf/PKNtojlRmi3H/hHhFiwhrxCPqU9AITMh8Fdo9nmxXM+O+/SY2veRIIBIc+nDjEIjaFGb+6ShvsqD25sivT5+STSuRjcMHlGBUXrmPeQaSdnLctqDBeblkWg5wW4S0DaE3IUsRQ+sLzKWpFPsxb9cynGfMe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746772969; c=relaxed/simple; bh=5E1aJYh3TayYrXRcF6vIi5PT4K6wjEU2+LgYCiUL86U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rXWxeQmk2UTEXOnejJSvKEgw/KOR2TepTGCmCqgKsjutHY7gCpBrK6/2KlRWhJcPzEjum5Rrue7eGzrkPyoOXJxbql4xcV3a6+yroWhCyfRI6YIe8u6pdv74p2YGXmJy6uj5W9u4uNdj9IPVLhMIAlJdWwTczASX59S+Ty4cvTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KL7uoHKy; 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="KL7uoHKy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59BB5C4CEE4; Fri, 9 May 2025 06:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746772968; bh=5E1aJYh3TayYrXRcF6vIi5PT4K6wjEU2+LgYCiUL86U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KL7uoHKyNm/fpTmlwXYy9nfWrabACwE5csz9dP0q2vf6h/eSSuURm6A4xvPfInRnf jdiNpm4f16jVbVH1LBpO45iaCLnieLlD56Q02zff0sj+3XU/Q4Bh4PMVI4+AT+6MNr 7j+vKmxxYZP/v4iXiUfsEMWSvVuI/+sHTKtS1Bj8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37851: fbdev: omapfb: Add 'plane' value check Date: Fri, 9 May 2025 08:42:29 +0200 Message-ID: <2025050919-CVE-2025-37851-2597@gregkh> X-Mailer: git-send-email 2.49.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=3287; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=O4cXvSuKFSUvt0BJF+h6o2PWm+1WFZroPoZsj5oxcJM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi0/HsZ77L8Ho+41pNu88sY78t9KPFY/2FtWWOHx9/ 3BbV8m8jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIhAcMCzZp287ZWjNhrvK2 +XwnJ9UkmvMdZmeYn7Tzc2Wa67mPfK+OLw6M3CiW9rWyAgA= 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: fbdev: omapfb: Add 'plane' value check Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it cannot take this value so it's not a real problem. For the purposes of defensive coding it wouldn't be superfluous to check the parameter value, because some functions down the call stack process this value correctly and some not. For example, in dispc_ovl_setup_global_alpha it may lead to buffer overflow. Add check for this value. Found by Linux Verification Center (linuxtesting.org) with SVACE static analysis tool. The Linux kernel CVE team has assigned CVE-2025-37851 to this issue. Affected and fixed versions =========================== Fixed in 5.4.293 with commit a570efb4d877adbf3db2dc95487f2ba6bfdd148a Fixed in 5.10.237 with commit cdf41d72e8b015d9ea68f5a1c0a79624e7c312aa Fixed in 5.15.181 with commit 09dbf22fd68c2f1a81ab89670ffa1ec3033436c4 Fixed in 6.1.135 with commit 660a53a0694d1f3789802509fe729dd4656fc5e0 Fixed in 6.6.88 with commit fda15c5b96b883d62fb2d84a3a1422aa87717897 Fixed in 6.12.24 with commit 52eafaa56f8f6d6a0cdff9282b25b4acbde34edc Fixed in 6.13.12 with commit 9b0a41589ee70529b20e1e0108d03f10c649bdc4 Fixed in 6.14.3 with commit 4efd8ef5e40f2c7a4a91a5a9f03140bfa827da89 Fixed in 6.15-rc1 with commit 3e411827f31db7f938a30a3c7a7599839401ec30 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-37851 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/video/fbdev/omap2/omapfb/dss/dispc.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/a570efb4d877adbf3db2dc95487f2ba6bfdd148a https://git.kernel.org/stable/c/cdf41d72e8b015d9ea68f5a1c0a79624e7c312aa https://git.kernel.org/stable/c/09dbf22fd68c2f1a81ab89670ffa1ec3033436c4 https://git.kernel.org/stable/c/660a53a0694d1f3789802509fe729dd4656fc5e0 https://git.kernel.org/stable/c/fda15c5b96b883d62fb2d84a3a1422aa87717897 https://git.kernel.org/stable/c/52eafaa56f8f6d6a0cdff9282b25b4acbde34edc https://git.kernel.org/stable/c/9b0a41589ee70529b20e1e0108d03f10c649bdc4 https://git.kernel.org/stable/c/4efd8ef5e40f2c7a4a91a5a9f03140bfa827da89 https://git.kernel.org/stable/c/3e411827f31db7f938a30a3c7a7599839401ec30