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 3675814F11E for ; Wed, 19 Jun 2024 13:56:49 +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=1718805410; cv=none; b=lcjrT6EqafpA1L/WZVL+6egbHEhnq3bfPPzIc8cbqiKGu0fGTqY/TjAQkeDDsVOPZc7LcenXeLVReeB4LRV+gEmdx7cPBj8upJjmT/VN6uZZ2hhjb3X3ArcEJZ5FGANcXcAPjtiP/mCebuXhXnhPmwfvnYDLxp+76vLIRfeLYlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718805410; c=relaxed/simple; bh=6xbjd1jIEojq3WzitfTl0jJL76+U2vSMh37SsB1Y2sA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kIz7TVkxAu6C1QlnPXAQyRXGVQFrVDMWlHyvsNibTgkWFeUSbWWs7pESoznnrEe0gJ+PlgwiNd7DHQH1Toafb9uaC2CzYmfIhyDVxRjGjJLHzb3xT34ArYtyLrVwIVlIiEluS6pt6+ma1m0pNg+qSp8X+T3gn+Xw2eKcWF0jkwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RykhVQJs; 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="RykhVQJs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65D32C2BBFC; Wed, 19 Jun 2024 13:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718805409; bh=6xbjd1jIEojq3WzitfTl0jJL76+U2vSMh37SsB1Y2sA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RykhVQJszR4KLPMLhGVmeg9kVKn5HaiFnmc0YQkxoEvgbKRbzMrZmFNJ3QikPhwjI N41PtKQEV0dEaDPQBQBhpTROZ6qDt4rbHicHQFgcLl3VZcWugqQrhAAd4H8xJ0ZWWT BxlaDO5h3PLNXcdVDcrPTksXgIzGfRKQBl3FsyTM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38611: media: i2c: et8ek8: Don't strip remove function when driver is builtin Date: Wed, 19 Jun 2024 15:56:24 +0200 Message-ID: <2024061921-CVE-2024-38611-bb0f@gregkh> X-Mailer: git-send-email 2.45.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=2570; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6xbjd1jIEojq3WzitfTl0jJL76+U2vSMh37SsB1Y2sA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFj1vLzknMbLm/JJr5uXra5LLTTxJYz33M/KzUI1MjJ zjh+KkjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARkVaGBWcmrxKW0eWSldjL ke7wvfwdP8tnF4b5Hptv7d/o4JRhwC/81P1BwbdZO946AwA= 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: i2c: et8ek8: Don't strip remove function when driver is builtin Using __exit for the remove function results in the remove callback being discarded with CONFIG_VIDEO_ET8EK8=y. When such a device gets unbound (e.g. using sysfs or hotplug), the driver is just removed without the cleanup being performed. This results in resource leaks. Fix it by compiling in the remove callback unconditionally. This also fixes a W=1 modpost warning: WARNING: modpost: drivers/media/i2c/et8ek8/et8ek8: section mismatch in reference: et8ek8_i2c_driver+0x10 (section: .data) -> et8ek8_remove (section: .exit.text) The Linux kernel CVE team has assigned CVE-2024-38611 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit c5254e72b8ed and fixed in 6.6.33 with commit c1a3803e5bb9 Issue introduced in 4.11 with commit c5254e72b8ed and fixed in 6.8.12 with commit 43fff07e4b19 Issue introduced in 4.11 with commit c5254e72b8ed and fixed in 6.9.3 with commit 904db2ba44ae Issue introduced in 4.11 with commit c5254e72b8ed and fixed in 6.10-rc1 with commit 545b215736c5 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-2024-38611 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/et8ek8/et8ek8_driver.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/c1a3803e5bb91c13e9ad582003e4288f67f06cd9 https://git.kernel.org/stable/c/43fff07e4b1956d0e5cf23717507e438278ea3d9 https://git.kernel.org/stable/c/904db2ba44ae60641b6378c5013254d09acf5e80 https://git.kernel.org/stable/c/545b215736c5c4b354e182d99c578a472ac9bfce