CVE-2026-43162

MEDIUM

media: tegra-video: Fix memory leak in __tegra_channel_try_format()

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0013
EPSS Percentile 2.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (20)
linux/Kernel 5.10.0 - 6.1.167linux
linux/Kernel 6.13.0 - 6.18.17linux
linux/Kernel 6.19.0 - 6.19.6linux
linux/Kernel 6.2.0 - 6.6.130linux
linux/Kernel 6.7.0 - 6.12.77linux
Linux/Linux < 5.10
Linux/Linux 1ebaeb09830f36c1111b72a95420814225bd761c - 2dff8966a3a889dd9d248a7e15d963b4097efcc5
Linux/Linux 1ebaeb09830f36c1111b72a95420814225bd761c - 3ca2f09061736e72ef25eec2597d00f7f44094d3
Linux/Linux 1ebaeb09830f36c1111b72a95420814225bd761c - 43e5302d22334f1183dec3e0d5d8007eefe2817c
Linux/Linux 1ebaeb09830f36c1111b72a95420814225bd761c - 6c6f419fa9c44a4b7149b0292e01bff47308ba14
... and 10 more
Published May 06, 2026
Tracked Since May 06, 2026