From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D77BD3D3338 for ; Fri, 28 Aug 2026 06:51:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899886; cv=none; b=eTDMQE8NJHsr2YVJ3BrjcdjIQDY638xZXRLNKus8Yvf9bZSu/n50QHx1emo4d7ze5jvXtiRfrbO6qJkwF/BDb2chFWovzlPOFZbTTDR2UT6UqT25oBpLMFHVHnRb0mC/lK3EzY2VKJxIYi1qe+LHCX+T5/xJu5+tZUB/iJ4qMGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899886; c=relaxed/simple; bh=6xAB9Mr4IEEXmm0pub6o+d3Mz14R5wODbs5nA/pRWRc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FhEurvllCdzuYkV2gBKcl7+1mL03Apztk+fOMc5xo2QsjGjyq17GZ8QJEsQJNzojp33oEgGX7CTx/UnFS++CgXbWGPLT45Y0YJK+e2LfQCnmmB83XadROF+Auj0Vi3P8HxXHOBKr0M3SXkkAFOOYI6LxGe63dlrH9TaySObDb/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OGQ7UJ3K; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OGQ7UJ3K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E3E61F00A3A; Fri, 28 Aug 2026 06:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899884; bh=4x9bqClqWCTEqkH1KXTFmbsYFxtdXalqJUkReN1OIiM=; h=From:To:Cc:Subject:Date:Reply-To; b=OGQ7UJ3Kf94HnSyBiPA3OV2skPrehjTTzRtqgZblytlrRETK+rkXUitrd2aubNMfG 6U8CVbRKYZBnqv7vkuc9wUyBnINfGEpte1LNHXtT6xVOuRG+CEC8yXgV3cAaqUXFJq /8n7oppa+gpIEetKELkGJpEstVjqoBDvc7P9/Eyk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80650: media: atomisp: gc2235: fix UAF and memory leak Date: Fri, 28 Aug 2026 08:49:27 +0200 Message-ID: <2026082843-CVE-2026-80650-abdd@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2970; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zesv6zfqRDbZCAjYCv6cEnFYyuleOi7acdm+iVHbLUM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9b0ts+1fnOidqxLA5X501Rd+71UJ338I7TUMTnfoq JhiHv++I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaydxLDgtb9c+4dYU1lFw+/ k8vxgoH/Zk+aP8P8rGUfPywLjBU917V4q55mkWbK0e3zAA== 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: atomisp: gc2235: fix UAF and memory leak gc2235_probe() handles its error paths incorrectly. If media_entity_pads_init() fails, gc2235_remove() is called, which tears down the subdev and frees dev, but then still falls through to atomisp_register_i2c_module(). This results in use-after-free. If atomisp_register_i2c_module() fails, the media entity and control handler are left initialized and dev is leaked. gc2235_remove() unconditionally calls media_entity_cleanup() and v4l2_ctrl_handler_free(), but these are not initialized at every error path in gc2235_probe(). Replace gc2235_remove() calls in the probe error paths with explicit unwind labels that free only the resources initialized at each point of failure, in reverse order of initialization. The Linux kernel CVE team has assigned CVE-2026-80650 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.12.97 with commit fdbb8e55578b4ab647fa58827a9dd8730d7f4add Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 6.18.40 with commit d57e67ea48e4d095052f2b14d8dd7593621f862f Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 7.1.5 with commit f614bf0a64aa1cb7444d152a96798a6bf1d49e1f Issue introduced in 4.12 with commit a49d25364dfb9f8a64037488a39ab1f56c5fa419 and fixed in 7.2 with commit 628f763aee0047ff44974388d6f70f75a763026b 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-2026-80650 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/staging/media/atomisp/i2c/atomisp-gc2235.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/fdbb8e55578b4ab647fa58827a9dd8730d7f4add https://git.kernel.org/stable/c/d57e67ea48e4d095052f2b14d8dd7593621f862f https://git.kernel.org/stable/c/f614bf0a64aa1cb7444d152a96798a6bf1d49e1f https://git.kernel.org/stable/c/628f763aee0047ff44974388d6f70f75a763026b