CVE-2026-139585

media: iris: reference count video instances

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: iris: reference count video instances

iris_get_instance() looks up an instance on core->instances and returns
it after dropping core->lock, without taking any reference. The threaded
interrupt handler uses this to find the instance a firmware response
belongs to and then takes inst->lock. Meanwhile userspace may close the
same file descriptor: iris_close() removes the instance from the list,
destroys inst->lock and frees the instance. The interrupt handler then
operates on freed memory and a destroyed mutex, a use-after-free.

Add a kref to struct iris_inst. iris_get_instance() takes a reference
under core->lock, so an instance it returns cannot be freed until the
caller drops that reference with iris_inst_put(). The instance is
released (mutexes destroyed, memory freed) only when the last reference
goes away, whether that is held by the closing thread or the interrupt
handler.

Analysis

AI-generated

Technical impact

The vulnerability arises in the Linux media iris subsystem where a reference to a video instance is returned without incrementing its reference count. An interrupt handler later uses this reference while the instance may already have been freed by userspace closing the device, leading to use‑after‑free. This flaw can allow an attacker with sufficient access to the device to trigger memory corruption, potentially leading to arbitrary code execution or denial of service. The weakness is a classic use‑after‑free (CWE-416).

Affected Systems

All Linux kernel builds that include the media iris driver prior to the patch. The exact affected upstream versions are not specified, but any kernel containing the media:iris code without the added reference counting is subject to the flaw.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. Nevertheless, because the flaw can be triggered by a legitimate userspace client during device interaction, the attack vector is likely local, relying on the callback from the media device subsystem. The severity of the race condition and memory corruption suggests a high risk if exploited. An attacker with local privileges or the ability to drive the media subsystem could potentially achieve remote code execution or a system crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the added reference count to iris_inst.
  • If a timely kernel update is not available, disable or blacklist the media iris driver until the patch is applied.
  • Restrict access to the media iris device so that only privileged users can interact with it, mitigating the risk of unintended user‑space closures during interrupt processing.

Generated by OpenCVE AI on November 30, 2026 at 23:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: iris: reference count video instances iris_get_instance() looks up an instance on core->instances and returns it after dropping core->lock, without taking any reference. The threaded interrupt handler uses this to find the instance a firmware response belongs to and then takes inst->lock. Meanwhile userspace may close the same file descriptor: iris_close() removes the instance from the list, destroys inst->lock and frees the instance. The interrupt handler then operates on freed memory and a destroyed mutex, a use-after-free. Add a kref to struct iris_inst. iris_get_instance() takes a reference under core->lock, so an instance it returns cannot be freed until the caller drops that reference with iris_inst_put(). The instance is released (mutexes destroyed, memory freed) only when the last reference goes away, whether that is held by the closing thread or the interrupt handler.
Title media: iris: reference count video instances
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM