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

media: rtl2832: fix use-after-free in rtl2832_remove()

cancel_delayed_work_sync() is called before i2c_mux_del_adapters()
in rtl2832_remove(). While the cancel waits for any running instance
of i2c_gate_work to finish, it does not prevent the timer from being
rescheduled by a concurrent thread.

During probe, the r820t_attach() call attempts I2C transfers through
the mux adapter. These transfers go through i2c_mux_master_xfer(),
which calls rtl2832_deselect() after the transfer completes,
rescheduling i2c_gate_work via schedule_delayed_work(). If this
transfer is still in flight when rtl2832_remove() runs,
rtl2832_deselect() can reschedule i2c_gate_work after it has been
cancelled, causing a use-after-free when kfree(dev) is called.

Fix this by calling i2c_mux_del_adapters() before
cancel_delayed_work_sync(). Once the mux adapter is unregistered, no
new I2C transfers can go through it, so rtl2832_deselect() can no
longer reschedule i2c_gate_work. The subsequent
cancel_delayed_work_sync() is then guaranteed to be final.
Published: 2026-08-10
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The rtl2832 driver in the Linux kernel contains a race condition that can lead to a use‑after‑free when the device is removed while an I2C transfer is still in progress. During probe, the driver performs I2C operations through a mux adapter that schedules delayed work. If rtl2832_remove() is called before i2c_mux_del_adapters(), the scheduled work can be re‑injected after the work has been cancelled, causing a dereference of freed memory. Based on the description, it is inferred that an attacker who can initiate I2C transfers or trigger device removal can bring the kernel memory corruption into play. The consequence of a successful exploitation is arbitrary code execution at kernel privilege, which can lead to full system compromise. This flaw is a classic use‑after‑free vulnerability (CWE-416).

Affected Systems

Any system running a Linux kernel in which the rtl2832 media driver is compiled and the device is present. The driver is part of the generic media subsystem and is typically enabled in stock distributions. No specific kernel version range is listed, so the issue exists until the patch that reorders the cleanup steps is applied.

Risk and Exploitability

The CVSS score is 4.7, indicating a moderate severity. The EPSS score is < 1%, suggesting the likelihood of exploitation is very low. The vulnerability is not listed in the CISA KEV catalog, indicating no publicly known widespread exploitation as of now. Based on the description, it is inferred that exploitation requires local access to the rtl2832 device or a process that can invoke I2C transfers on the device, which may be possible if the device is exposed to user‑space or untrusted code. Kernel memory corruption bugs carry high inherent risk, and the lack of publicly available exploit information does not reduce the need for remediation. Given the potential for arbitrary kernel code execution, the risk remains significant, especially on systems exposed to untrusted users or network traffic that can reach the rtl2832 device.

Generated by OpenCVE AI on August 13, 2026 at 05:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that calls i2c_mux_del_adapters() before cancel_delayed_work_sync() in rtl2832_remove()
  • Reload or reboot the kernel module to activate the updated driver code
  • If immediate patching is not possible, restrict or disable access to rtl2832 device nodes (e.g., adjust permissions or SELinux policies) to prevent the flawed driver from being triggered
  • Consider disabling the rtl2832 driver in the kernel configuration if the device is unnecessary

Generated by OpenCVE AI on August 13, 2026 at 05:40 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


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

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

None

cvssV3_1

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

threat_severity

Moderate


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

Type Values Removed Values Added
Weaknesses CWE-416

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: rtl2832: fix use-after-free in rtl2832_remove() cancel_delayed_work_sync() is called before i2c_mux_del_adapters() in rtl2832_remove(). While the cancel waits for any running instance of i2c_gate_work to finish, it does not prevent the timer from being rescheduled by a concurrent thread. During probe, the r820t_attach() call attempts I2C transfers through the mux adapter. These transfers go through i2c_mux_master_xfer(), which calls rtl2832_deselect() after the transfer completes, rescheduling i2c_gate_work via schedule_delayed_work(). If this transfer is still in flight when rtl2832_remove() runs, rtl2832_deselect() can reschedule i2c_gate_work after it has been cancelled, causing a use-after-free when kfree(dev) is called. Fix this by calling i2c_mux_del_adapters() before cancel_delayed_work_sync(). Once the mux adapter is unregistered, no new I2C transfers can go through it, so rtl2832_deselect() can no longer reschedule i2c_gate_work. The subsequent cancel_delayed_work_sync() is then guaranteed to be final.
Title media: rtl2832: fix use-after-free in rtl2832_remove()
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:42.193Z

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

Link: CVE-2026-68214

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-68214

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-68214 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T05:45:03Z

Weaknesses