media: tegra-video: Fix memory leak in __tegra_channel_try_format()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.167, 6.12.77, 6.18.17, 6.19.6, 6.6.130
- CVEs
- CVE-2026-43162
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 11:19 UTC · Revision 1
Source evidence
media: tegra-video: Fix memory leak in __tegra_channel_try_format()
core-osv · Original sourcePublished 6 May 2026, 11:27 UTC
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.
osv:CVE-2026-43162
Kernel
Fixed versions: 6.1.167, 6.6.130, 6.12.77, 6.18.17, 6.19.6
Complete source record
{
"id": "11b72ccc7b2cec88848c2c8ab57cfa080450dec2bff2b5477a7c4972f09654fd",
"url": "https://osv.dev/vulnerability/CVE-2026-43162",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "media: tegra-video: Fix memory leak in __tegra_channel_try_format()",
"summary": "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.",
"evidence": "osv:CVE-2026-43162",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.167",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.130",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.77",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.17",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-43162",
"aliases": [
"CVE-2026-43162"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1ebaeb09830f36c1111b72a95420814225bd761c"
},
{
"fixed": "6c6f419fa9c44a4b7149b0292e01bff47308ba14"
},
{
"fixed": "ca921be7a1174d5d58b28f84b683c2c0079f18c5"
},
{
"fixed": "3ca2f09061736e72ef25eec2597d00f7f44094d3"
},
{
"fixed": "2dff8966a3a889dd9d248a7e15d963b4097efcc5"
},
{
"fixed": "d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a"
},
{
"fixed": "43e5302d22334f1183dec3e0d5d8007eefe2817c"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43162.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.10.0"
},
{
"fixed": "6.1.167"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.130"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.77"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.17"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43162.json"
}
}
],
"modified": "2026-10-28T02:30:50.753318621Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/2dff8966a3a889dd9d248a7e15d963b4097efcc5",
"https://git.kernel.org/stable/c/3ca2f09061736e72ef25eec2597d00f7f44094d3",
"https://git.kernel.org/stable/c/43e5302d22334f1183dec3e0d5d8007eefe2817c",
"https://git.kernel.org/stable/c/6c6f419fa9c44a4b7149b0292e01bff47308ba14",
"https://git.kernel.org/stable/c/ca921be7a1174d5d58b28f84b683c2c0079f18c5",
"https://git.kernel.org/stable/c/d92e9a18f97a1d19d4c2ff81dcfbe43591f75b5a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43162.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-43162",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43162.json"
}
},
"related_cves": [
{
"value": "CVE-2026-43162",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 519109,
"published_at": "2026-05-06T11:27:40.58+00:00"
}