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

media: sun4i-csi: Return queued buffers on start_streaming() failure

The vb2 framework hands buffers to the driver via buf_queue() before
calling start_streaming(). If start_streaming() returns an error
without first returning those buffers via vb2_buffer_done(),
vb2_start_streaming() fires WARN_ON(owned_by_drv_count) and the queued
buffers leak.

sun4i_csi_start_streaming() returned -EINVAL when no matching CSI
format could be found, before any setup (scratch buffer allocation,
pipeline start) had been performed. The remaining error paths already
converge on the err_clear_dma_queue label, which calls
return_all_buffers(..., VB2_BUF_STATE_QUEUED) under csi->qlock. Jump
to that label directly: the intermediate err_disable_device /
err_disable_pipeline / err_free_scratch_buffer labels are skipped,
which is correct because nothing they would undo has happened yet.

This mirrors the uvcvideo fix in commit 4cf3b6fd54eb ("media: uvcvideo:
Return queued buffers on start_streaming() failure").
Published: 2026-08-10
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The sun4i_csi media driver in the Linux kernel can leak kernel memory when the start_streaming() operation fails. In that failure path the driver does not return queued buffers to the vb2 framework, leaving them allocated in the kernel space. This flaw is a CWE-772 unreleased resource problem in the driver layer and can consume kernel memory if repeated.

Affected Systems

Linux kernel builds that include the sun4i_csi driver and do not contain the corrective commit 4872161e6fbe4e1783daea8bff79caddfae0fb82 are affected. The vulnerability exists in any kernel version prior to that commit; no specific version range is provided.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score is less than 1% and the vulnerability is not listed in the CISA KEV catalog, suggesting a low likelihood of exploitation. Based on the description, it is inferred that the attack vector is local and would require the ability to trigger a start_streaming() failure, which might be achievable by a local user with access to the relevant media device. The risk is primarily memory exhaustion, potentially leading to system instability.

Generated by OpenCVE AI on August 14, 2026 at 01:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Deploy a kernel update that includes commit 4872161e6fbe4e1783daea8bff79caddfae0fb82 and reboot to load the fixed driver.
  • If an update is not yet available, unload or disable the sun4i_csi module to prevent buffer leaks during operation.
  • Monitor kernel memory usage and system stability for signs of abnormal memory consumption or crashes that might indicate lingering buffer leaks.

Generated by OpenCVE AI on August 14, 2026 at 01:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Wed, 19 Aug 2026 16:45:00 +0000


Thu, 13 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 13 Aug 2026 07:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 10 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

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: sun4i-csi: Return queued buffers on start_streaming() failure The vb2 framework hands buffers to the driver via buf_queue() before calling start_streaming(). If start_streaming() returns an error without first returning those buffers via vb2_buffer_done(), vb2_start_streaming() fires WARN_ON(owned_by_drv_count) and the queued buffers leak. sun4i_csi_start_streaming() returned -EINVAL when no matching CSI format could be found, before any setup (scratch buffer allocation, pipeline start) had been performed. The remaining error paths already converge on the err_clear_dma_queue label, which calls return_all_buffers(..., VB2_BUF_STATE_QUEUED) under csi->qlock. Jump to that label directly: the intermediate err_disable_device / err_disable_pipeline / err_free_scratch_buffer labels are skipped, which is correct because nothing they would undo has happened yet. This mirrors the uvcvideo fix in commit 4cf3b6fd54eb ("media: uvcvideo: Return queued buffers on start_streaming() failure").
Title media: sun4i-csi: Return queued buffers on start_streaming() failure
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-19T16:31:31.902Z

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

Link: CVE-2026-68209

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:08.637

Modified: 2026-08-19T17:20:36.807

Link: CVE-2026-68209

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T12:00:28Z

Links: CVE-2026-68209 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T01:30:04Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime