CVE-2026-43162

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

State
Published
Severity
Not scored
Published
May 6, 2026
Updated
May 11, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before 6c6f419fa9c44a4b7149b0292e01bff47308ba14Affected
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before ca921be7a1174d5d58b28f84b683c2c0079f18c5Affected
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before 3ca2f09061736e72ef25eec2597d00f7f44094d3Affected
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before 2dff8966a3a889dd9d248a7e15d963b4097efcc5Affected
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5aAffected
  • 1ebaeb09830f36c1111b72a95420814225bd761c to before 43e5302d22334f1183dec3e0d5d8007eefe2817cAffected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 6.1.167 through 6.1.*Not affected
  • 6.6.130 through 6.6.*Not affected
  • 6.12.77 through 6.12.*Not affected
  • 6.18.17 through 6.18.*Not affected
  • 6.19.6 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.