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 5A19A284684 for ; Tue, 16 Sep 2025 08:13:21 +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=1758010401; cv=none; b=tylb5Bk/OPRprQ/VnK2Ojo2U3YJ11SNu36KDoLMPMPmnVN1MUCfS4hBpxVD3325elzXUnmX8Ob/xABcjxr7tSWZ2HMh78z+N2uE1HT7eD+3GZF15o3CeDlMztgPpd5QBHfrbSbElTKtX5rHbkdPDzaxbPNlOsMPeoVSkGpM4sUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010401; c=relaxed/simple; bh=siurTe43UNlnRFuAtp6Gmys4pDJNE5r6MBzAUzbMId0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r646B/tN33mBr2bXzOl3ixrShX4LwI9ZmGfLK+qMOpLU3NvZogwz6yQjfXpZvhGDYXojsflnjwKOi5AZqMtr4vTeESzPT4Kw+R+chYy8yEnPfRnuKORm9QIF3J5opQJVZZmKo2C/Udny1pGiMruvHqw+kwb6gP8zYSXFVOvgiAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YQySwitY; 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="YQySwitY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFEB2C4CEEB; Tue, 16 Sep 2025 08:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010401; bh=siurTe43UNlnRFuAtp6Gmys4pDJNE5r6MBzAUzbMId0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YQySwitYfpcEr8ZN9c403qfDfikQ+JZ9KMPyRZVc1Pq/0ksC48d00eFsBpui0UhcA 29bcS86HjebppvjPUsxTXDtXFOf2NvSSRSl6TKIDcsz5j+tvZHbe+whn9rxw7vi5TC ZoH7o8PJvQiCZWrZwkjqvPeoZiyfrnTqxwt+Utk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53300: media: hi846: Fix memleak in hi846_init_controls() Date: Tue, 16 Sep 2025 10:11:50 +0200 Message-ID: <2025091628-CVE-2023-53300-b5a5@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=2380; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OG9PwuCjcznom8VggLUuFb3U7SDCNcI9/sA0AZhRAno=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpTfMqb2e4dXW/uvWLBOrR/UsWicFtymG3u6osm2Ve LRJPdGkI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbins2wYMOi50I/WY+uujGN Taf2/cHv862u7GdYcHjevpPpv6/vyY03S9y05kNXh4HrJAA= 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: hi846: Fix memleak in hi846_init_controls() hi846_init_controls doesn't clean the allocated ctrl_hdlr in case there is a failure, which causes memleak. Add v4l2_ctrl_handler_free to free the resource properly. The Linux kernel CVE team has assigned CVE-2023-53300 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.1.28 with commit fd22e8c8c38fb40f130d3a60e52c59996a5bbae9 Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.2.15 with commit 12a80b1490e398f5ad7157508cf32b73511de5fc Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.3.2 with commit 07f0f15e5db60c5b0722049d3251ef4a46dc3b76 Issue introduced in 5.16 with commit e8c0882685f9152f0d729664a12bcbe749cb7736 and fixed in 6.4 with commit 2649c1a20e8e399ee955d0e22192f9992662c3d2 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-53300 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/hi846.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/fd22e8c8c38fb40f130d3a60e52c59996a5bbae9 https://git.kernel.org/stable/c/12a80b1490e398f5ad7157508cf32b73511de5fc https://git.kernel.org/stable/c/07f0f15e5db60c5b0722049d3251ef4a46dc3b76 https://git.kernel.org/stable/c/2649c1a20e8e399ee955d0e22192f9992662c3d2