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 091EF31B806 for ; Fri, 5 Sep 2025 17:24:04 +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=1757093045; cv=none; b=YhITeekbK6rU+Aojd9dLVruyEZMD4eBAQsreQOC8IOeiabS0LnSbl+N59ChtA6yJakM47OHWdto6I7jSDovSLe+TsieBoswKYFFmeYoXc+qbmFWaBHyA0GmNKlTY1iGnvmx/w3GexB5ybLSFhgrYNdgXqf/zYpVgsmkUndhMiBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093045; c=relaxed/simple; bh=V6B5cp/87D+ciVtVnRsCYCvbhx+pC72p/nIgCWaHk1k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l7p7txfXKJ7+TURHWiPsJe1yvyWjSKdjoS4xIF3JokmIhDLXLmrTatQUT60zYbArxT4/b8ciOn1pf/NxDoK0BqQGZNbA5vNFIgvHGTynR2GAhuKWUKCWrFJ8LCJ5RKlfC0NTUcEhLbcT2LixOwCFMHeCqWEdwgDgDcpZuBUTIHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JEQpBpGT; 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="JEQpBpGT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45A89C4CEF1; Fri, 5 Sep 2025 17:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093044; bh=V6B5cp/87D+ciVtVnRsCYCvbhx+pC72p/nIgCWaHk1k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JEQpBpGT4j9kRlmSdGhqzpCoBsH3mlBfiRHX5GsuNiGQrdJQxt0UzndFMnMucMP0H rx+JA45nIVIxERu2b67qLLiy0UzuKSjj2E9WgfGruYpZaY0P+G90ACw+Aag10Ljwv3 SPo9unr5L/lpElsUZSfKzQLbrdRR8Sf3A4jCpPVQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39712: media: mt9m114: Fix deadlock in get_frame_interval/set_frame_interval Date: Fri, 5 Sep 2025 19:21:25 +0200 Message-ID: <2025090550-CVE-2025-39712-6910@gregkh> X-Mailer: git-send-email 2.51.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=2592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iDHMcvbXdcN13wGAQlnD6hdj0Bfjsi+zqYn7yiR8XqY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT9pnGrqeKd9xFii4kOs20L3jyLzrLM9NV9Mtc2rN pd7cNWuI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYiysewYKtXR9z5d/17trDd 0va9flildDGXKMM8i6j/Rk5rj89fH+hwfGtC5Io9+lfTAA== 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: media: mt9m114: Fix deadlock in get_frame_interval/set_frame_interval Getting / Setting the frame interval using the V4L2 subdev pad ops get_frame_interval/set_frame_interval causes a deadlock, as the subdev state is locked in the [1] but also in the driver itself. In [2] it's described that the caller is responsible to acquire and release the lock in this case. Therefore, acquiring the lock in the driver is wrong. Remove the lock acquisitions/releases from mt9m114_ifp_get_frame_interval() and mt9m114_ifp_set_frame_interval(). [1] drivers/media/v4l2-core/v4l2-subdev.c - line 1129 [2] Documentation/driver-api/media/v4l2-subdev.rst The Linux kernel CVE team has assigned CVE-2025-39712 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 24d756e914fc3418bad7897b0657aefa9ef848e8 and fixed in 6.12.44 with commit 0d23b548d71e5d76955fdf1d73addd8f6494f602 Issue introduced in 6.7 with commit 24d756e914fc3418bad7897b0657aefa9ef848e8 and fixed in 6.16.4 with commit 41b97490a1656bdc7038d6345a84b08d45deafc6 Issue introduced in 6.7 with commit 24d756e914fc3418bad7897b0657aefa9ef848e8 and fixed in 6.17-rc1 with commit 298d1471cf83d5a2a05970e41822a2403f451086 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-39712 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/media/i2c/mt9m114.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/0d23b548d71e5d76955fdf1d73addd8f6494f602 https://git.kernel.org/stable/c/41b97490a1656bdc7038d6345a84b08d45deafc6 https://git.kernel.org/stable/c/298d1471cf83d5a2a05970e41822a2403f451086