CVE-2026-68213
Received Received - Intake

Buffer Leak in RTL2832 SDR Driver

Vulnerability report for CVE-2026-68213, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: media: rtl2832_sdr: 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. rtl2832_sdr_start_streaming() had multiple error paths that hit this trap: two direct early returns (-ENODEV, -ERESTARTSYS), plus six `goto err` paths covering subdev s_power, tuner setup, ADC setup, stream-buffer allocation, urb allocation, and urb submission failures. None of them returned the queued buffers. The original function had no distinct success exit and fell straight through into the err label, which previously only did mutex_unlock and "return ret". Adding queued-buffer cleanup at err must therefore be paired with an explicit success return; otherwise every successful start would also drain the buffer queue and kill streaming. Add that success return, then add rtl2832_sdr_cleanup_queued_bufs() at the err label and before each early return. The cleanup helper takes a vb2_buffer_state argument so that the start_streaming error paths can pass VB2_BUF_STATE_QUEUED (as expected by userspace on start_streaming failure) while stop_streaming keeps its existing VB2_BUF_STATE_ERROR semantics. This mirrors the uvcvideo fix in commit 4cf3b6fd54eb ("media: uvcvideo: Return queued buffers on start_streaming() failure"). The err label still does not roll back power_ctrl(), frontend_ctrl(), the POWER_ON flag, or stream/URB allocations that may have happened before the failing step. Those are pre-existing leaks of a different class and are not addressed here.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the Linux kernel's media subsystem, specifically in the rtl2832_sdr driver. It occurs when start_streaming() fails after buffers were queued but not returned. The vb2 framework queues buffers via buf_queue() before calling start_streaming(). If start_streaming() returns an error without returning these buffers via vb2_buffer_done(), the buffers leak and trigger a WARN_ON warning.

Detection Guidance

This vulnerability is specific to the Linux kernel's media subsystem, particularly the rtl2832_sdr driver. Detection requires checking kernel logs for errors related to rtl2832_sdr or media subsystem failures during streaming operations. Use commands like dmesg | grep rtl2832_sdr or journalctl -k | grep rtl2832_sdr to inspect kernel logs for relevant errors.

Impact Analysis

This vulnerability can cause buffer leaks in the rtl2832_sdr driver when streaming fails. It may lead to resource exhaustion, system instability, or unexpected behavior in applications using this driver for SDR (Software Defined Radio) functionality.

Mitigation Strategies

Apply the latest kernel updates from your distribution to ensure the patched version of the rtl2832_sdr driver is installed. If you are using a custom or older kernel, update to a supported version that includes the fix. Monitor kernel logs for any remaining issues after applying updates.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68213. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart