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 98CFC2E975E for ; Wed, 6 May 2026 11:31:54 +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=1778067114; cv=none; b=ZSVigkIxC2gLDkMO30keczJeP+adK8YhBbWsgWvCs93ORlu0u29YDwR0hT8H/Hgrv4OxrZlwLRLopKty/ZtGsCqKcvfgOwkXkvHOM+tq5jiOVPXNn+/VSQdPy3JEWFdisvVzs358XUkilReud4V+QEOuom5G4lzAtY7CKm7cODo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067114; c=relaxed/simple; bh=Hv3kf7FT1R9b0p9OYkmgl+XCZ/HbFeA19lyZCJdHJOM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NvL51Lj1wqoiu7zqDWSr/Qwy1LLbZ4hcNUvCHc5yLPcbBk7wmAp/+sFc7XjUf+pYDCMcWJl1J/5EZH5EW6l3GFXABd1k6KjytiiLHjNOVXwvL4adbdLRJSlZcYTGbgrYuGHfkmg3G7sqYDlmqwZc3IO8uMXqdyJSqD3h/Bb2+sA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HHvRlCSq; 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="HHvRlCSq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2771FC2BCB8; Wed, 6 May 2026 11:31:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067114; bh=Hv3kf7FT1R9b0p9OYkmgl+XCZ/HbFeA19lyZCJdHJOM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=HHvRlCSqh2doXq6nO1ri1/K5bm/Xjp2QpVnOT0BkmiWqx7w1Vq/XfRoVq2JuCCM8J SDP0ZXCLFpwjk+i2uaePaKX7rVNanqZHJxCZrZEKhGLjlY7MRusDo283HqyeVp2/7O ArIWwuJKR3JNM9s9SIKJkmSn4bkKAuz/6KufbqPw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43162: media: tegra-video: Fix memory leak in __tegra_channel_try_format() Date: Wed, 6 May 2026 13:27:58 +0200 Message-ID: <2026050632-CVE-2026-43162-7fcc@gregkh> X-Mailer: git-send-email 2.54.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=3222; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Hkkv6+0yu8RSzsxD7vyMcsKv+3/R2eio5ychpJhrRo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VZdoJ9ZGW15cXJ59dJPdhK+P3gc1NisdPZv8TlvAb jHbpkdqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRI4kMC7rSNs9mFO9PKJvA uz85ut/Oe6UcF8OCk5bby8zXCKkZO9fOSZtkVfZsh7QFAA== 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: tegra-video: Fix memory leak in __tegra_channel_try_format() The state object allocated by __v4l2_subdev_state_alloc() must be freed with __v4l2_subdev_state_free() when it is no longer needed. In __tegra_channel_try_format(), two error paths return directly after v4l2_subdev_call() fails, without freeing the allocated 'sd_state' object. This violates the requirement and causes a memory leak. Fix this by introducing a cleanup label and using goto statements in the error paths to ensure that __v4l2_subdev_state_free() is always called before the function returns. The Linux kernel CVE team has assigned CVE-2026-43162 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 6.1.167 with commit 6c6f419fa9c44a4b7149b0292e01bff47308ba14 Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 6.6.130 with commit ca921be7a1174d5d58b28f84b683c2c0079f18c5 Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 6.12.77 with commit 3ca2f09061736e72ef25eec2597d00f7f44094d3 Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 6.18.17 with commit 2dff8966a3a889dd9d248a7e15d963b4097efcc5 Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 6.19.6 with commit d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a Issue introduced in 5.10 with commit 1ebaeb09830f36c1111b72a95420814225bd761c and fixed in 7.0 with commit 43e5302d22334f1183dec3e0d5d8007eefe2817c 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-43162 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/tegra-video/vi.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/6c6f419fa9c44a4b7149b0292e01bff47308ba14 https://git.kernel.org/stable/c/ca921be7a1174d5d58b28f84b683c2c0079f18c5 https://git.kernel.org/stable/c/3ca2f09061736e72ef25eec2597d00f7f44094d3 https://git.kernel.org/stable/c/2dff8966a3a889dd9d248a7e15d963b4097efcc5 https://git.kernel.org/stable/c/d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a https://git.kernel.org/stable/c/43e5302d22334f1183dec3e0d5d8007eefe2817c