Description
In the Linux kernel, the following vulnerability has been resolved:

media: meson: vdec: Fix memory leak in error path of vdec_open

The vdec_open() function previously jumped directly to
err_m2m_release when vdec_init_ctrls() failed, skipping
release of the m2m context. This caused a resource leak.

Fix it by introducing a proper err_m2m_ctx_release label
that calls v4l2_m2m_ctx_release(sess->m2m_ctx) before
releasing the m2m device.

This was identified via kmemleak:
unreferenced object 0xffff0000205d6878 (size 8):
comm "v4l_id", pid 5289, jiffies 4294938580
hex dump (first 8 bytes):
40 d2 49 18 00 00 ff ff @.I.....
backtrace (crc d3204599):
kmemleak_alloc+0xc8/0xf0
__kvmalloc_node_noprof+0x60c/0x850
v4l2_ctrl_handler_init_class+0x1b4/0x2e8 [videodev]
vdec_open+0x1f4/0x788 [meson_vdec]
v4l2_open+0x144/0x460 [videodev]
chrdev_open+0x1ac/0x500
do_dentry_open+0x3f0/0xfe8
vfs_open+0x68/0x320
do_open+0x2d8/0x9a8
path_openat+0x1d0/0x4f0
do_filp_open+0x190/0x380
do_sys_openat2+0xf8/0x1b0
__arm64_sys_openat+0x13c/0x1e8
invoke_syscall+0xdc/0x268
el0_svc_common.constprop.0+0x178/0x258
do_el0_svc+0x4c/0x70
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Meson video decoding driver of the Linux kernel. During the device open routine, a failure in control initialization bypassed proper context release, leaving orphaned kernel memory objects. This results in a cumulative memory leak that can grow each time the device is opened. The leak is a direct loss of kernel resources. If an attacker or a misbehaving application repeatedly opens the video decode device, the leaked memory cannot be reclaimed until a reboot or kernel crash occurs. Over time, this can degrade system performance, trigger out‑of‑memory kills, or culminate in a kernel failure, effectively denying service for the host or other processes. A likely attack vector is a local or privileged user who can open the /dev/v4l2 device; repeated or automated accesses could trigger the leak. The EPSS score is not available and the issue is not listed in CISA’s KEV catalog, but the fixed path indicates the kernel community promptly addressed it, suggesting that a patched kernel is the only reliable protection.

Affected Systems

All Linux kernel builds that include the Meson video decode driver before the patch, across any distribution that ships the default kernel image. No specific affected patch level is listed; the issue applies broadly until the kernel code is updated to the commit that introduces the err_m2m_ctx_release label, which should be present in recent stable kernel releases.

Risk and Exploitability

The CVSS score is unspecified, but the nature of the defect—an uncontrolled memory leak—implies a potentially high severity for systems that rely on continuous video decoding. Although exploitation requires the ability to open the relevant device, such access is typically granted to standard users on many systems. Once triggered, the leak can accumulate over time, increasing the likelihood of a denials of service, especially under high load or with persistence. Because the vulnerability has been fixed in the kernel source, upgrading to a kernel that includes the patch mitigates the risk.

Generated by OpenCVE AI on August 10, 2026 at 15:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the Meson vdec memory‑leak fix
  • After updating, verify that the kernel reports no orphaned video device memory allocations through tools like kmemleak or dmesg
  • If a patch cannot be applied immediately, restrict or remove access to the /dev/v4l2 video devices to prevent repeated opens that may trigger the leak

Generated by OpenCVE AI on August 10, 2026 at 15:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-401

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: meson: vdec: Fix memory leak in error path of vdec_open The vdec_open() function previously jumped directly to err_m2m_release when vdec_init_ctrls() failed, skipping release of the m2m context. This caused a resource leak. Fix it by introducing a proper err_m2m_ctx_release label that calls v4l2_m2m_ctx_release(sess->m2m_ctx) before releasing the m2m device. This was identified via kmemleak: unreferenced object 0xffff0000205d6878 (size 8): comm "v4l_id", pid 5289, jiffies 4294938580 hex dump (first 8 bytes): 40 d2 49 18 00 00 ff ff @.I..... backtrace (crc d3204599): kmemleak_alloc+0xc8/0xf0 __kvmalloc_node_noprof+0x60c/0x850 v4l2_ctrl_handler_init_class+0x1b4/0x2e8 [videodev] vdec_open+0x1f4/0x788 [meson_vdec] v4l2_open+0x144/0x460 [videodev] chrdev_open+0x1ac/0x500 do_dentry_open+0x3f0/0xfe8 vfs_open+0x68/0x320 do_open+0x2d8/0x9a8 path_openat+0x1d0/0x4f0 do_filp_open+0x190/0x380 do_sys_openat2+0xf8/0x1b0 __arm64_sys_openat+0x13c/0x1e8 invoke_syscall+0xdc/0x268 el0_svc_common.constprop.0+0x178/0x258 do_el0_svc+0x4c/0x70
Title media: meson: vdec: Fix memory leak in error path of vdec_open
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-10T12:00:44.123Z

Reserved: 2026-07-30T09:28:09.375Z

Link: CVE-2026-68223

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T18:30:04Z

Weaknesses