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 04B381442F4 for ; Tue, 21 May 2024 15:34:56 +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=1716305696; cv=none; b=PFT50pUZwfAWlBYO8a3as0pVejnNeir+eaNW8a5AX1GhlyYll0dIRJTtp6VRcr031Okb3TL+lrxGk9blnaloKe+XtMz8RQ7oYkA/yIwlwbw9yPvPfWNux54rJNyBgN2nWJ/dItz6NopwTx7HO0KchRBXxSr9m6p/LpcNMHsaaic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305696; c=relaxed/simple; bh=aNiU0GfKenkQseHrLmdgs2IVFpg0KlO3HVxUJGO8p68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gpi9z+Wv7BdByO9hRZPKQo3quNfTvp2XNVq+wGv1z0aVADGqR5B/ekvqIlhAH0zO4mMfc4lvrDVBybXleG+n17pr+1O9+lCrIL8vkufAiw7jZ/Wuug6PL0t1ZR4LxEw68Jt0NM4ASmfsftRCHu3zgW1bmf3h6ECusIN8vc+em4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r11uWg72; 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="r11uWg72" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79D70C32786; Tue, 21 May 2024 15:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305695; bh=aNiU0GfKenkQseHrLmdgs2IVFpg0KlO3HVxUJGO8p68=; h=From:To:Cc:Subject:Date:Reply-to:From; b=r11uWg72vrjRyrtXEuqKcHn1/89y9+NK+jiglJrz+zULHdGKQeXYH+ZX+f4HaCkzY bIsqqjt8qDtqNMKMqIbXw8glk1TvAwDx7Pgtgs1LXbn8M36sbJtdA5LingZ4t6s/8K n8vAEvwRD+sZJh6afkmPOC7QYX5pCXc18v6TV2sg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52754: media: imon: fix access to invalid resource for the second interface Date: Tue, 21 May 2024 17:30:50 +0200 Message-ID: <2024052145-CVE-2023-52754-9725@gregkh> X-Mailer: git-send-email 2.45.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=2713; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aNiU0GfKenkQseHrLmdgs2IVFpg0KlO3HVxUJGO8p68=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++1TDU0rUihmFrL7/j/r8U3/6yenfjO/xLxC97/b3/ bSFcqd7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiVecY5unl3bOd+8fw1f6Y HEsREebMWU8vKDLMFTohe7WuKkbGrTXpPvsZhv6riVd7AQ== 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: media: imon: fix access to invalid resource for the second interface imon driver probes two USB interfaces, and at the probe of the second interface, the driver assumes blindly that the first interface got bound with the same imon driver. It's usually true, but it's still possible that the first interface is bound with another driver via a malformed descriptor. Then it may lead to a memory corruption, as spotted by syzkaller; imon driver accesses the data from drvdata as struct imon_context object although it's a completely different one that was assigned by another driver. This patch adds a sanity check -- whether the first interface is really bound with the imon driver or not -- for avoiding the problem above at the probe time. The Linux kernel CVE team has assigned CVE-2023-52754 to this issue. Affected and fixed versions =========================== Fixed in 5.10.202 with commit 0f5068519f89 Fixed in 5.15.140 with commit 5e0b788fb96b Fixed in 6.1.64 with commit b083aaf5db2e Fixed in 6.5.13 with commit 10ec5a97f8f5 Fixed in 6.6.3 with commit 2a493a34bd6e Fixed in 6.7 with commit a1766a4fd83b 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-2023-52754 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/rc/imon.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/0f5068519f89d928d6c51100e4b274479123829f https://git.kernel.org/stable/c/5e0b788fb96be36d1baf1a5c88d09c7c82a0452a https://git.kernel.org/stable/c/b083aaf5db2eeca9e362723258e5d8698f7dd84e https://git.kernel.org/stable/c/10ec5a97f8f5a772a1a42b4eb27196b447cd3aa9 https://git.kernel.org/stable/c/2a493a34bd6e496c55fabedd82b957193ace178f https://git.kernel.org/stable/c/a1766a4fd83befa0b34d932d532e7ebb7fab1fa7