KernelScan.io

HIGH

media/iris MBPF UAF

CVE-2026-46210

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: media: iris: fix use-after-free of fmt_src during MBPF check During concurrency testing, multiple instances can run in parallel, and each instance uses its own inst->lock while the core->lock protects the list of active instances. The race happens because these locks cover different scopes, inst->lock protects only the internals of a single instance, while the Macro Blocks Per Frame (MBPF) checker walks the core list under core->lock and reads fields like fmt_src->width and fmt_src->height. At the same time, iris_close() may free fmt_src and fmt_dst under inst->lock while the instance is still present in the core list. This allows a situation where the MBPF checker, still iterating through the core list, reaches an instance whose fmt_src was already freed by another thread and ends up dereferencing a dangling pointer, resulting in a use-after-free. This happens because the MBPF checker assumes that any instance in the core list is fully valid, but the freeing of fmt_src and fmt_dst without removing the instance from the core list is not correct. The correct ordering is to defer freeing fmt_src and fmt_dst until after the instance has been removed from the core list and all teardown under the core lock has completed, ensuring that no dangling pointers are ever exposed during MBPF checks.

02

Engine v0.2.0

Risk summary

Local attackers with access to video encoding/decoding devices can trigger a use-after-free vulnerability in the Qualcomm Iris media driver. This occurs when multiple video codec instances run concurrently and one instance closes while another performs Macro Blocks Per Frame (MBPF) validation, potentially leading to kernel memory corruption and privilege escalation.

Affecteddrivers/media/platform/qcom/iris/iris_vidc.c (media subsystem)

Vulnerability analysis

The root cause is a race condition between two different locking scopes in the Iris video codec driver. The MBPF checker walks the core instance list under core->lock and reads fmt_src->width/height fields, while iris_close() frees fmt_src/fmt_dst under inst->lock without removing the instance from the core list first. This creates a window where the MBPF checker can access already-freed memory. The fix reorders the teardown sequence to defer freeing fmt_src/fmt_dst until after the instance is removed from the core list and all core-lock-protected operations complete, eliminating the dangling pointer exposure.

03

BranchFixed inPatch commit
7.07.0.9494ffd1712a5
mainline7.1-rc33d9593ad1a58