# CVE-2026-43162: media: tegra-video: Fix memory leak in __tegra_channel_try_format()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-06T11:27:40.580Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1ebaeb09830f36c1111b72a95420814225bd761c before 6c6f419fa9c44a4b7149b0292e01bff47308ba14; from 1ebaeb09830f36c1111b72a95420814225bd761c before ca921be7a1174d5d58b28f84b683c2c0079f18c5; from 1ebaeb09830f36c1111b72a95420814225bd761c before 3ca2f09061736e72ef25eec2597d00f7f44094d3; from 1ebaeb09830f36c1111b72a95420814225bd761c before 2dff8966a3a889dd9d248a7e15d963b4097efcc5; from 1ebaeb09830f36c1111b72a95420814225bd761c before d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a; from 1ebaeb09830f36c1111b72a95420814225bd761c before 43e5302d22334f1183dec3e0d5d8007eefe2817c; 5.10 (not affected: before 5.10; from 6.1.167 up to 6.1.*; from 6.6.130 up to 6.6.*; from 6.12.77 up to 6.12.*; from 6.18.17 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.10 before 6.1.167; from 6.2 before 6.6.130; from 6.7 before 6.12.77; from 6.13 before 6.18.17; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/6c6f419fa9c44a4b7149b0292e01bff47308ba14> (patch)
- <https://git.kernel.org/stable/c/ca921be7a1174d5d58b28f84b683c2c0079f18c5> (patch)
- <https://git.kernel.org/stable/c/3ca2f09061736e72ef25eec2597d00f7f44094d3> (patch)
- <https://git.kernel.org/stable/c/2dff8966a3a889dd9d248a7e15d963b4097efcc5> (patch)
- <https://git.kernel.org/stable/c/d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a> (patch)
- <https://git.kernel.org/stable/c/43e5302d22334f1183dec3e0d5d8007eefe2817c> (patch)

## Sources

- CVE List: [CVE-2026-43162](https://www.cve.org/CVERecord?id=CVE-2026-43162), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-43162](https://nvd.nist.gov/vuln/detail/CVE-2026-43162), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43162 · Whole record: https://cve.day/CVE-2026-43162.json · Rebuilt by cve.day 2026-11-25T22:59:20.706Z
